From mboxrd@z Thu Jan 1 00:00:00 1970 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 3AD59C77B70 for ; Sun, 9 Apr 2023 13:47:58 +0000 (UTC) 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:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=+C4w4xNZx5ZaybrO0e+fmfiR9ZhtTqXPaLY/20anH10=; b=R9RyaHBwUF2HeN FT2zBUoWyFN5lsK9sniMbfqoaPbZfVVLb0Cn4AqoG1tYH9Ka4d6sRptQIWiKpLmvpGhKB1ysLu+4s CixxDJvlgxZXTFBJ9Fk1BCU3zREEIcdhVdijARbueC9rSHQdvlIf8zfXrsuYyNsUhlIxVhxkEKIOy 3FCeZevsOtv582dPY7XnkNeVuV6fTXTCaguMB3R0B0HQXm8HCBNklLPb9Qoc4Z6GO3GG8z6OFQ7O8 sBhpTG+dQs3gIPlcF3tzAnqBNu1b8C0UkFMnzSA8RK9ggb0G1zM6x124YRISfyno68kLF3U7/aA4y wHgz7Z63fCKvtNxvNFzg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1plVNu-00Dn6k-2g; Sun, 09 Apr 2023 13:47:10 +0000 Received: from mail-ej1-x62c.google.com ([2a00:1450:4864:20::62c]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1plVNr-00Dn3S-2t for linux-arm-kernel@lists.infradead.org; Sun, 09 Apr 2023 13:47:09 +0000 Received: by mail-ej1-x62c.google.com with SMTP id sb12so6842842ejc.11 for ; Sun, 09 Apr 2023 06:47:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1681048020; x=1683640020; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=qVGkKW+EWENAWvp7HsvarUoEIpNCD9RuGiyODmnzCnc=; b=MlGNCGh7gUXfpxxJNU0rhD1Z3MIzdG+6Vob7AZk5xWdHu5NeG10zyJW+OMB7jG8i9C 7CkLwh82F4WGwXIQ2r0cSe4ChD2wEohl9GucqPRnhmIFn27VE2fv7Q3ETdBzQv0InIIF EMIvVphhah7+ztg3WkzuU3hwR4CzOcL8bDW/f5c6atRqOuSmogdZRijtYMCZRHP3VJ4j 5oEyitgSp4uVb2MUt64wV9eoSzHRiYoNnTV2DG52+vKzLoercbG8/9RsD88fVwF5Ckmk ovtTZm+FClsgr7E0nDVXB7GOGQaZtDCSE4KunajR71YY9rM9b3fOj6KWB5DzsVHjKjSJ 1VxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681048020; x=1683640020; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=qVGkKW+EWENAWvp7HsvarUoEIpNCD9RuGiyODmnzCnc=; b=Vv7v6RsQ/tnnSqpG3htldkltRuXntLbvSf3drKOXndRGFK8KpBd2ABgTKWoT5dTeMV 9rOlCJ6mH8pXr9CNdPM1x3LvvsPVN+MRKpvTMNI2fZMMnqh9uac81vKwJpJra1ObsQJ7 yJDAeowwc8rCRZWAN6YH75W0l55fmp5WzXyUB7zEcjf1cK7AjA4VZWwXtac/HGQXcWZN vxFyKe5sIPfGooQyt77286tK76PKDim0PjmGe3RH2hfS/u+AnGoWII0dFBBnHYeubi5a VrluOO0cJAWrj+CQ6rOPtJbNiNYCWPzd0Gay/kZSjVU/lBfdKHew2NtcpNNMgjDrLXwD 9gvQ== X-Gm-Message-State: AAQBX9cTS3jDViuF9rpNbVQZM/xIri/Hd/wAdLMceFPDKXBK76CH5pv6 cRh0eEDX+URN16xB63AU3lxI/w== X-Google-Smtp-Source: AKy350a9atDUbjvFebF9fjuKLp2tJILWMQN2IzhGZ3vG1rLblRY3qOoDuOlRPPUEl+cWm5WPkMRyaQ== X-Received: by 2002:a17:907:1111:b0:947:7a69:96cf with SMTP id qu17-20020a170907111100b009477a6996cfmr4505983ejb.22.1681048019783; Sun, 09 Apr 2023 06:46:59 -0700 (PDT) Received: from linaro.org ([188.25.26.161]) by smtp.gmail.com with ESMTPSA id re9-20020a170906d8c900b0093dbb008281sm4162829ejb.130.2023.04.09.06.46.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 Apr 2023 06:46:59 -0700 (PDT) Date: Sun, 9 Apr 2023 16:46:57 +0300 From: Abel Vesa To: "Peng Fan (OSS)" Cc: abelvesa@kernel.org, mturquette@baylibre.com, sboyd@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-imx@nxp.com, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Peng Fan , Ye Li Subject: Re: [PATCH V3 5/7] clk: imx: imx93: add mcore_booted module paratemter Message-ID: References: <20230403095300.3386988-1-peng.fan@oss.nxp.com> <20230403095300.3386988-6-peng.fan@oss.nxp.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20230403095300.3386988-6-peng.fan@oss.nxp.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230409_064707_940262_3B2EB59B X-CRM114-Status: GOOD ( 20.15 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 23-04-03 17:52:58, Peng Fan (OSS) wrote: > From: Peng Fan > > Add mcore_booted boot parameter which could simplify AMP clock > management. To i.MX93, there is CCM(clock control Module) to generate > clock root clock, anatop(analog PLL module) to generate PLL, and LPCG > (clock gating) to gate clocks to peripherals. As below: > anatop->ccm->lpcg->peripheral > > Linux handles the clock management and the auxiliary core is under > control of Linux. Although there is per hardware domain control for LPCG > and CCM, auxiliary core normally only use LPCG hardware domain control > to avoid linux gate off the clk to peripherals and leave CCM ana anatop > to Linux. > > Reviewed-by: Ye Li > Signed-off-by: Peng Fan Reviewed-by: Abel Vesa > --- > drivers/clk/imx/clk-composite-93.c | 8 +++++++- > drivers/clk/imx/clk-imx93.c | 2 ++ > 2 files changed, 9 insertions(+), 1 deletion(-) > > diff --git a/drivers/clk/imx/clk-composite-93.c b/drivers/clk/imx/clk-composite-93.c > index 74a66b0203e4..81164bdcd6cc 100644 > --- a/drivers/clk/imx/clk-composite-93.c > +++ b/drivers/clk/imx/clk-composite-93.c > @@ -222,7 +222,7 @@ struct clk_hw *imx93_clk_composite_flags(const char *name, const char * const *p > hw = clk_hw_register_composite(NULL, name, parent_names, num_parents, > mux_hw, &clk_mux_ro_ops, div_hw, > &clk_divider_ro_ops, NULL, NULL, flags); > - } else { > + } else if (!mcore_booted) { > gate = kzalloc(sizeof(*gate), GFP_KERNEL); > if (!gate) > goto fail; > @@ -238,6 +238,12 @@ struct clk_hw *imx93_clk_composite_flags(const char *name, const char * const *p > &imx93_clk_composite_divider_ops, gate_hw, > &imx93_clk_composite_gate_ops, > flags | CLK_SET_RATE_NO_REPARENT); > + } else { > + hw = clk_hw_register_composite(NULL, name, parent_names, num_parents, > + mux_hw, &imx93_clk_composite_mux_ops, div_hw, > + &imx93_clk_composite_divider_ops, NULL, > + &imx93_clk_composite_gate_ops, > + flags | CLK_SET_RATE_NO_REPARENT); > } > > if (IS_ERR(hw)) > diff --git a/drivers/clk/imx/clk-imx93.c b/drivers/clk/imx/clk-imx93.c > index 8d0974db6bfd..de1ed1d8ba54 100644 > --- a/drivers/clk/imx/clk-imx93.c > +++ b/drivers/clk/imx/clk-imx93.c > @@ -352,6 +352,8 @@ static struct platform_driver imx93_clk_driver = { > }, > }; > module_platform_driver(imx93_clk_driver); > +module_param(mcore_booted, bool, 0444); > +MODULE_PARM_DESC(mcore_booted, "See Cortex-M core is booted or not"); > > MODULE_DESCRIPTION("NXP i.MX93 clock driver"); > MODULE_LICENSE("GPL v2"); > -- > 2.37.1 > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel