[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 03/18] hw/gpio/pca955*: Move Kconfig switches next to implemen
From: |
Bernhard Beschow |
Subject: |
[PATCH v2 03/18] hw/gpio/pca955*: Move Kconfig switches next to implementations |
Date: |
Tue, 4 Feb 2025 10:20:57 +0100 |
While at it and since they are user-creatable, build them when
CONFIG_I2C_DEVICES is set.
Signed-off-by: Bernhard Beschow <shentey@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
[PATCH v2 01/18] hw/usb/hcd-dwc3: Align global registers size with Linux, Bernhard Beschow, 2025/02/04
[PATCH v2 06/18] hw/arm/fsl-imx8mp: Add SNVS, Bernhard Beschow, 2025/02/04
[PATCH v2 04/18] hw/arm: Add i.MX 8M Plus EVK board, Bernhard Beschow, 2025/02/04