From nobody Sun Feb 8 18:30:55 2026 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=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1552782339478471.6471526096649; Sat, 16 Mar 2019 17:25:39 -0700 (PDT) Received: from localhost ([127.0.0.1]:48182 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h5JcO-00017W-EA for importer@patchew.org; Sat, 16 Mar 2019 20:25:36 -0400 Received: from eggs.gnu.org ([209.51.188.92]:34548) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h5JaC-0008Nx-UW for qemu-devel@nongnu.org; Sat, 16 Mar 2019 20:23:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h5JaC-0008IR-7Y for qemu-devel@nongnu.org; Sat, 16 Mar 2019 20:23:20 -0400 Received: from mx1.redhat.com ([209.132.183.28]:34962) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h5JaB-0008Hs-Th for qemu-devel@nongnu.org; Sat, 16 Mar 2019 20:23:20 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 25867C057F92; Sun, 17 Mar 2019 00:23:19 +0000 (UTC) Received: from x1w.redhat.com (ovpn-204-28.brq.redhat.com [10.40.204.28]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 536825D75C; Sun, 17 Mar 2019 00:23:15 +0000 (UTC) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org, BALATON Zoltan Date: Sun, 17 Mar 2019 01:22:53 +0100 Message-Id: <20190317002259.25994-3-philmd@redhat.com> In-Reply-To: <20190317002259.25994-1-philmd@redhat.com> References: <20190317002259.25994-1-philmd@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Sun, 17 Mar 2019 00:23:19 +0000 (UTC) Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH 2/8] hw/i2c/Kconfig: Add an entry for the SMBus 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: Thomas Huth , "Michael S. Tsirkin" , Aleksandar Rikalo , Mark Cave-Ayland , Eduardo Habkost , Aurelien Jarno , Aleksandar Markovic , Igor Mammedov , Paolo Bonzini , Guan Xuetao , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Artyom Tarasenko , Richard Henderson Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" 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=C3=A9 --- 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=3Dy CONFIG_R4K=3Dy CONFIG_MALTA=3Dy CONFIG_MIPSSIM=3Dy +CONFIG_SMBUS=3Dy CONFIG_ACPI_SMBUS=3Dy CONFIG_SMBUS_EEPROM=3Dy CONFIG_TEST_DEVICES=3Dy 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 =20 +config SMBUS + bool + select I2C + config SMBUS_EEPROM bool - depends on I2C + select SMBUS =20 config DDC bool @@ -16,7 +20,7 @@ config VERSATILE_I2C =20 config ACPI_SMBUS bool - select I2C + select SMBUS =20 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) +=3D core.o smbus_slave.o smbus_master.o +common-obj-$(CONFIG_I2C) +=3D core.o +common-obj-$(CONFIG_SMBUS) +=3D smbus_slave.o smbus_master.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 --=20 2.20.1