From nobody Sat Sep 28 15:04:42 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=intel.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1548228700400445.1682620030218; Tue, 22 Jan 2019 23:31:40 -0800 (PST) Received: from localhost ([127.0.0.1]:57236 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gmD0d-0003rc-EQ for importer@patchew.org; Wed, 23 Jan 2019 02:31:39 -0500 Received: from eggs.gnu.org ([209.51.188.92]:60314) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gmCWh-0005KJ-6E for qemu-devel@nongnu.org; Wed, 23 Jan 2019 02:00:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gmCWZ-0003xg-LI for qemu-devel@nongnu.org; Wed, 23 Jan 2019 02:00:41 -0500 Received: from mga18.intel.com ([134.134.136.126]:36919) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gmCWX-0002Mh-2m for qemu-devel@nongnu.org; Wed, 23 Jan 2019 02:00:35 -0500 Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Jan 2019 22:59:42 -0800 Received: from he.bj.intel.com ([10.238.157.85]) by orsmga001.jf.intel.com with ESMTP; 22 Jan 2019 22:59:40 -0800 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,510,1539673200"; d="scan'208";a="129981038" From: Yang Zhong To: qemu-devel@nongnu.org Date: Wed, 23 Jan 2019 14:56:11 +0800 Message-Id: <20190123065618.3520-38-yang.zhong@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190123065618.3520-1-yang.zhong@intel.com> References: <20190123065618.3520-1-yang.zhong@intel.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 134.134.136.126 Subject: [Qemu-devel] [RFC PATCH v4 37/44] i2c: express dependencies with Kconfig X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: yang.zhong@intel.com, peter.maydell@linaro.org, thuth@redhat.com, ehabkost@redhat.com, pbonzini@redhat.com, sameo@linux.intel.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Paolo Bonzini Signed-off-by: Paolo Bonzini Signed-off-by: Yang Zhong Acked-by: Thomas Huth --- default-configs/i386-softmmu.mak | 1 - hw/Makefile.objs | 2 +- hw/audio/Kconfig | 1 + hw/display/Kconfig | 3 +++ hw/gpio/Kconfig | 1 + hw/i2c/Kconfig | 6 ++++++ hw/i2c/Makefile.objs | 3 ++- hw/i386/Kconfig | 1 + hw/input/Kconfig | 1 + hw/isa/Kconfig | 1 + hw/misc/Kconfig | 4 ++++ hw/timer/Kconfig | 3 +++ 12 files changed, 24 insertions(+), 3 deletions(-) diff --git a/default-configs/i386-softmmu.mak b/default-configs/i386-softmm= u.mak index 23ea6a3888..38622f7132 100644 --- a/default-configs/i386-softmmu.mak +++ b/default-configs/i386-softmmu.mak @@ -22,7 +22,6 @@ CONFIG_NVDIMM=3Dy CONFIG_ACPI_NVDIMM=3Dy CONFIG_PXB=3Dy CONFIG_ACPI_VMGENID=3Dy -CONFIG_I2C=3Dy CONFIG_SEV=3D$(CONFIG_KVM) =20 # Boards: diff --git a/hw/Makefile.objs b/hw/Makefile.objs index b95b0c74a1..920086b182 100644 --- a/hw/Makefile.objs +++ b/hw/Makefile.objs @@ -10,7 +10,7 @@ devices-dirs-$(CONFIG_SOFTMMU) +=3D display/ devices-dirs-$(CONFIG_SOFTMMU) +=3D dma/ devices-dirs-$(CONFIG_SOFTMMU) +=3D gpio/ devices-dirs-$(CONFIG_HYPERV) +=3D hyperv/ -devices-dirs-$(CONFIG_SOFTMMU) +=3D i2c/ +devices-dirs-$(CONFIG_I2C) +=3D i2c/ devices-dirs-$(CONFIG_SOFTMMU) +=3D ide/ devices-dirs-$(CONFIG_SOFTMMU) +=3D input/ devices-dirs-$(CONFIG_SOFTMMU) +=3D intc/ diff --git a/hw/audio/Kconfig b/hw/audio/Kconfig index 350f2d4359..5cb7118e44 100644 --- a/hw/audio/Kconfig +++ b/hw/audio/Kconfig @@ -40,6 +40,7 @@ config PCSPK =20 config WM8750 bool + depends on I2C =20 config PL041 bool diff --git a/hw/display/Kconfig b/hw/display/Kconfig index 3d69435982..7a9d121772 100644 --- a/hw/display/Kconfig +++ b/hw/display/Kconfig @@ -24,9 +24,11 @@ config PL110 =20 config SII9022 bool + depends on I2C =20 config SSD0303 bool + depends on I2C =20 config SSD0323 bool @@ -70,6 +72,7 @@ config MILKYMIST_TMU2 =20 config SM501 bool + depends on I2C =20 config TCX bool diff --git a/hw/gpio/Kconfig b/hw/gpio/Kconfig index d0a4abf93f..9227cb5598 100644 --- a/hw/gpio/Kconfig +++ b/hw/gpio/Kconfig @@ -1,5 +1,6 @@ config MAX7310 bool + depends on I2C =20 config PL061 bool diff --git a/hw/i2c/Kconfig b/hw/i2c/Kconfig index d6d4402608..74c9328729 100644 --- a/hw/i2c/Kconfig +++ b/hw/i2c/Kconfig @@ -3,18 +3,24 @@ config I2C =20 config SMBUS_EEPROM bool + depends on I2C =20 config DDC bool + depends on I2C =20 config VERSATILE_I2C bool + select I2C =20 config ACPI_SMBUS bool + select I2C =20 config BITBANG_I2C bool + select I2C =20 config IMX_I2C bool + select I2C diff --git a/hw/i2c/Makefile.objs b/hw/i2c/Makefile.objs index 48f7760379..ff22aa6541 100644 --- a/hw/i2c/Makefile.objs +++ b/hw/i2c/Makefile.objs @@ -1,4 +1,5 @@ -common-obj-$(CONFIG_I2C) +=3D core.o smbus.o smbus_eeprom.o +common-obj-$(CONFIG_I2C) +=3D core.o smbus.o +common-obj-$(CONFIG_SMBUS_EEPROM) +=3D smbus_eeprom.o common-obj-$(CONFIG_DDC) +=3D i2c-ddc.o common-obj-$(CONFIG_VERSATILE_I2C) +=3D versatile_i2c.o common-obj-$(CONFIG_ACPI_X86_ICH) +=3D smbus_ich9.o diff --git a/hw/i386/Kconfig b/hw/i386/Kconfig index bb3b023b95..6fa943380c 100644 --- a/hw/i386/Kconfig +++ b/hw/i386/Kconfig @@ -24,6 +24,7 @@ config PC_ACPI select ACPI_X86 select ACPI_CPU_HOTPLUG select ACPI_MEMORY_HOTPLUG + select SMBUS_EEPROM depends on ACPI_SMBUS =20 config I440FX diff --git a/hw/input/Kconfig b/hw/input/Kconfig index 01805ed17b..5d64e07fc6 100644 --- a/hw/input/Kconfig +++ b/hw/input/Kconfig @@ -3,6 +3,7 @@ config ADB =20 config LM832X bool + depends on I2C =20 config PCKBD bool diff --git a/hw/isa/Kconfig b/hw/isa/Kconfig index bf72e4fef2..82eaf183b1 100644 --- a/hw/isa/Kconfig +++ b/hw/isa/Kconfig @@ -18,6 +18,7 @@ config PIIX4 config VT82C686 bool select ISA_BUS + select ACPI_SMBUS =20 config SMC37C669 bool diff --git a/hw/misc/Kconfig b/hw/misc/Kconfig index e6df7480c6..73ceefab75 100644 --- a/hw/misc/Kconfig +++ b/hw/misc/Kconfig @@ -7,9 +7,11 @@ config MAX111X =20 config TMP105 bool + depends on I2C =20 config TMP421 bool + depends on I2C =20 config ISA_DEBUG bool @@ -34,6 +36,7 @@ config EDU =20 config PCA9552 bool + depends on I2C =20 config PL310 bool @@ -100,3 +103,4 @@ config PVPANIC =20 config AUX bool + select I2C diff --git a/hw/timer/Kconfig b/hw/timer/Kconfig index 7dbc1211ab..e1a6e7469b 100644 --- a/hw/timer/Kconfig +++ b/hw/timer/Kconfig @@ -9,6 +9,7 @@ config A9_GTIMER =20 config DS1338 bool + depends on I2C =20 config HPET bool @@ -18,6 +19,7 @@ config I8254 =20 config M41T80 bool + depends on I2C =20 config M48T59 bool @@ -27,6 +29,7 @@ config PL031 =20 config TWL92230 bool + depends on I2C =20 config XLNX_ZYNQMP bool --=20 2.17.1