i2c: imc-skylake: add driver for Intel Skylake-X iMC SMBus engine
Add a driver for the integrated memory controller (iMC) SMBus engine on Intel Skylake-X / Cascade Lake-X processors (socket LGA 2066, platform X299, PCU function 8086:2085). The engine provides two SMBus channels — one per pair of DIMM slots — over which SPD EEPROMs, DDR4 thermal sensors and third-party LED controllers are accessible. Exposing it as a pair of standard Linux I2C adapters lets existing tools (i2c-tools, lm-sensors) use it without bespoke sysfs hacks. Key design decisions: - ECAM MMIO access instead of CF8/CFC port I/O (SMM traps port writes) - Dynamic MCFG table parsing for mmcfg_base (no hardcoding) - Support for SMBus BYTE_DATA and WORD_DATA transfers - devm-managed resources with automatic cleanup - Global mutex to serialize transactions across both channels sharing the same ECAM mapping Signed-off-by: Simone Chifari <simone.chifari@gmail.com>
This commit is contained in:
+54
@@ -0,0 +1,54 @@
|
||||
# Kernel build artifacts & temporary files
|
||||
*.ko
|
||||
*.ko.zst
|
||||
*.mod
|
||||
*.mod.c
|
||||
*.mod.o
|
||||
*.o
|
||||
*.a
|
||||
*.s
|
||||
.*.cmd
|
||||
.tmp_versions/
|
||||
modules.order
|
||||
Module.symvers
|
||||
/i2c-imc-skylake.mod
|
||||
|
||||
# C/C++ Developer tools and symbol databases
|
||||
*.d
|
||||
*.o.d
|
||||
compile_commands.json
|
||||
.clangd/
|
||||
.cache/
|
||||
tags
|
||||
TAGS
|
||||
GPATH
|
||||
GRTAGS
|
||||
GSYMS
|
||||
GTAGS
|
||||
|
||||
# IDEs and Editors
|
||||
.vscode/
|
||||
.idea/
|
||||
*.swp
|
||||
*.swo
|
||||
*~
|
||||
*.code-workspace
|
||||
|
||||
# OS-specific files
|
||||
.DS_Store
|
||||
Thumbs.db
|
||||
|
||||
# Generated patch files (git format-patch output)
|
||||
patches/
|
||||
|
||||
# Internal working documents (not for public repo)
|
||||
TODO.md
|
||||
submission-analysis.md
|
||||
README.local.md
|
||||
AGENTS.md
|
||||
docs/mainline-plan.md
|
||||
docs/archive-i2c-imc-driver-plan.md
|
||||
docs/submission/submission-instructions.md
|
||||
|
||||
# Private Gitea CI (replaced by .github/workflows/ for public repo)
|
||||
.gitea/
|
||||
Reference in New Issue
Block a user