Skip to content

Commit

Permalink
i2c: smbus: Add support for Zhaoxin SMBUS controller
Browse files Browse the repository at this point in the history
zhaoxin inclusion
category: feature

-------------------

The Zhaoxin platform implements the SMBUS controller on the hardware,
enabling information exchange and collaboration between devices using the
SMBus protocol.

Signed-off-by: leoliu-oc <[email protected]>
  • Loading branch information
leoliu-oc committed Jul 4, 2024
1 parent 5086b5c commit 01c4e7b
Show file tree
Hide file tree
Showing 3 changed files with 395 additions and 0 deletions.
11 changes: 11 additions & 0 deletions drivers/i2c/busses/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,17 @@ config I2C_SCMI
To compile this driver as a module, choose M here:
the module will be called i2c-scmi.

config I2C_ZHAOXIN_SMBUS
tristate "Zhaoxin SMBus Interface"
depends on (PCI && (CPU_SUP_CENTAUR || CPU_SUP_ZHAOXIN)) || COMPILE_TEST
default m
help
If you say yes to this option, support will be included for the
ZHAOXIN SMBus interface

This driver can also be built as a module. If so, the module
will be called i2c-zhaoxin-smbus.

endif # ACPI

comment "Mac SMBus host controller drivers"
Expand Down
1 change: 1 addition & 0 deletions drivers/i2c/busses/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ obj-$(CONFIG_I2C_ROBOTFUZZ_OSIF) += i2c-robotfuzz-osif.o
obj-$(CONFIG_I2C_TAOS_EVM) += i2c-taos-evm.o
obj-$(CONFIG_I2C_TINY_USB) += i2c-tiny-usb.o
obj-$(CONFIG_I2C_VIPERBOARD) += i2c-viperboard.o
obj-$(CONFIG_I2C_ZHAOXIN_SMBUS) += i2c-zhaoxin-smbus.o

# Other I2C/SMBus bus drivers
obj-$(CONFIG_I2C_ACORN) += i2c-acorn.o
Expand Down
Loading

0 comments on commit 01c4e7b

Please sign in to comment.