From patchwork Wed Mar 20 08:28:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Barker X-Patchwork-Id: 13597471 Received: from relmlie5.idc.renesas.com (relmlor1.renesas.com [210.160.252.171]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B846438FB6; Wed, 20 Mar 2024 08:28:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.160.252.171 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710923334; cv=none; b=p4vbiYfNluc6YB6dKqQN2SuGa6xrutZt0SjjzvG6KZJVkR5OjiAimskCO3eRg79GpFQWpsi0zEVc8aP2W/0LcEeRufmmvUmG1V7dlsZGgSEKKuym8danXqXXLQ9kI19FEq3OIQJKL/Dsat3j7S2VnFMjWM+Eei4GLNXnVI+V1TA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710923334; c=relaxed/simple; bh=O86kC/nBu+0ytMYN2Z0A3TlwR/TL+tNc4Uu3IXZHekY=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=IsAdLOGqjNAZh2E6pGjDrmIXyZ0dCNXXOnwkDpPRk993esIMyrHhSyuZUClCynO2Ed/RSr0Dun1EslFv3mFMZhm85izUssbsIpVAIElyM4Yi5VZJPWi3+WIgYIg0qMG/3uoIp2fE1QKn99ieullJp4lt/grenO72m1pg04eCMho= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=bp.renesas.com; spf=pass smtp.mailfrom=bp.renesas.com; arc=none smtp.client-ip=210.160.252.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=bp.renesas.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bp.renesas.com X-IronPort-AV: E=Sophos;i="6.07,139,1708354800"; d="scan'208";a="198441850" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie5.idc.renesas.com with ESMTP; 20 Mar 2024 17:28:50 +0900 Received: from renesas-deb12.cephei.uk (unknown [10.226.93.11]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id 808BB417039C; Wed, 20 Mar 2024 17:28:47 +0900 (JST) From: Paul Barker To: Geert Uytterhoeven , Michael Turquette , Stephen Boyd Cc: Paul Barker , linux-renesas-soc@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] clk: renesas: r9a07g043: Mark mod_clks and resets arrays as const Date: Wed, 20 Mar 2024 08:28:30 +0000 Message-Id: <20240320082831.9666-1-paul.barker.ct@bp.renesas.com> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-clk@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 The r9a07g043_mod_clks and r9a07g043_resets arrays describe the module clocks and reset signals (respectively) in this SoC and do not change at runtime. Signed-off-by: Paul Barker Reviewed-by: Geert Uytterhoeven --- drivers/clk/renesas/r9a07g043-cpg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/renesas/r9a07g043-cpg.c b/drivers/clk/renesas/r9a07g043-cpg.c index 33532673d25d..e36d2ec2c0f5 100644 --- a/drivers/clk/renesas/r9a07g043-cpg.c +++ b/drivers/clk/renesas/r9a07g043-cpg.c @@ -149,7 +149,7 @@ static const struct cpg_core_clk r9a07g043_core_clks[] __initconst = { #endif }; -static struct rzg2l_mod_clk r9a07g043_mod_clks[] = { +static const struct rzg2l_mod_clk r9a07g043_mod_clks[] = { #ifdef CONFIG_ARM64 DEF_MOD("gic", R9A07G043_GIC600_GICCLK, R9A07G043_CLK_P1, 0x514, 0), @@ -282,7 +282,7 @@ static struct rzg2l_mod_clk r9a07g043_mod_clks[] = { 0x5ac, 0), }; -static struct rzg2l_reset r9a07g043_resets[] = { +static const struct rzg2l_reset r9a07g043_resets[] = { #ifdef CONFIG_ARM64 DEF_RST(R9A07G043_GIC600_GICRESET_N, 0x814, 0), DEF_RST(R9A07G043_GIC600_DBG_GICRESET_N, 0x814, 1), From patchwork Wed Mar 20 08:28:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Barker X-Patchwork-Id: 13597472 Received: from relmlie6.idc.renesas.com (relmlor2.renesas.com [210.160.252.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 791D338FA0; Wed, 20 Mar 2024 08:28:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.160.252.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710923337; cv=none; b=u4SDJgIp8NqbISgodQ0FjD/TRNx4E34zmmABZGY13mm3/PdIE3uN5a0A2m7AB+6dasZuAN7XPlTMKvMirFTMXQVsOGgvSip9CJGiQ0fLNdbARlzN0II7RMrTTfMJDFbBA/0ijjuZ+hPhTX/0juNFd8iPRy+E56IsvVfqeAC/01Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710923337; c=relaxed/simple; bh=gE5IMhhE8VUEkVF4vVYv0JNygWdXQV9StROrvaRg01E=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=nIT/ZIOPABxRUY2z3414mUjdwUxyIFhSzq+1zNeuXwvmHZ2r33z+N79KhquOvfRs0rgdUV0bNZ7DF2XOrIlOnosIzQdS1+KACv4VYAmqvOR8jTsV2xTXinv4dPY2JUB8I/mxxfc9KSKzvZErjWAn6Jk3qBwgTB9oyTYnKWzERsM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=bp.renesas.com; spf=pass smtp.mailfrom=bp.renesas.com; arc=none smtp.client-ip=210.160.252.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=bp.renesas.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bp.renesas.com X-IronPort-AV: E=Sophos;i="6.07,139,1708354800"; d="scan'208";a="202395284" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie6.idc.renesas.com with ESMTP; 20 Mar 2024 17:28:53 +0900 Received: from renesas-deb12.cephei.uk (unknown [10.226.93.11]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id 908C3417039C; Wed, 20 Mar 2024 17:28:50 +0900 (JST) From: Paul Barker To: Geert Uytterhoeven , Michael Turquette , Stephen Boyd Cc: Paul Barker , linux-renesas-soc@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] clk: renesas: r9a07g044: Mark resets array as const Date: Wed, 20 Mar 2024 08:28:31 +0000 Message-Id: <20240320082831.9666-2-paul.barker.ct@bp.renesas.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240320082831.9666-1-paul.barker.ct@bp.renesas.com> References: <20240320082831.9666-1-paul.barker.ct@bp.renesas.com> Precedence: bulk X-Mailing-List: linux-clk@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 The r9a07g044_resets array describes the reset signals in this SoC and does not change at runtime. Signed-off-by: Paul Barker Reviewed-by: Geert Uytterhoeven --- drivers/clk/renesas/r9a07g044-cpg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/renesas/r9a07g044-cpg.c b/drivers/clk/renesas/r9a07g044-cpg.c index 48404cafea3f..f6df3f7a31b5 100644 --- a/drivers/clk/renesas/r9a07g044-cpg.c +++ b/drivers/clk/renesas/r9a07g044-cpg.c @@ -368,7 +368,7 @@ static const struct { #endif }; -static struct rzg2l_reset r9a07g044_resets[] = { +static const struct rzg2l_reset r9a07g044_resets[] = { DEF_RST(R9A07G044_GIC600_GICRESET_N, 0x814, 0), DEF_RST(R9A07G044_GIC600_DBG_GICRESET_N, 0x814, 1), DEF_RST(R9A07G044_IA55_RESETN, 0x818, 0),