[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 2/8] hw/i2c/Kconfig: Add an entry for the SMBus
From: |
Philippe Mathieu-Daudé |
Subject: |
[Qemu-devel] [PATCH 2/8] hw/i2c/Kconfig: Add an entry for the SMBus |
Date: |
Sun, 17 Mar 2019 01:22:53 +0100 |
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é <address@hidden>
---
default-configs/mips-softmmu-common.mak | 1 +
hw/i2c/Kconfig | 8 ++++++--
hw/i2c/Makefile.objs | 3 ++-
3 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/default-configs/mips-softmmu-common.mak
b/default-configs/mips-softmmu-common.mak
index bad7ee3360..6f49a3a8c7 100644
--- a/default-configs/mips-softmmu-common.mak
+++ b/default-configs/mips-softmmu-common.mak
@@ -36,6 +36,7 @@ CONFIG_MIPS_ITU=y
CONFIG_R4K=y
CONFIG_MALTA=y
CONFIG_MIPSSIM=y
+CONFIG_SMBUS=y
CONFIG_ACPI_SMBUS=y
CONFIG_SMBUS_EEPROM=y
CONFIG_TEST_DEVICES=y
diff --git a/hw/i2c/Kconfig b/hw/i2c/Kconfig
index 820b24de5b..2f9fc2bedd 100644
--- a/hw/i2c/Kconfig
+++ b/hw/i2c/Kconfig
@@ -1,9 +1,13 @@
config I2C
bool
+config SMBUS
+ bool
+ select I2C
+
config SMBUS_EEPROM
bool
- depends on I2C
+ select SMBUS
config DDC
bool
@@ -16,7 +20,7 @@ config VERSATILE_I2C
config ACPI_SMBUS
bool
- select I2C
+ select SMBUS
config BITBANG_I2C
bool
diff --git a/hw/i2c/Makefile.objs b/hw/i2c/Makefile.objs
index 5f76b6a990..a98c786918 100644
--- a/hw/i2c/Makefile.objs
+++ b/hw/i2c/Makefile.objs
@@ -1,4 +1,5 @@
-common-obj-$(CONFIG_I2C) += core.o smbus_slave.o smbus_master.o
+common-obj-$(CONFIG_I2C) += core.o
+common-obj-$(CONFIG_SMBUS) += smbus_slave.o smbus_master.o
common-obj-$(CONFIG_SMBUS_EEPROM) += smbus_eeprom.o
common-obj-$(CONFIG_DDC) += i2c-ddc.o
common-obj-$(CONFIG_VERSATILE_I2C) += versatile_i2c.o
--
2.20.1
- [Qemu-devel] [PATCH 0/8] hw/isa: Complete the VT82C686B southbridge Kconfig, Philippe Mathieu-Daudé, 2019/03/16
- [Qemu-devel] [PATCH 1/8] hw/input/Kconfig: Rename the 8042 PS/2 Keyboard Controller, Philippe Mathieu-Daudé, 2019/03/16
- [Qemu-devel] [PATCH 2/8] hw/i2c/Kconfig: Add an entry for the SMBus,
Philippe Mathieu-Daudé <=
- [Qemu-devel] [PATCH 3/8] hw/acpi: Simplify the Makefile logic, Philippe Mathieu-Daudé, 2019/03/16
- [Qemu-devel] [PATCH 4/8] hw/isa/southbridge: Rename ACPI_X86_ICH to ACPI_ICH9, Philippe Mathieu-Daudé, 2019/03/16
- [Qemu-devel] [PATCH 5/8] hw/acpi/Kconfig: Remove ICH9 dependency on X86, Philippe Mathieu-Daudé, 2019/03/16
- [Qemu-devel] [PATCH 6/8] hw/acpi/Kconfig: Introduce the ACPI_PIIX4 config, Philippe Mathieu-Daudé, 2019/03/16