From nobody Sat Nov 8 10:24:26 2025 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 1550048144719385.69330002551067; Wed, 13 Feb 2019 00:55:44 -0800 (PST) Received: from localhost ([127.0.0.1]:53189 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gtqKT-0005v8-Fw for importer@patchew.org; Wed, 13 Feb 2019 03:55:41 -0500 Received: from eggs.gnu.org ([209.51.188.92]:51907) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gtqG0-00024X-SH for qemu-devel@nongnu.org; Wed, 13 Feb 2019 03:51:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gtq4w-0005z4-IS for qemu-devel@nongnu.org; Wed, 13 Feb 2019 03:39:39 -0500 Received: from mx1.redhat.com ([209.132.183.28]:57738) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gtq4t-0005nx-AH; Wed, 13 Feb 2019 03:39:37 -0500 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 1ECC881F18; Wed, 13 Feb 2019 08:39:30 +0000 (UTC) Received: from thuth.com (ovpn-116-45.ams2.redhat.com [10.36.116.45]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4830710021B6; Wed, 13 Feb 2019 08:39:28 +0000 (UTC) From: Thomas Huth To: yang.zhong@intel.com, pbonzini@redhat.com, qemu-devel@nongnu.org Date: Wed, 13 Feb 2019 09:38:10 +0100 Message-Id: <1550047098-1210-18-git-send-email-thuth@redhat.com> In-Reply-To: <1550047098-1210-1-git-send-email-thuth@redhat.com> References: <1550047098-1210-1-git-send-email-thuth@redhat.com> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Wed, 13 Feb 2019 08:39:30 +0000 (UTC) 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 v2 17/25] hw/arm: Express dependencies of the raspi machines 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: Peter Maydell , qemu-arm@nongnu.org, philmd@redhat.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" Most of the code is directly controlled by the CONFIG_RASPI switch, so not much to add here additionally. Note that CONFIG_SDHCI currently has a hard requirement for PCI, so we select that switch now always there instead of depending on it. We should split up sdhci.c into sysbus and pci parts later to get rid of this hard requirement. Signed-off-by: Thomas Huth --- default-configs/arm-softmmu.mak | 4 +--- hw/arm/Kconfig | 3 +++ hw/sd/Kconfig | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/default-configs/arm-softmmu.mak b/default-configs/arm-softmmu.= mak index b530a06..6605786 100644 --- a/default-configs/arm-softmmu.mak +++ b/default-configs/arm-softmmu.mak @@ -27,15 +27,13 @@ CONFIG_COLLIE=3Dy CONFIG_ASPEED_SOC=3Dy CONFIG_NETDUINO2=3Dy CONFIG_MPS2=3Dy +CONFIG_RASPI=3Dy =20 CONFIG_VGA=3Dy CONFIG_SSI_M25P80=3Dy CONFIG_IMX_FEC=3Dy =20 -CONFIG_FRAMEBUFFER=3Dy - CONFIG_DIGIC=3Dy -CONFIG_RASPI=3Dy CONFIG_NRF51_SOC=3Dy =20 CONFIG_FSL_IMX6=3Dy diff --git a/hw/arm/Kconfig b/hw/arm/Kconfig index d17bd2f..bb385a5 100644 --- a/hw/arm/Kconfig +++ b/hw/arm/Kconfig @@ -269,6 +269,9 @@ config ALLWINNER_A10 =20 config RASPI bool + select FRAMEBUFFER + select PL011 # UART + select SDHCI =20 config STM32F205_SOC bool diff --git a/hw/sd/Kconfig b/hw/sd/Kconfig index 864f535..29e359b 100644 --- a/hw/sd/Kconfig +++ b/hw/sd/Kconfig @@ -13,5 +13,5 @@ config SD config SDHCI bool default y if PCI_DEVICES - depends on PCI + select PCI # TODO: Split up sdhci.c into sysbus and pci = parts select SD --=20 1.8.3.1