While at it and since they are user-creatable, build them when CONFIG_I2C_DEVICES is set.
Signed-off-by: Bernhard Beschow <shen...@gmail.com> --- hw/gpio/Kconfig | 10 ++++++++++ hw/misc/Kconfig | 8 -------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/hw/gpio/Kconfig b/hw/gpio/Kconfig index c423e10f59..007048c688 100644 --- a/hw/gpio/Kconfig +++ b/hw/gpio/Kconfig @@ -16,6 +16,16 @@ config SIFIVE_GPIO config STM32L4X5_GPIO bool +config PCA9552 + bool + depends on I2C + default y if I2C_DEVICES + +config PCA9554 + bool + depends on I2C + default y if I2C_DEVICES + config PCF8574 bool depends on I2C diff --git a/hw/misc/Kconfig b/hw/misc/Kconfig index 8f9ce2f68c..4271e2f4ac 100644 --- a/hw/misc/Kconfig +++ b/hw/misc/Kconfig @@ -30,14 +30,6 @@ config EDU default y if TEST_DEVICES depends on PCI && MSI_NONBROKEN -config PCA9552 - bool - depends on I2C - -config PCA9554 - bool - depends on I2C - config I2C_ECHO bool default y if TEST_DEVICES -- 2.48.1