[RFC PATCH v2 01/14] hw/i2c/omap_i2c: add a dedicated CONFIG_OMAP_I2C symbol
Wadim Mueller <[email protected]>
| Newsgroups | org.nongnu.qemu-arm,org.nongnu.qemu-devel |
|---|---|
| Message-ID | <[email protected]> |
The OMAP I2C controller model was only buildable as part of the full OMAP1 SoC (CONFIG_OMAP). The same IP is used by the TI K3 family (AM64x and friends), which shares nothing else with OMAP1. Give the device its own Kconfig symbol and select it from CONFIG_OMAP, so that other SoCs can reuse the model without pulling in OMAP1. No functional change. Signed-off-by: Wadim Mueller <[email protected]> --- hw/arm/Kconfig | 1 + hw/i2c/Kconfig | 4 ++++ hw/i2c/meson.build | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/hw/arm/Kconfig b/hw/arm/Kconfig index 260d2f0751..b2dc2714c0 100644 --- a/hw/arm/Kconfig +++ b/hw/arm/Kconfig @@ -137,6 +137,7 @@ config OMAP bool select FRAMEBUFFER select I2C + select OMAP_I2C select PFLASH_CFI01 select SD select SERIAL_MM diff --git a/hw/i2c/Kconfig b/hw/i2c/Kconfig index 0766130b59..e7c0e2f8bf 100644 --- a/hw/i2c/Kconfig +++ b/hw/i2c/Kconfig @@ -54,3 +54,7 @@ config PMBUS config BCM2835_I2C bool select I2C + +config OMAP_I2C + bool + select I2C diff --git a/hw/i2c/meson.build b/hw/i2c/meson.build index 88aea35662..760724e7bb 100644 --- a/hw/i2c/meson.build +++ b/hw/i2c/meson.build @@ -14,7 +14,7 @@ i2c_ss.add(when: 'CONFIG_NPCM7XX', if_true: files('npcm7xx_smbus.c')) i2c_ss.add(when: 'CONFIG_DESIGNWARE_I2C', if_true: files('designware_i2c.c')) i2c_ss.add(when: 'CONFIG_SMBUS_EEPROM', if_true: files('smbus_eeprom.c')) i2c_ss.add(when: 'CONFIG_ARM_SBCON_I2C', if_true: files('arm_sbcon_i2c.c')) -i2c_ss.add(when: 'CONFIG_OMAP', if_true: files('omap_i2c.c')) +i2c_ss.add(when: 'CONFIG_OMAP_I2C', if_true: files('omap_i2c.c')) i2c_ss.add(when: 'CONFIG_PPC4XX', if_true: files('ppc4xx_i2c.c')) i2c_ss.add(when: 'CONFIG_PCA954X', if_true: files('i2c_mux_pca954x.c')) i2c_ss.add(when: 'CONFIG_PMBUS', if_true: files('pmbus_device.c')) -- 2.43.0