From patchwork Thu Aug 4 12:04:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anup Patel X-Patchwork-Id: 1663655 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=jJLf8Av3; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=ventanamicro.com header.i=@ventanamicro.com header.a=rsa-sha256 header.s=google header.b=J3bEZsvq; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=opensbi-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4Lz6rf0wpQz9sFs for ; Thu, 4 Aug 2022 22:06:10 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=wKcWMEv4qBhlABukMrBrT5oj3v5tWs6spipSawYdI0s=; b=jJLf8Av3fDun7x SvIlWOR7R5toSpw5iLuzSuqc4g+WPaBvzMRjFFThKBqtl0MQ6eAle59MsSH9hHcvQIrQDPL24211d TrGVh/CNBA4W86QaPfcPaKLfYYCI+F5AqVrylveRdnKgUxC+mls9vTrLEqLUxUvPjntIUl/IQ63j1 slFX/9MNWU1bxwnqigZmAS55CK0X1RTbNa8umReHy376j2dudo5ZPpo1izSjIuIGqOrA+2oqIeVRr B6qOVSYTQui4q4b4SNVtOa1vQN6E8sUMz0DF7KteB/g1aqJ6lWYOfb2NQGBG9y/8TuMvP4V4VbZ3H QET0RsBQGNu+1SKCq+cw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oJZbw-005nQN-Rf; Thu, 04 Aug 2022 12:05:56 +0000 Received: from mail-ot1-x32c.google.com ([2607:f8b0:4864:20::32c]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oJZbt-005nLO-2H for opensbi@lists.infradead.org; Thu, 04 Aug 2022 12:05:54 +0000 Received: by mail-ot1-x32c.google.com with SMTP id g19-20020a9d1293000000b0061c7bfda5dfso14064804otg.1 for ; Thu, 04 Aug 2022 05:05:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=Z3HV1xDP4ClJst5JrwPSPcweLZyhGKnPJMrnhi9m67U=; b=J3bEZsvq2GsiDk1RlabsA6eLjMfPJK/7dOGkMShzeTjiJBmWbB7sao1whdArTitdV/ o3DZc6i8GKm5nvG/FzabuMSyqaHjsiITFt/hLe+BOqYpnWCMOz7zJKiIHWViEFWvA95G psQrj0vGp1tJwsZidmxawNQrOoJk71mnHzVsrNtJE28YitW2B6Gt3k+3kBq4l/IWxSN7 sSPLysDTdCbRHOvNTtL1oHA47cBWrPgLIAJtkRCyJzNaRWqupI7Ca2Xc0MLr4XZOhpqV x1+eUmePuRmHJcnMeJ56BAUeJIAYSmiB4H8+BIiBhPIf766T3Jn3GqC9WkgHqe8aSeFa XyiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=Z3HV1xDP4ClJst5JrwPSPcweLZyhGKnPJMrnhi9m67U=; b=Tw8DnRDVEuZxl1e+O9DIvNLqx+VIeCZJ5IPdUBehFIRMeHR5w2wGPXJ92r5U93nn5f mMG3Qp3db5J+BOWXpIAKN0NjCulDgUrzZfMatZLzaZCjX1IVZuddbBhOmeOVHk5o7KyN /VOE/v4gUQjqVzpmH18i99+1axL3prY22IonXSWvmt42xGlP6vuFk3pepprucr8S1+nw +PjMWSKrhFzQAUbcPPh03xSt3fj9y1mpmDpsecR7Wy1G3AuHNIea7k3KKxSV2JZ8H9kJ 2e4iE+twHxw8A6i8krxbFw8+VRENCO04Nw1R6nqdzRtB6C/6YgIGFOuF77JKZPbahH4f G4Rw== X-Gm-Message-State: ACgBeo22CBIgZ2Pw/jJJh1tuGSoxe56LeY1CMTo7/oiA3CxDo52u7OrS 3Kmq97bD51t1dvE4/oODdJtPKA== X-Google-Smtp-Source: AA6agR5E8cIJVTXBkDG0dbHOIsugwCTB6iNuf4rQy1ASg//jZqydehtcXnncIoqrFdY6Hz0fOW1ylQ== X-Received: by 2002:a9d:5383:0:b0:61c:6ca8:c68 with SMTP id w3-20020a9d5383000000b0061c6ca80c68mr537705otg.303.1659614751431; Thu, 04 Aug 2022 05:05:51 -0700 (PDT) Received: from anup-ubuntu64-vm.. ([103.97.165.210]) by smtp.gmail.com with ESMTPSA id r13-20020a056871088d00b000f5f4ad194bsm93184oaq.25.2022.08.04.05.05.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Aug 2022 05:05:50 -0700 (PDT) From: Anup Patel To: Atish Patra , Alistair Francis Cc: Andrew Jones , David Abdurachmanov , Heinrich Schuchardt , Andreas Schwab , Mark Kettenis , Emmanuel Vadot , Anup Patel , opensbi@lists.infradead.org, Anup Patel Subject: [PATCH v6 13/17] platform: generic: Use kconfig for enabling/disabling overrides Date: Thu, 4 Aug 2022 17:34:25 +0530 Message-Id: <20220804120429.59444-14-apatel@ventanamicro.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220804120429.59444-1-apatel@ventanamicro.com> References: <20220804120429.59444-1-apatel@ventanamicro.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220804_050553_152950_28F891D3 X-CRM114-Status: UNSURE ( 9.58 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: We update generic platform to use kconfig for enabling/disabling platform overrides. We also enable all platform overrides in generic platform defconfig. Signed-off-by: Anup Patel Tested-by: Andrew Jones --- platform/generic/Kconfig | 18 ++++++++++++++++++ platform/generic/allwinner/objects.mk | 4 ++- [...] Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:32c listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: opensbi@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "opensbi" Errors-To: opensbi-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org We update generic platform to use kconfig for enabling/disabling platform overrides. We also enable all platform overrides in generic platform defconfig. Signed-off-by: Anup Patel Tested-by: Andrew Jones --- platform/generic/Kconfig | 18 ++++++++++++++++++ platform/generic/allwinner/objects.mk | 4 ++-- platform/generic/configs/defconfig | 3 +++ platform/generic/sifive/objects.mk | 8 ++++---- 4 files changed, 27 insertions(+), 6 deletions(-) diff --git a/platform/generic/Kconfig b/platform/generic/Kconfig index c1a77b3..c76bd12 100644 --- a/platform/generic/Kconfig +++ b/platform/generic/Kconfig @@ -6,3 +6,21 @@ config PLATFORM_GENERIC select FDT_DOMAIN select FDT_PMU default y + +if PLATFORM_GENERIC + +config PLATFORM_ALLWINNER_D1 + bool "Allwinner D1 support" + depends on FDT_IRQCHIP_PLIC + default n + +config PLATFORM_SIFIVE_FU540 + bool "SiFive FU540 support" + default n + +config PLATFORM_SIFIVE_FU740 + bool "SiFive FU740 support" + depends on FDT_RESET && FDT_I2C + default n + +endif diff --git a/platform/generic/allwinner/objects.mk b/platform/generic/allwinner/objects.mk index 9e36ab6..447cdf1 100644 --- a/platform/generic/allwinner/objects.mk +++ b/platform/generic/allwinner/objects.mk @@ -2,5 +2,5 @@ # SPDX-License-Identifier: BSD-2-Clause # -carray-platform_override_modules-y += sun20i_d1 -platform-objs-y += allwinner/sun20i-d1.o +carray-platform_override_modules-$(CONFIG_PLATFORM_ALLWINNER_D1) += sun20i_d1 +platform-objs-$(CONFIG_PLATFORM_ALLWINNER_D1) += allwinner/sun20i-d1.o diff --git a/platform/generic/configs/defconfig b/platform/generic/configs/defconfig index d56cef2..2a75394 100644 --- a/platform/generic/configs/defconfig +++ b/platform/generic/configs/defconfig @@ -1,3 +1,6 @@ +CONFIG_PLATFORM_ALLWINNER_D1=y +CONFIG_PLATFORM_SIFIVE_FU540=y +CONFIG_PLATFORM_SIFIVE_FU740=y CONFIG_FDT_GPIO=y CONFIG_FDT_GPIO_SIFIVE=y CONFIG_FDT_I2C=y diff --git a/platform/generic/sifive/objects.mk b/platform/generic/sifive/objects.mk index c17e2df..d75e444 100644 --- a/platform/generic/sifive/objects.mk +++ b/platform/generic/sifive/objects.mk @@ -2,8 +2,8 @@ # SPDX-License-Identifier: BSD-2-Clause # -carray-platform_override_modules-y += sifive_fu540 -platform-objs-y += sifive/fu540.o +carray-platform_override_modules-$(CONFIG_PLATFORM_SIFIVE_FU540) += sifive_fu540 +platform-objs-$(CONFIG_PLATFORM_SIFIVE_FU540) += sifive/fu540.o -carray-platform_override_modules-y += sifive_fu740 -platform-objs-y += sifive/fu740.o +carray-platform_override_modules-$(CONFIG_PLATFORM_SIFIVE_FU740) += sifive_fu740 +platform-objs-$(CONFIG_PLATFORM_SIFIVE_FU740) += sifive/fu740.o