Message ID | 20230401111934.130844-4-hal.feng@starfivetech.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1160871vqo; Sat, 1 Apr 2023 04:27:44 -0700 (PDT) X-Google-Smtp-Source: AKy350biLqi4E+W4orUJxXZeWOCT/Byt9fn7X1jaKQOrOlFT0PjLkdYaj7gPIGlD4A4nY3fnTAtZ X-Received: by 2002:a17:903:650:b0:1a1:c2cb:f44e with SMTP id kh16-20020a170903065000b001a1c2cbf44emr24415842plb.53.1680348464584; Sat, 01 Apr 2023 04:27:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680348464; cv=none; d=google.com; s=arc-20160816; b=rcybHfKxqLjQg+JECQi1Y3eCBVjqJa5lHMlvKmdI7YMOs4MR/+6y6h2EuRVvhaQWeJ 5CffFcM5PW7Z9nsGPfkxleBUPrSATGOegm54RVEtTWaxT9VFqL/pZUpTpSThRFTGwoCQ UKSy1ASmKXf6A0dXtzVlpQSFAUTgaNRwzox4x9P1gMgsJRyYvUr/mpqAnasqd98wfyH+ j+vJPcOkbm5YqcNGLjjInsbwXu8pnMxH1KuHR41EU07v1v9p70hAfMn8zoPsBTaA5PYd PdggJbZWg9Ci1MPEK2FLV8UHMWn0NWuzNuvF/dHABq1rRokfkIsTZ/vttNZr0ORLH7Kc xglQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=1IcgwnXhCyxJEV4iw5NJ1Irhe0dK85yhy1ikcWTOS08=; b=IgTG64wOMK8Jgod3fRBykwPplYa2RZ2/fVBRhT9ndij3JAjknEZL6zCiuithEgCUVe pIDerIQBFIT7FGq5xpCQL+0SKPxYWqUCpCyUiU8ik+iVHAbnvLwfLAExOZ2p53I1OjhO KzjP6HY4dIyj0M4Ta80eOK3dFIZ5Bo0vXqOFqMTGTi76lebKPNSZyNB8ZGYaY+XRTS1a sQlukwi6GZ8coxb6Uhk43Nhz3dtOuITmDs9oEPhbbt5dGrRX/b+FFulxbRqsTd9gHKUp mSVwS9O+8It+bBhCa6y5l02sPFe3q4lHO+cwPhlu1s0b1Rs08SdGNTjefAODq4aeVF4o G9cg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m13-20020a6545cd000000b00502ffff6533si4659077pgr.88.2023.04.01.04.27.32; Sat, 01 Apr 2023 04:27:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229941AbjDALUA convert rfc822-to-8bit (ORCPT <rfc822;dexuan.linux@gmail.com> + 99 others); Sat, 1 Apr 2023 07:20:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229789AbjDALTt (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sat, 1 Apr 2023 07:19:49 -0400 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35A611F7B3; Sat, 1 Apr 2023 04:19:48 -0700 (PDT) Received: from EXMBX166.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX166", Issuer "EXMBX166" (not verified)) by fd01.gateway.ufhost.com (Postfix) with ESMTP id 8D2A324E1C6; Sat, 1 Apr 2023 19:19:40 +0800 (CST) Received: from EXMBX172.cuchost.com (172.16.6.92) by EXMBX166.cuchost.com (172.16.6.76) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Sat, 1 Apr 2023 19:19:40 +0800 Received: from ubuntu.localdomain (113.72.144.76) by EXMBX172.cuchost.com (172.16.6.92) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Sat, 1 Apr 2023 19:19:39 +0800 From: Hal Feng <hal.feng@starfivetech.com> To: <linux-clk@vger.kernel.org>, <devicetree@vger.kernel.org>, <linux-riscv@lists.infradead.org> CC: Stephen Boyd <sboyd@kernel.org>, Michael Turquette <mturquette@baylibre.com>, Philipp Zabel <p.zabel@pengutronix.de>, "Rob Herring" <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor@kernel.org>, "Palmer Dabbelt" <palmer@dabbelt.com>, Paul Walmsley <paul.walmsley@sifive.com>, Albert Ou <aou@eecs.berkeley.edu>, Ben Dooks <ben.dooks@sifive.com>, "Daniel Lezcano" <daniel.lezcano@linaro.org>, Thomas Gleixner <tglx@linutronix.de>, Marc Zyngier <maz@kernel.org>, Emil Renner Berthing <emil.renner.berthing@canonical.com>, Hal Feng <hal.feng@starfivetech.com>, <linux-kernel@vger.kernel.org> Subject: [PATCH v7 03/22] clk: starfive: Replace SOC_STARFIVE with ARCH_STARFIVE Date: Sat, 1 Apr 2023 19:19:15 +0800 Message-ID: <20230401111934.130844-4-hal.feng@starfivetech.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230401111934.130844-1-hal.feng@starfivetech.com> References: <20230401111934.130844-1-hal.feng@starfivetech.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [113.72.144.76] X-ClientProxiedBy: EXCAS066.cuchost.com (172.16.6.26) To EXMBX172.cuchost.com (172.16.6.92) X-YovoleRuleAgent: yovoleflag Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-0.0 required=5.0 tests=RCVD_IN_MSPIKE_H2, SPF_HELO_PASS,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761973071638652212?= X-GMAIL-MSGID: =?utf-8?q?1761973071638652212?= |
Series |
Basic clock, reset & device tree support for StarFive JH7110 RISC-V SoC
|
|
Commit Message
Hal Feng
April 1, 2023, 11:19 a.m. UTC
Using ARCH_FOO symbol is preferred than SOC_FOO. Set obj-y for starfive/ in Makefile, so the StarFive drivers can be compiled with COMPILE_TEST=y but ARCH_STARFIVE=n. Reviewed-by: Conor Dooley <conor.dooley@microchip.com> Signed-off-by: Hal Feng <hal.feng@starfivetech.com> --- drivers/clk/Makefile | 2 +- drivers/clk/starfive/Kconfig | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-)
Comments
Am Samstag, 1. April 2023, 13:19:15 CEST schrieb Hal Feng: > Using ARCH_FOO symbol is preferred than SOC_FOO. > Set obj-y for starfive/ in Makefile, so the StarFive drivers > can be compiled with COMPILE_TEST=y but ARCH_STARFIVE=n. > > Reviewed-by: Conor Dooley <conor.dooley@microchip.com> > Signed-off-by: Hal Feng <hal.feng@starfivetech.com> Reviewed-by: Heiko Stuebner <heiko.stuebner@vrull.eu> > --- > drivers/clk/Makefile | 2 +- > drivers/clk/starfive/Kconfig | 6 +++--- > 2 files changed, 4 insertions(+), 4 deletions(-) > > diff --git a/drivers/clk/Makefile b/drivers/clk/Makefile > index e3ca0d058a25..3bed88d67a3a 100644 > --- a/drivers/clk/Makefile > +++ b/drivers/clk/Makefile > @@ -117,7 +117,7 @@ obj-$(CONFIG_PLAT_SPEAR) += spear/ > obj-y += sprd/ > obj-$(CONFIG_ARCH_STI) += st/ > obj-$(CONFIG_ARCH_STM32) += stm32/ > -obj-$(CONFIG_SOC_STARFIVE) += starfive/ > +obj-y += starfive/ > obj-$(CONFIG_ARCH_SUNXI) += sunxi/ > obj-y += sunxi-ng/ > obj-$(CONFIG_ARCH_TEGRA) += tegra/ > diff --git a/drivers/clk/starfive/Kconfig b/drivers/clk/starfive/Kconfig > index 003bd2d56ce7..ef3517f4a276 100644 > --- a/drivers/clk/starfive/Kconfig > +++ b/drivers/clk/starfive/Kconfig > @@ -2,8 +2,8 @@ > > config CLK_STARFIVE_JH7100 > bool "StarFive JH7100 clock support" > - depends on SOC_STARFIVE || COMPILE_TEST > - default SOC_STARFIVE > + depends on ARCH_STARFIVE || COMPILE_TEST > + default ARCH_STARFIVE > help > Say yes here to support the clock controller on the StarFive JH7100 > SoC. > @@ -11,7 +11,7 @@ config CLK_STARFIVE_JH7100 > config CLK_STARFIVE_JH7100_AUDIO > tristate "StarFive JH7100 audio clock support" > depends on CLK_STARFIVE_JH7100 > - default m if SOC_STARFIVE > + default m if ARCH_STARFIVE > help > Say Y or M here to support the audio clocks on the StarFive JH7100 > SoC. >
diff --git a/drivers/clk/Makefile b/drivers/clk/Makefile index e3ca0d058a25..3bed88d67a3a 100644 --- a/drivers/clk/Makefile +++ b/drivers/clk/Makefile @@ -117,7 +117,7 @@ obj-$(CONFIG_PLAT_SPEAR) += spear/ obj-y += sprd/ obj-$(CONFIG_ARCH_STI) += st/ obj-$(CONFIG_ARCH_STM32) += stm32/ -obj-$(CONFIG_SOC_STARFIVE) += starfive/ +obj-y += starfive/ obj-$(CONFIG_ARCH_SUNXI) += sunxi/ obj-y += sunxi-ng/ obj-$(CONFIG_ARCH_TEGRA) += tegra/ diff --git a/drivers/clk/starfive/Kconfig b/drivers/clk/starfive/Kconfig index 003bd2d56ce7..ef3517f4a276 100644 --- a/drivers/clk/starfive/Kconfig +++ b/drivers/clk/starfive/Kconfig @@ -2,8 +2,8 @@ config CLK_STARFIVE_JH7100 bool "StarFive JH7100 clock support" - depends on SOC_STARFIVE || COMPILE_TEST - default SOC_STARFIVE + depends on ARCH_STARFIVE || COMPILE_TEST + default ARCH_STARFIVE help Say yes here to support the clock controller on the StarFive JH7100 SoC. @@ -11,7 +11,7 @@ config CLK_STARFIVE_JH7100 config CLK_STARFIVE_JH7100_AUDIO tristate "StarFive JH7100 audio clock support" depends on CLK_STARFIVE_JH7100 - default m if SOC_STARFIVE + default m if ARCH_STARFIVE help Say Y or M here to support the audio clocks on the StarFive JH7100 SoC.