From patchwork Fri Jun 21 15:24:47 2024
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Patchwork-Submitter: Philipp Zabel
X-Patchwork-Id: 13707789
Return-Path:
X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on
aws-us-west-2-korg-lkml-1.web.codeaurora.org
Received: from bombadil.infradead.org (bombadil.infradead.org
[198.137.202.133])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(No client certificate requested)
by smtp.lore.kernel.org (Postfix) with ESMTPS id CA86BC2BA1A
for ;
Fri, 21 Jun 2024 15:25:06 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help
:List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:Message-Id:
Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date:From:
Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender
:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner;
bh=WrlR2Da9XvYMWxXTZJ6dXAje278sGfr6kJnQVoo/uxk=; b=gCnC91aM4Wx+EPr8ioZNlM+5MM
mWKGts5Tu25ZAx0ZBAqg/Jct94jhUp6bLXwS+QBGJimjkrbxURjIHxfY0wUKPWQ1UULYEwGnoWjqQ
oKU+i5VQ4QXYKSWErrS+Ijs/TBUPtxajCGMP64ClatY/J9KpZt2JF6qPFr2hqBC2Rk7AAigs8rHZx
GWapaE+Ak6efuRfG8LtghLX0DaS43FU+87tHoqPZ0l/B75MAbhl5fgoocmvIGtvMocQ0yqdvwxmQt
Z1dpwLNDK4jGNpUsDBvWEUmdTz/7keWC6cNj/yXTcuQDvX0dJUejsocYghCt2x6Pj5L8tAHKzX0st
6Ej6khlA==;
Received: from localhost ([::1] helo=bombadil.infradead.org)
by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux))
id 1sKg8D-00000009jap-14lb;
Fri, 21 Jun 2024 15:24:53 +0000
Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05])
by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux))
id 1sKg8A-00000009jZU-2S9n
for linux-arm-kernel@bombadil.infradead.org;
Fri, 21 Jun 2024 15:24:50 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
d=infradead.org; s=desiato.20200630; h=Cc:To:Message-Id:
Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date:From:Sender:
Reply-To:Content-ID:Content-Description:In-Reply-To:References;
bh=WrlR2Da9XvYMWxXTZJ6dXAje278sGfr6kJnQVoo/uxk=; b=hjIk+deepEG9AvgS9kHDLYYheq
QiHnhCerIA0vhKwfrkCqXbN1/18YEp10Kab3YvNuSZZ2NgkJAJ8X5gMZpaIxJ4KqUeT/oGUvouNyM
zBPmGGy2FTIQHBBs0o+ZSKCO9JxEi3gHguNJgDPqdaua+oohHQ1l5lJQ5a7HtO6NJmHTOhHFDN2o5
l6wSVNn0zmLVJpdariTtpXyGvMtIUyM8/84ARtivx3KEHLFoV3bPejLyLJ08IowgSZMz4SrJDiM7a
PrUFngXe4HZhKpQVyGYTGqq4YnSwsqx0l04Z7TdgBGFhggjaXCmoDJWbi9ysCM+PrP5O9kpI3/DnN
t53isDLg==;
Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104])
by desiato.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux))
id 1sKg87-00000007j8I-1e7D
for linux-arm-kernel@lists.infradead.org;
Fri, 21 Jun 2024 15:24:49 +0000
Received: from dude05.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::54])
by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92)
(envelope-from )
id 1sKg86-0008LY-O5; Fri, 21 Jun 2024 17:24:46 +0200
From: Philipp Zabel
Date: Fri, 21 Jun 2024 17:24:47 +0200
Subject: [PATCH] reset: zynqmp: allow building under COMPILE_TEST
MIME-Version: 1.0
Message-Id: <20240621-reset-compile-zynqmp-v1-1-ede43ab18101@pengutronix.de>
X-B4-Tracking: v=1; b=H4sIAD6bdWYC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE
vPSU3UzU4B8JSMDIxMDMyND3aLU4tQS3eT83ILMnFTdqsq8wtwCXbNUs6TUlGQzU4vENCWg1oK
i1LTMCrCx0bG1tQBlky5oZgAAAA==
To: Michal Simek
Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
kernel@pengutronix.de, Philipp Zabel
X-Mailer: b4 0.14-dev
X-SA-Exim-Connect-IP: 2a0a:edc0:0:1101:1d::54
X-SA-Exim-Mail-From: p.zabel@pengutronix.de
X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de);
SAEximRunCond expanded to false
X-PTX-Original-Recipient: linux-arm-kernel@lists.infradead.org
X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3
X-CRM114-CacheID: sfid-20240621_162447_710253_F12636FC
X-CRM114-Status: UNSURE ( 9.74 )
X-CRM114-Notice: Please train this message.
X-BeenThere: linux-arm-kernel@lists.infradead.org
X-Mailman-Version: 2.1.34
Precedence: list
List-Id:
List-Unsubscribe:
,
List-Archive:
List-Post:
List-Help:
List-Subscribe:
,
Sender: "linux-arm-kernel"
Errors-To:
linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org
The ZynqMP reset driver can be compiled without ARCH_ZYNQMP being
enabled. Allow it to be built under COMPILE_TEST.
Signed-off-by: Philipp Zabel
Acked-by: Michal Simek
---
drivers/reset/Kconfig | 6 ++++++
drivers/reset/Makefile | 2 +-
2 files changed, 7 insertions(+), 1 deletion(-)
---
base-commit: 1613e604df0cd359cf2a7fbd9be7a0bcfacfabd0
change-id: 20240621-reset-compile-zynqmp-6e6bedc658af
Best regards,
diff --git a/drivers/reset/Kconfig b/drivers/reset/Kconfig
index 7112f5932609..9b914f8818ef 100644
--- a/drivers/reset/Kconfig
+++ b/drivers/reset/Kconfig
@@ -328,6 +328,12 @@ config RESET_ZYNQ
help
This enables the reset controller driver for Xilinx Zynq SoCs.
+config RESET_ZYNQMP
+ bool "ZYNQMP Reset Driver" if COMPILE_TEST
+ default ARCH_ZYNQMP
+ help
+ This enables the reset controller driver for Xilinx ZynqMP SoCs.
+
source "drivers/reset/starfive/Kconfig"
source "drivers/reset/sti/Kconfig"
source "drivers/reset/hisilicon/Kconfig"
diff --git a/drivers/reset/Makefile b/drivers/reset/Makefile
index fd8b49fa46fc..544ae3488e3f 100644
--- a/drivers/reset/Makefile
+++ b/drivers/reset/Makefile
@@ -41,4 +41,4 @@ obj-$(CONFIG_RESET_TN48M_CPLD) += reset-tn48m.o
obj-$(CONFIG_RESET_UNIPHIER) += reset-uniphier.o
obj-$(CONFIG_RESET_UNIPHIER_GLUE) += reset-uniphier-glue.o
obj-$(CONFIG_RESET_ZYNQ) += reset-zynq.o
-obj-$(CONFIG_ARCH_ZYNQMP) += reset-zynqmp.o
+obj-$(CONFIG_RESET_ZYNQMP) += reset-zynqmp.o