Skip to content

Commit

Permalink
i2c: express dependencies with Kconfig
Browse files Browse the repository at this point in the history
Signed-off-by: Paolo Bonzini <[email protected]>
Signed-off-by: Yang Zhong <[email protected]>
Acked-by: Thomas Huth <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
  • Loading branch information
bonzini committed Mar 7, 2019
1 parent 02017ee commit 1550b0e
Show file tree
Hide file tree
Showing 17 changed files with 23 additions and 8 deletions.
1 change: 0 additions & 1 deletion default-configs/arm-softmmu.mak
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ CONFIG_CADENCE=y
CONFIG_XGMAC=y
CONFIG_EXYNOS4=y
CONFIG_PXA2XX=y
CONFIG_I2C=y
CONFIG_BITBANG_I2C=y
CONFIG_FRAMEBUFFER=y
CONFIG_XILINX_SPIPS=y
Expand Down
2 changes: 0 additions & 2 deletions default-configs/i386-softmmu.mak
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ CONFIG_NVDIMM=y
CONFIG_ACPI_NVDIMM=y
CONFIG_PXB=y
CONFIG_ACPI_VMGENID=y
CONFIG_SMBUS_EEPROM=y
CONFIG_I2C=y
CONFIG_PCI_DEVICES=y

# Boards:
Expand Down
1 change: 0 additions & 1 deletion default-configs/mips-softmmu-common.mak
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ CONFIG_MC146818RTC=y
CONFIG_EMPTY_SLOT=y
CONFIG_MIPS_CPS=y
CONFIG_MIPS_ITU=y
CONFIG_I2C=y
CONFIG_R4K=y
CONFIG_MALTA=y
CONFIG_MIPSSIM=y
Expand Down
1 change: 0 additions & 1 deletion default-configs/ppc-softmmu.mak
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ CONFIG_USB_EHCI_SYSBUS=y
CONFIG_SM501=y
CONFIG_DDC=y
CONFIG_IDE_SII3112=y
CONFIG_I2C=y
CONFIG_AT24C=y
CONFIG_BITBANG_I2C=y
CONFIG_M41T80=y
Expand Down
1 change: 0 additions & 1 deletion default-configs/sh4-softmmu.mak
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ CONFIG_PFLASH_CFI02=y
CONFIG_SH4=y
CONFIG_IDE_MMIO=y
CONFIG_SM501=y
CONFIG_I2C=y
CONFIG_DDC=y
CONFIG_TEST_DEVICES=y
CONFIG_I82378=y
Expand Down
1 change: 0 additions & 1 deletion default-configs/sh4eb-softmmu.mak
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ CONFIG_PFLASH_CFI02=y
CONFIG_SH4=y
CONFIG_IDE_MMIO=y
CONFIG_SM501=y
CONFIG_I2C=y
CONFIG_DDC=y
CONFIG_TEST_DEVICES=y
CONFIG_I82378=y
Expand Down
2 changes: 1 addition & 1 deletion hw/Makefile.objs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ devices-dirs-$(CONFIG_SOFTMMU) += display/
devices-dirs-$(CONFIG_SOFTMMU) += dma/
devices-dirs-$(CONFIG_SOFTMMU) += gpio/
devices-dirs-$(CONFIG_HYPERV) += hyperv/
devices-dirs-$(CONFIG_SOFTMMU) += i2c/
devices-dirs-$(CONFIG_I2C) += i2c/
devices-dirs-$(CONFIG_SOFTMMU) += ide/
devices-dirs-$(CONFIG_SOFTMMU) += input/
devices-dirs-$(CONFIG_SOFTMMU) += intc/
Expand Down
1 change: 1 addition & 0 deletions hw/audio/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ config PCSPK

config WM8750
bool
depends on I2C

config PL041
bool
Expand Down
3 changes: 3 additions & 0 deletions hw/display/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,11 @@ config PL110

config SII9022
bool
depends on I2C

config SSD0303
bool
depends on I2C

config SSD0323
bool
Expand Down Expand Up @@ -71,6 +73,7 @@ config MILKYMIST_TMU2

config SM501
bool
select I2C

config TCX
bool
Expand Down
1 change: 1 addition & 0 deletions hw/gpio/Kconfig
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
config MAX7310
bool
depends on I2C

config PL061
bool
Expand Down
6 changes: 6 additions & 0 deletions hw/i2c/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,24 @@ config I2C

config SMBUS_EEPROM
bool
depends on I2C

config DDC
bool
depends on I2C

config VERSATILE_I2C
bool
select I2C

config ACPI_SMBUS
bool
select I2C

config BITBANG_I2C
bool
select I2C

config IMX_I2C
bool
select I2C
1 change: 1 addition & 0 deletions hw/i386/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ config PC_ACPI
select ACPI_X86
select ACPI_CPU_HOTPLUG
select ACPI_MEMORY_HOTPLUG
select SMBUS_EEPROM
depends on ACPI_SMBUS

config I440FX
Expand Down
1 change: 1 addition & 0 deletions hw/input/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ config ADB

config LM832X
bool
depends on I2C

config PCKBD
bool
Expand Down
1 change: 1 addition & 0 deletions hw/isa/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ config PIIX4
config VT82C686
bool
select ISA_BUS
select ACPI_SMBUS

config SMC37C669
bool
Expand Down
4 changes: 4 additions & 0 deletions hw/misc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ config MAX111X

config TMP105
bool
depends on I2C

config TMP421
bool
depends on I2C

config ISA_DEBUG
bool
Expand All @@ -36,6 +38,7 @@ config EDU

config PCA9552
bool
depends on I2C

config PL310
bool
Expand Down Expand Up @@ -102,5 +105,6 @@ config PVPANIC

config AUX
bool
select I2C

source macio/Kconfig
1 change: 1 addition & 0 deletions hw/nvram/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ config DS1225Y

config AT24C
bool
depends on I2C

config MAC_NVRAM
bool
3 changes: 3 additions & 0 deletions hw/timer/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ config A9_GTIMER

config DS1338
bool
depends on I2C

config HPET
bool
Expand All @@ -18,6 +19,7 @@ config I8254

config M41T80
bool
depends on I2C

config M48T59
bool
Expand All @@ -27,6 +29,7 @@ config PL031

config TWL92230
bool
depends on I2C

config XLNX_ZYNQMP
bool
Expand Down

0 comments on commit 1550b0e

Please sign in to comment.