Skip to content

Commit ae163b8

Browse files
philmdcminyard
authored andcommitted
hw/i2c/Kconfig: Add an entry for the SMBus
The System Management Bus is more or less a derivative of the I2C bus, thus the Kconfig entry depends of I2C. Not all boards providing an I2C bus support SMBus. Use two different Kconfig entries to be able to select I2C without selecting SMBus. Signed-off-by: Philippe Mathieu-Daudé <[email protected]> Message-Id: <[email protected]> Signed-off-by: Corey Minyard <[email protected]>
1 parent 45db94c commit ae163b8

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

hw/i2c/Kconfig

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
11
config I2C
22
bool
33

4+
config SMBUS
5+
bool
6+
select I2C
7+
48
config SMBUS_EEPROM
59
bool
6-
depends on I2C
10+
select SMBUS
711

812
config VERSATILE_I2C
913
bool
1014
select BITBANG_I2C
1115

1216
config ACPI_SMBUS
1317
bool
14-
select I2C
18+
select SMBUS
1519

1620
config BITBANG_I2C
1721
bool

hw/i2c/Makefile.objs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
common-obj-$(CONFIG_I2C) += core.o smbus_slave.o smbus_master.o
1+
common-obj-$(CONFIG_I2C) += core.o
2+
common-obj-$(CONFIG_SMBUS) += smbus_slave.o smbus_master.o
23
common-obj-$(CONFIG_SMBUS_EEPROM) += smbus_eeprom.o
34
common-obj-$(CONFIG_VERSATILE_I2C) += versatile_i2c.o
45
common-obj-$(CONFIG_ACPI_X86_ICH) += smbus_ich9.o

0 commit comments

Comments
 (0)