From patchwork Wed Feb 26 20:28:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulrich Hecht X-Patchwork-Id: 11407247 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id EE1891580 for ; Wed, 26 Feb 2020 20:28:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CD2912072D for ; Wed, 26 Feb 2020 20:28:38 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=fpond.eu header.i=@fpond.eu header.b="ebkPo9KK" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727381AbgBZU2i (ORCPT ); Wed, 26 Feb 2020 15:28:38 -0500 Received: from mo4-p01-ob.smtp.rzone.de ([85.215.255.53]:19658 "EHLO mo4-p01-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727405AbgBZU2h (ORCPT ); Wed, 26 Feb 2020 15:28:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1582748914; s=strato-dkim-0002; d=fpond.eu; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=Ar14T0cI+vMa2Hcz/ITihl5NSuBdbM4UoBxcIxBPN6k=; b=ebkPo9KKQukDuc0FNJ+5azY15YPQCLZacaSG3eNML2kInZGv7syR32k2uFmNQfa9bq G4iU3oIk9twCwmm2gHvuZ5ejyxiN0ibYp5/7QGy0eK1Mj2BJb5q/YmIOIOstj1M9o1IC GPdO3j2U5Stg5t2JXWyOt/6mLhqp9Efu1xdCJE19Bniq3wCYK92dGtjiGIhJoE240AQY FAj9p5oTzeFxERWqKBcpqbikq4VWQOHTNmZ9+hTIqZwEz2vQ94820KLDJ5zpRpxEui09 NCE6b6Wfy2Zm3AxWgKPpKbKIDWTK+2YAe62vR8lh/2guDGszl16No1JUl2+PLneHckJe fsmA== X-RZG-AUTH: ":OWANVUa4dPFUgKR/3dpvnYP0Np73dmm4I5W0/AvA67Ot4fvR8GNcd21/dZ4=" X-RZG-CLASS-ID: mo00 Received: from groucho.site by smtp.strato.de (RZmta 46.1.12 DYNA|AUTH) with ESMTPSA id L09b9cw1QKSNWNz (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (curve X9_62_prime256v1 with 256 ECDH bits, eq. 3072 bits RSA)) (Client did not present a certificate); Wed, 26 Feb 2020 21:28:23 +0100 (CET) From: Ulrich Hecht To: linux-renesas-soc@vger.kernel.org Cc: wsa@the-dreams.de, geert@linux-m68k.org, fabrizio.castro@bp.renesas.com, ramesh.shanmugasundaram@bp.renesas.com, magnus.damm@gmail.com, Ulrich Hecht Subject: [PATCH 01/11] clk: renesas: cpg-mssr: add support for ignore-unused clocks Date: Wed, 26 Feb 2020 21:28:07 +0100 Message-Id: <1582748897-17374-2-git-send-email-uli+renesas@fpond.eu> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1582748897-17374-1-git-send-email-uli+renesas@fpond.eu> References: <1582748897-17374-1-git-send-email-uli+renesas@fpond.eu> Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org This adds facilities to mark clocks as "ignore used", i.e. never to be turned off. The primary application is the RWDT clock, which needs to remain on throughout the boot process if enabled by the bootloader. Signed-off-by: Ulrich Hecht --- drivers/clk/renesas/renesas-cpg-mssr.c | 7 +++++++ drivers/clk/renesas/renesas-cpg-mssr.h | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/drivers/clk/renesas/renesas-cpg-mssr.c b/drivers/clk/renesas/renesas-cpg-mssr.c index a2663fb..31115c7 100644 --- a/drivers/clk/renesas/renesas-cpg-mssr.c +++ b/drivers/clk/renesas/renesas-cpg-mssr.c @@ -423,6 +423,13 @@ static void __init cpg_mssr_register_mod_clk(const struct mssr_mod_clk *mod, init.flags |= CLK_IS_CRITICAL; break; } + for (i = 0; i < info->num_used_mod_clks; i++) + if (id == info->used_mod_clks[i]) { + dev_dbg(dev, "MSTP %s setting CLK_IGNORE_UNUSED\n", + mod->name); + init.flags |= CLK_IGNORE_UNUSED; + break; + } parent_name = __clk_get_name(parent); init.parent_names = &parent_name; diff --git a/drivers/clk/renesas/renesas-cpg-mssr.h b/drivers/clk/renesas/renesas-cpg-mssr.h index 3b852ba..c76335c 100644 --- a/drivers/clk/renesas/renesas-cpg-mssr.h +++ b/drivers/clk/renesas/renesas-cpg-mssr.h @@ -105,6 +105,9 @@ struct device_node; * @crit_mod_clks: Array with Module Clock IDs of critical clocks that * should not be disabled without a knowledgeable driver * @num_crit_mod_clks: Number of entries in crit_mod_clks[] + * @used_mod_clks: Array with Module Clock IDs of clocks that should not + * be disabled even if they seem to be unused + * @num_used_mod_clks: Number of entries in used_mod_clks[] * * @core_pm_clks: Array with IDs of Core Clocks that are suitable for Power * Management, in addition to Module Clocks @@ -141,6 +144,10 @@ struct cpg_mssr_info { const unsigned int *crit_mod_clks; unsigned int num_crit_mod_clks; + /* Module Clocks that should not be disabled even if unused */ + const unsigned int *used_mod_clks; + unsigned int num_used_mod_clks; + /* Core Clocks suitable for PM, in addition to the Module Clocks */ const unsigned int *core_pm_clks; unsigned int num_core_pm_clks; From patchwork Wed Feb 26 20:28:08 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulrich Hecht X-Patchwork-Id: 11407237 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id EFA7E14D5 for ; Wed, 26 Feb 2020 20:28:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C2BCD2072D for ; Wed, 26 Feb 2020 20:28:37 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=fpond.eu header.i=@fpond.eu header.b="nT8wDgOp" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727446AbgBZU2h (ORCPT ); Wed, 26 Feb 2020 15:28:37 -0500 Received: from mo4-p01-ob.smtp.rzone.de ([85.215.255.52]:20089 "EHLO mo4-p01-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727401AbgBZU2h (ORCPT ); Wed, 26 Feb 2020 15:28:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1582748914; s=strato-dkim-0002; d=fpond.eu; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=Ol8NfaRSYfwGeuaCGM7dzuAkJIOPwXr9UFSzyxYOKcI=; b=nT8wDgOpFYGaNwzkNMr76KRKdVwo4Bqhhnb1lNBCSCk52lDvBd58hHfPqWUm2SwTa0 0TlXEhf6v5EMr+IEe/iwfUzHY0R1Q2/iVUcrhAAkTIfAHCsapkWgpPbtOWI8qAChbhuS JDhbcOntOsSM2lB5uPHppj2m9fAcZQcZs2ugkKvF2AwZ5cXnAzBQ2tsfCSyBfAegvlPB SUwndSvLNxtR1D0Acxa6vGwMzDwS6+p/p2LUXgfXqHCT/TbFTwBBjcgCn46PCrZ4OWNb 8N9NfxAaukFM/vNdYXy5yflqWAonV0CaTVd7mEk+ELwBwMwe63runGdNphtYENGO8tYD Enjw== X-RZG-AUTH: ":OWANVUa4dPFUgKR/3dpvnYP0Np73dmm4I5W0/AvA67Ot4fvR8GNcd21/dZ4=" X-RZG-CLASS-ID: mo00 Received: from groucho.site by smtp.strato.de (RZmta 46.1.12 DYNA|AUTH) with ESMTPSA id L09b9cw1QKSPWO0 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (curve X9_62_prime256v1 with 256 ECDH bits, eq. 3072 bits RSA)) (Client did not present a certificate); Wed, 26 Feb 2020 21:28:25 +0100 (CET) From: Ulrich Hecht To: linux-renesas-soc@vger.kernel.org Cc: wsa@the-dreams.de, geert@linux-m68k.org, fabrizio.castro@bp.renesas.com, ramesh.shanmugasundaram@bp.renesas.com, magnus.damm@gmail.com, Ulrich Hecht Subject: [PATCH 02/11] clk: renesas: r8a7796: mark RWDT clock as ignore-unused Date: Wed, 26 Feb 2020 21:28:08 +0100 Message-Id: <1582748897-17374-3-git-send-email-uli+renesas@fpond.eu> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1582748897-17374-1-git-send-email-uli+renesas@fpond.eu> References: <1582748897-17374-1-git-send-email-uli+renesas@fpond.eu> Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org Ensures RWDT remains alert throughout the boot process if enabled. Signed-off-by: Ulrich Hecht --- drivers/clk/renesas/r8a7796-cpg-mssr.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/clk/renesas/r8a7796-cpg-mssr.c b/drivers/clk/renesas/r8a7796-cpg-mssr.c index e8420d3..3368495 100644 --- a/drivers/clk/renesas/r8a7796-cpg-mssr.c +++ b/drivers/clk/renesas/r8a7796-cpg-mssr.c @@ -254,7 +254,9 @@ static struct mssr_mod_clk r8a7796_mod_clks[] __initdata = { static const unsigned int r8a7796_crit_mod_clks[] __initconst = { MOD_CLK_ID(408), /* INTC-AP (GIC) */ }; - +static const unsigned int r8a7796_used_mod_clks[] __initconst = { + MOD_CLK_ID(402), /* RWDT */ +}; /* * CPG Clock Data @@ -354,6 +356,8 @@ const struct cpg_mssr_info r8a7796_cpg_mssr_info __initconst = { /* Critical Module Clocks */ .crit_mod_clks = r8a7796_crit_mod_clks, .num_crit_mod_clks = ARRAY_SIZE(r8a7796_crit_mod_clks), + .used_mod_clks = r8a7796_used_mod_clks, + .num_used_mod_clks = ARRAY_SIZE(r8a7796_used_mod_clks), /* Callbacks */ .init = r8a7796_cpg_mssr_init, From patchwork Wed Feb 26 20:28:09 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulrich Hecht X-Patchwork-Id: 11407235 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B0ED41580 for ; Wed, 26 Feb 2020 20:28:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 85E9524670 for ; Wed, 26 Feb 2020 20:28:37 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=fpond.eu header.i=@fpond.eu header.b="VmZVx9ga" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727434AbgBZU2g (ORCPT ); Wed, 26 Feb 2020 15:28:36 -0500 Received: from mo4-p02-ob.smtp.rzone.de ([85.215.255.80]:26700 "EHLO mo4-p02-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727381AbgBZU2g (ORCPT ); Wed, 26 Feb 2020 15:28:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1582748914; s=strato-dkim-0002; d=fpond.eu; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=q6Dg2FKsync8Vc5ci83dxqGblqEfGZbztswSKEH5GW4=; b=VmZVx9ga6ezrze2c6r0DqUYkl/QZrGeTzvLUZxjyqNIttUWOhctCrDA82xkkceCIFp qBy/gvbju+1fjEyjpAmKQX4HQh6Bxyj5URasxvgJWaQr6I2jncQ0Uixn+0ZIEVN3MWHB BJb8lCZtgYS7vTFYTsvpL6lkPYM4SNA/BXgdQ5tCLDvRd4cLy2N06mZqhkwft8ZTJbfH W6KcPWfffJkyh2vMG7iPE8TQkTnwmI1l5PojRnWyahprbR4sZ7HsXRNcO3yiKIZrnt6n A0//Rclzjx4+SScETu+5rCuBLLXru9l05Ep3+ttFV/ABJ5fSF06+L1GyJxjyG75tBWUC K5uA== X-RZG-AUTH: ":OWANVUa4dPFUgKR/3dpvnYP0Np73dmm4I5W0/AvA67Ot4fvR8GNcd21/dZ4=" X-RZG-CLASS-ID: mo00 Received: from groucho.site by smtp.strato.de (RZmta 46.1.12 DYNA|AUTH) with ESMTPSA id L09b9cw1QKSPWO1 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (curve X9_62_prime256v1 with 256 ECDH bits, eq. 3072 bits RSA)) (Client did not present a certificate); Wed, 26 Feb 2020 21:28:25 +0100 (CET) From: Ulrich Hecht To: linux-renesas-soc@vger.kernel.org Cc: wsa@the-dreams.de, geert@linux-m68k.org, fabrizio.castro@bp.renesas.com, ramesh.shanmugasundaram@bp.renesas.com, magnus.damm@gmail.com, Ulrich Hecht Subject: [PATCH 03/11] clk: renesas: r8a7795: mark RWDT clock as ignore-unused Date: Wed, 26 Feb 2020 21:28:09 +0100 Message-Id: <1582748897-17374-4-git-send-email-uli+renesas@fpond.eu> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1582748897-17374-1-git-send-email-uli+renesas@fpond.eu> References: <1582748897-17374-1-git-send-email-uli+renesas@fpond.eu> Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org Ensures RWDT remains alert throughout the boot process if enabled. Signed-off-by: Ulrich Hecht --- drivers/clk/renesas/r8a7795-cpg-mssr.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/clk/renesas/r8a7795-cpg-mssr.c b/drivers/clk/renesas/r8a7795-cpg-mssr.c index fbc8c75..e83bdcc 100644 --- a/drivers/clk/renesas/r8a7795-cpg-mssr.c +++ b/drivers/clk/renesas/r8a7795-cpg-mssr.c @@ -281,7 +281,9 @@ static struct mssr_mod_clk r8a7795_mod_clks[] __initdata = { static const unsigned int r8a7795_crit_mod_clks[] __initconst = { MOD_CLK_ID(408), /* INTC-AP (GIC) */ }; - +static const unsigned int r8a7795_used_mod_clks[] __initconst = { + MOD_CLK_ID(402), /* RWDT */ +}; /* * CPG Clock Data @@ -476,6 +478,8 @@ const struct cpg_mssr_info r8a7795_cpg_mssr_info __initconst = { /* Critical Module Clocks */ .crit_mod_clks = r8a7795_crit_mod_clks, .num_crit_mod_clks = ARRAY_SIZE(r8a7795_crit_mod_clks), + .used_mod_clks = r8a7795_used_mod_clks, + .num_used_mod_clks = ARRAY_SIZE(r8a7795_used_mod_clks), /* Callbacks */ .init = r8a7795_cpg_mssr_init, From patchwork Wed Feb 26 20:28:10 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulrich Hecht X-Patchwork-Id: 11407239 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2AF9318E8 for ; Wed, 26 Feb 2020 20:28:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 013382072D for ; Wed, 26 Feb 2020 20:28:38 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=fpond.eu header.i=@fpond.eu header.b="A8f45Fer" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727448AbgBZU2h (ORCPT ); Wed, 26 Feb 2020 15:28:37 -0500 Received: from mo4-p02-ob.smtp.rzone.de ([85.215.255.82]:13991 "EHLO mo4-p02-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727429AbgBZU2h (ORCPT ); Wed, 26 Feb 2020 15:28:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1582748915; s=strato-dkim-0002; d=fpond.eu; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=zAgOSs4qkrhm/LBVFoYE2SMgbhIv79QShibf90EPMNY=; b=A8f45FerowcnDMIYFc7CaVjulchS7ZzfIQMtpEXoKEmHq5NRASyS6AOBvKfZ132ZoY 6bKRHx5e8LCGjdMmJGhLaoZxneCV+cTeVmRQP7I0D2uo0vlGCwa2arYc+oZwIpV9Bwlk tD6BOOrEEWtBlvqQ+I+OG53+1dgQbF7TQKA3rIhUSFBankCKBt4ZKIEbixHkTPtQpgjA GKFobZ3Aqx5GWcwSBLw3XvYE5QwvGxctZ+28LXXDrspeRm6PzFkP/UQ9A1BeeC1mbnH9 TX/aDrs7G2h8JN0s0RbqxLREUSU2UntcsrjyVlG0UKk4bTUFcudRAd8ogXNkEmPzrh04 Ow6w== X-RZG-AUTH: ":OWANVUa4dPFUgKR/3dpvnYP0Np73dmm4I5W0/AvA67Ot4fvR8GNcd21/dZ4=" X-RZG-CLASS-ID: mo00 Received: from groucho.site by smtp.strato.de (RZmta 46.1.12 DYNA|AUTH) with ESMTPSA id L09b9cw1QKSQWO2 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (curve X9_62_prime256v1 with 256 ECDH bits, eq. 3072 bits RSA)) (Client did not present a certificate); Wed, 26 Feb 2020 21:28:26 +0100 (CET) From: Ulrich Hecht To: linux-renesas-soc@vger.kernel.org Cc: wsa@the-dreams.de, geert@linux-m68k.org, fabrizio.castro@bp.renesas.com, ramesh.shanmugasundaram@bp.renesas.com, magnus.damm@gmail.com, Ulrich Hecht Subject: [PATCH 04/11] clk: renesas: r8a77970: mark RWDT clock as ignore-unused Date: Wed, 26 Feb 2020 21:28:10 +0100 Message-Id: <1582748897-17374-5-git-send-email-uli+renesas@fpond.eu> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1582748897-17374-1-git-send-email-uli+renesas@fpond.eu> References: <1582748897-17374-1-git-send-email-uli+renesas@fpond.eu> Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org Ensures RWDT remains alert throughout the boot process if enabled. Signed-off-by: Ulrich Hecht --- drivers/clk/renesas/r8a77970-cpg-mssr.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/clk/renesas/r8a77970-cpg-mssr.c b/drivers/clk/renesas/r8a77970-cpg-mssr.c index cbed376..fda842b 100644 --- a/drivers/clk/renesas/r8a77970-cpg-mssr.c +++ b/drivers/clk/renesas/r8a77970-cpg-mssr.c @@ -167,7 +167,9 @@ static const struct mssr_mod_clk r8a77970_mod_clks[] __initconst = { static const unsigned int r8a77970_crit_mod_clks[] __initconst = { MOD_CLK_ID(408), /* INTC-AP (GIC) */ }; - +static const unsigned int r8a77970_used_mod_clks[] __initconst = { + MOD_CLK_ID(402), /* RWDT */ +}; /* * CPG Clock Data @@ -267,6 +269,8 @@ const struct cpg_mssr_info r8a77970_cpg_mssr_info __initconst = { /* Critical Module Clocks */ .crit_mod_clks = r8a77970_crit_mod_clks, .num_crit_mod_clks = ARRAY_SIZE(r8a77970_crit_mod_clks), + .used_mod_clks = r8a77970_used_mod_clks, + .num_used_mod_clks = ARRAY_SIZE(r8a77970_used_mod_clks), /* Callbacks */ .init = r8a77970_cpg_mssr_init, From patchwork Wed Feb 26 20:28:11 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulrich Hecht X-Patchwork-Id: 11407241 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5F8F714BC for ; Wed, 26 Feb 2020 20:28:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 34CE02072D for ; Wed, 26 Feb 2020 20:28:38 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=fpond.eu header.i=@fpond.eu header.b="QXQ5g5ES" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727429AbgBZU2h (ORCPT ); Wed, 26 Feb 2020 15:28:37 -0500 Received: from mo4-p02-ob.smtp.rzone.de ([85.215.255.83]:29865 "EHLO mo4-p02-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727289AbgBZU2h (ORCPT ); Wed, 26 Feb 2020 15:28:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1582748916; s=strato-dkim-0002; d=fpond.eu; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=pL6N9iPQY1QEfn3dHOWkz1icjRoke6qzOtSLPtzQBfc=; b=QXQ5g5ESbcxMDSKAh0EuW4cKIp5MDfzpY5AqqnPXr7ub2EhS81C6mrx4dpI9m+W1id q5kGHgRJQ3VHVBsrK/pDjUfWzKZuLPKlWDgG/RrmgV2NgTdvIagvtu6AROQeh+JEAK24 2gxUYDoRjWgx60nFr+dSV8/q4BHKmn+GhJmgF7qG6vyi6jjyD68dYyh7fzMnw6tV2RiK z4e2082NE+5z1Qzn02wHaY60+ERZC8yydHoESxGkgtlvFnD0jM73xx/Q2f2DNFm/Lyqg ssa4dkQjdtqBlpabiS+YQ1ma0bpkBuoAtsf72jkqAi5QDF4GgYdDJqtGH5L80mVFWwOI z/ww== X-RZG-AUTH: ":OWANVUa4dPFUgKR/3dpvnYP0Np73dmm4I5W0/AvA67Ot4fvR8GNcd21/dZ4=" X-RZG-CLASS-ID: mo00 Received: from groucho.site by smtp.strato.de (RZmta 46.1.12 DYNA|AUTH) with ESMTPSA id L09b9cw1QKSQWO3 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (curve X9_62_prime256v1 with 256 ECDH bits, eq. 3072 bits RSA)) (Client did not present a certificate); Wed, 26 Feb 2020 21:28:26 +0100 (CET) From: Ulrich Hecht To: linux-renesas-soc@vger.kernel.org Cc: wsa@the-dreams.de, geert@linux-m68k.org, fabrizio.castro@bp.renesas.com, ramesh.shanmugasundaram@bp.renesas.com, magnus.damm@gmail.com, Ulrich Hecht Subject: [PATCH 05/11] clk: renesas: r8a77980: mark RWDT clock as ignore-unused Date: Wed, 26 Feb 2020 21:28:11 +0100 Message-Id: <1582748897-17374-6-git-send-email-uli+renesas@fpond.eu> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1582748897-17374-1-git-send-email-uli+renesas@fpond.eu> References: <1582748897-17374-1-git-send-email-uli+renesas@fpond.eu> Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org Ensures RWDT remains alert throughout the boot process if enabled. Signed-off-by: Ulrich Hecht --- drivers/clk/renesas/r8a77980-cpg-mssr.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/clk/renesas/r8a77980-cpg-mssr.c b/drivers/clk/renesas/r8a77980-cpg-mssr.c index 7227f67..e678974 100644 --- a/drivers/clk/renesas/r8a77980-cpg-mssr.c +++ b/drivers/clk/renesas/r8a77980-cpg-mssr.c @@ -182,7 +182,9 @@ static const struct mssr_mod_clk r8a77980_mod_clks[] __initconst = { static const unsigned int r8a77980_crit_mod_clks[] __initconst = { MOD_CLK_ID(408), /* INTC-AP (GIC) */ }; - +static const unsigned int r8a77980_used_mod_clks[] __initconst = { + MOD_CLK_ID(402), /* RWDT */ +}; /* * CPG Clock Data @@ -238,6 +240,8 @@ const struct cpg_mssr_info r8a77980_cpg_mssr_info __initconst = { /* Critical Module Clocks */ .crit_mod_clks = r8a77980_crit_mod_clks, .num_crit_mod_clks = ARRAY_SIZE(r8a77980_crit_mod_clks), + .used_mod_clks = r8a77980_used_mod_clks, + .num_used_mod_clks = ARRAY_SIZE(r8a77980_used_mod_clks), /* Callbacks */ .init = r8a77980_cpg_mssr_init, From patchwork Wed Feb 26 20:28:12 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulrich Hecht X-Patchwork-Id: 11407245 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C45B314D5 for ; Wed, 26 Feb 2020 20:28:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9A2F324656 for ; Wed, 26 Feb 2020 20:28:38 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=fpond.eu header.i=@fpond.eu header.b="WF6rNpOZ" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727444AbgBZU2i (ORCPT ); Wed, 26 Feb 2020 15:28:38 -0500 Received: from mo4-p02-ob.smtp.rzone.de ([85.215.255.80]:18006 "EHLO mo4-p02-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727381AbgBZU2h (ORCPT ); Wed, 26 Feb 2020 15:28:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1582748916; s=strato-dkim-0002; d=fpond.eu; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=mMcm8d/fE4UAGsmqDqlb0jG53w6GKYHMNPRyggJiS5o=; b=WF6rNpOZDIDQfCLOybef+JVU9dpJDPxLqkUW9cIE69NUKLiyrKJ7lOeQjlHbxAKRLS DqVGul8EOMmESW/KOPquFZClwNBgMxgZf6HSdPiaj4rYUM25A+bu90l2b2nzH6kO4m67 rwcyKG76unGu+cwMprtEc8nkdKxHqp/FMhnt3+dYLgVYnCn40W+ETyTLs4LlnvPnqA3R mFlRjoYQyVvAwGqKr6cUq7ktLXK+4W6pFD/XfkS2IyyTbyStREb260apEhb/5TpgBiXT YMtSGHZ33V9HrQFda9HjdvhKoTY/DAPYkZre/H1D7HpZ7Uy8mx3BlCzilI5tDGIg5muG f2VQ== X-RZG-AUTH: ":OWANVUa4dPFUgKR/3dpvnYP0Np73dmm4I5W0/AvA67Ot4fvR8GNcd21/dZ4=" X-RZG-CLASS-ID: mo00 Received: from groucho.site by smtp.strato.de (RZmta 46.1.12 DYNA|AUTH) with ESMTPSA id L09b9cw1QKSQWO4 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (curve X9_62_prime256v1 with 256 ECDH bits, eq. 3072 bits RSA)) (Client did not present a certificate); Wed, 26 Feb 2020 21:28:26 +0100 (CET) From: Ulrich Hecht To: linux-renesas-soc@vger.kernel.org Cc: wsa@the-dreams.de, geert@linux-m68k.org, fabrizio.castro@bp.renesas.com, ramesh.shanmugasundaram@bp.renesas.com, magnus.damm@gmail.com, Ulrich Hecht Subject: [PATCH 06/11] clk: renesas: r8a77995: mark RWDT clock as ignore-unused Date: Wed, 26 Feb 2020 21:28:12 +0100 Message-Id: <1582748897-17374-7-git-send-email-uli+renesas@fpond.eu> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1582748897-17374-1-git-send-email-uli+renesas@fpond.eu> References: <1582748897-17374-1-git-send-email-uli+renesas@fpond.eu> Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org Ensures RWDT remains alert throughout the boot process if enabled. Signed-off-by: Ulrich Hecht --- drivers/clk/renesas/r8a77995-cpg-mssr.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/clk/renesas/r8a77995-cpg-mssr.c b/drivers/clk/renesas/r8a77995-cpg-mssr.c index 962bb33..f221d00 100644 --- a/drivers/clk/renesas/r8a77995-cpg-mssr.c +++ b/drivers/clk/renesas/r8a77995-cpg-mssr.c @@ -183,7 +183,9 @@ static const struct mssr_mod_clk r8a77995_mod_clks[] __initconst = { static const unsigned int r8a77995_crit_mod_clks[] __initconst = { MOD_CLK_ID(408), /* INTC-AP (GIC) */ }; - +static const unsigned int r8a77995_used_mod_clks[] __initconst = { + MOD_CLK_ID(402), /* RWDT */ +}; /* * CPG Clock Data @@ -233,6 +235,8 @@ const struct cpg_mssr_info r8a77995_cpg_mssr_info __initconst = { /* Critical Module Clocks */ .crit_mod_clks = r8a77995_crit_mod_clks, .num_crit_mod_clks = ARRAY_SIZE(r8a77995_crit_mod_clks), + .used_mod_clks = r8a77995_used_mod_clks, + .num_used_mod_clks = ARRAY_SIZE(r8a77995_used_mod_clks), /* Callbacks */ .init = r8a77995_cpg_mssr_init, From patchwork Wed Feb 26 20:28:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulrich Hecht X-Patchwork-Id: 11407255 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 644E61580 for ; Wed, 26 Feb 2020 20:28:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 36AFC2072D for ; Wed, 26 Feb 2020 20:28:40 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=fpond.eu header.i=@fpond.eu header.b="LtJe7cKx" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727401AbgBZU2j (ORCPT ); Wed, 26 Feb 2020 15:28:39 -0500 Received: from mo4-p02-ob.smtp.rzone.de ([85.215.255.83]:32399 "EHLO mo4-p02-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727451AbgBZU2j (ORCPT ); Wed, 26 Feb 2020 15:28:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1582748918; s=strato-dkim-0002; d=fpond.eu; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=fykmrfpkOJ5Mrt1IHem2VsBOVaH9TO2J07O4d8FCkpU=; b=LtJe7cKxYoY97CjlxuT1JHfJ3tkV5rlllCbOu4G4rlWm5W6mq9PIkr+balfG3gEcWa sFABwz7RgWP3m0w8MZmawPA6HO/dYvtwJczC2DijdzeBnmdG9nSx71hnRbAKOwVylqbX 7TqNpCvXma186xGFVaY/O2lxGs5MUipg2MVWY40/CFVrS9OOOuF0+jqLxZfobI3/oCZA F9A29wfq86pcJXghdmALKbyZTxWgkI/ONZjKaC5ak95Ap0hITK++Y4Wv4PT1cZT0jd2m y7p9PrUvNHla5E4KYgcF3VrXsKnxY4L5S4t+uRads/H1752lRBcvqkbz5LWXC7RNFqix 45Tg== X-RZG-AUTH: ":OWANVUa4dPFUgKR/3dpvnYP0Np73dmm4I5W0/AvA67Ot4fvR8GNcd21/dZ4=" X-RZG-CLASS-ID: mo00 Received: from groucho.site by smtp.strato.de (RZmta 46.1.12 DYNA|AUTH) with ESMTPSA id L09b9cw1QKSRWO5 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (curve X9_62_prime256v1 with 256 ECDH bits, eq. 3072 bits RSA)) (Client did not present a certificate); Wed, 26 Feb 2020 21:28:27 +0100 (CET) From: Ulrich Hecht To: linux-renesas-soc@vger.kernel.org Cc: wsa@the-dreams.de, geert@linux-m68k.org, fabrizio.castro@bp.renesas.com, ramesh.shanmugasundaram@bp.renesas.com, magnus.damm@gmail.com, Ulrich Hecht Subject: [PATCH 07/11] clk: renesas: r8a774a1: mark RWDT clock as ignore-unused Date: Wed, 26 Feb 2020 21:28:13 +0100 Message-Id: <1582748897-17374-8-git-send-email-uli+renesas@fpond.eu> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1582748897-17374-1-git-send-email-uli+renesas@fpond.eu> References: <1582748897-17374-1-git-send-email-uli+renesas@fpond.eu> Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org Ensures RWDT remains alert throughout the boot process if enabled. Signed-off-by: Ulrich Hecht --- drivers/clk/renesas/r8a774a1-cpg-mssr.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/clk/renesas/r8a774a1-cpg-mssr.c b/drivers/clk/renesas/r8a774a1-cpg-mssr.c index e05bfa2..ec48727 100644 --- a/drivers/clk/renesas/r8a774a1-cpg-mssr.c +++ b/drivers/clk/renesas/r8a774a1-cpg-mssr.c @@ -239,6 +239,9 @@ static const struct mssr_mod_clk r8a774a1_mod_clks[] __initconst = { static const unsigned int r8a774a1_crit_mod_clks[] __initconst = { MOD_CLK_ID(408), /* INTC-AP (GIC) */ }; +static const unsigned int r8a774a1_used_mod_clks[] __initconst = { + MOD_CLK_ID(402), /* RWDT */ +}; /* * CPG Clock Data @@ -324,6 +327,8 @@ const struct cpg_mssr_info r8a774a1_cpg_mssr_info __initconst = { /* Critical Module Clocks */ .crit_mod_clks = r8a774a1_crit_mod_clks, .num_crit_mod_clks = ARRAY_SIZE(r8a774a1_crit_mod_clks), + .used_mod_clks = r8a774a1_used_mod_clks, + .num_used_mod_clks = ARRAY_SIZE(r8a774a1_used_mod_clks), /* Callbacks */ .init = r8a774a1_cpg_mssr_init, From patchwork Wed Feb 26 20:28:14 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulrich Hecht X-Patchwork-Id: 11407243 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 917EC1871 for ; Wed, 26 Feb 2020 20:28:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 67BE22072D for ; Wed, 26 Feb 2020 20:28:38 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=fpond.eu header.i=@fpond.eu header.b="kx27doGs" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727289AbgBZU2i (ORCPT ); Wed, 26 Feb 2020 15:28:38 -0500 Received: from mo4-p02-ob.smtp.rzone.de ([85.215.255.81]:15967 "EHLO mo4-p02-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727444AbgBZU2h (ORCPT ); Wed, 26 Feb 2020 15:28:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1582748916; s=strato-dkim-0002; d=fpond.eu; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=dpeHmgWcwtkV4Yk8GG9zyoEBtnd04oAMlwET+wY4Y9w=; b=kx27doGsjEbcEDMGkFH50poZbQWEOidC8xtcD46ERtARFnvuyPL6J15l2XDu7RBoJd EUFc9C9Z5rh6JbS4IGFty/8wufgcKsM65kZDqIqJCJd3kqj4bDMXCMoaa3Sgh2xH+MtB hokPQQecdD21MYeQS8uYHuO60OKZFV0Iz/C2JvihY2AwLwdk4J67wZxHWSY9BPKZTPGo ylomA3qAuIqx3EgmWJKzq2oCorMsy/JE1IDgX854zxRW7+2fe1bKHqf3hrvj+fDv534p c2t8+L1yPIa3ViTKuZKjWgyG4+Huwsmgye9Vgd20xCbYv9ncfjleTCMQ1w/W9n4DpzM9 fCgw== X-RZG-AUTH: ":OWANVUa4dPFUgKR/3dpvnYP0Np73dmm4I5W0/AvA67Ot4fvR8GNcd21/dZ4=" X-RZG-CLASS-ID: mo00 Received: from groucho.site by smtp.strato.de (RZmta 46.1.12 DYNA|AUTH) with ESMTPSA id L09b9cw1QKSRWO6 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (curve X9_62_prime256v1 with 256 ECDH bits, eq. 3072 bits RSA)) (Client did not present a certificate); Wed, 26 Feb 2020 21:28:27 +0100 (CET) From: Ulrich Hecht To: linux-renesas-soc@vger.kernel.org Cc: wsa@the-dreams.de, geert@linux-m68k.org, fabrizio.castro@bp.renesas.com, ramesh.shanmugasundaram@bp.renesas.com, magnus.damm@gmail.com, Ulrich Hecht Subject: [PATCH 08/11] clk: renesas: r8a774b1: mark RWDT clock as ignore-unused Date: Wed, 26 Feb 2020 21:28:14 +0100 Message-Id: <1582748897-17374-9-git-send-email-uli+renesas@fpond.eu> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1582748897-17374-1-git-send-email-uli+renesas@fpond.eu> References: <1582748897-17374-1-git-send-email-uli+renesas@fpond.eu> Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org Ensures RWDT remains alert throughout the boot process if enabled. Signed-off-by: Ulrich Hecht --- drivers/clk/renesas/r8a774b1-cpg-mssr.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/clk/renesas/r8a774b1-cpg-mssr.c b/drivers/clk/renesas/r8a774b1-cpg-mssr.c index c9af7091..1c0951c 100644 --- a/drivers/clk/renesas/r8a774b1-cpg-mssr.c +++ b/drivers/clk/renesas/r8a774b1-cpg-mssr.c @@ -235,6 +235,9 @@ static const struct mssr_mod_clk r8a774b1_mod_clks[] __initconst = { static const unsigned int r8a774b1_crit_mod_clks[] __initconst = { MOD_CLK_ID(408), /* INTC-AP (GIC) */ }; +static const unsigned int r8a774b1_used_mod_clks[] __initconst = { + MOD_CLK_ID(402), /* RWDT */ +}; /* * CPG Clock Data @@ -320,6 +323,8 @@ const struct cpg_mssr_info r8a774b1_cpg_mssr_info __initconst = { /* Critical Module Clocks */ .crit_mod_clks = r8a774b1_crit_mod_clks, .num_crit_mod_clks = ARRAY_SIZE(r8a774b1_crit_mod_clks), + .used_mod_clks = r8a774b1_used_mod_clks, + .num_used_mod_clks = ARRAY_SIZE(r8a774b1_used_mod_clks), /* Callbacks */ .init = r8a774b1_cpg_mssr_init, From patchwork Wed Feb 26 20:28:15 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulrich Hecht X-Patchwork-Id: 11407249 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 51EBB14BC for ; Wed, 26 Feb 2020 20:28:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 27D2724656 for ; Wed, 26 Feb 2020 20:28:39 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=fpond.eu header.i=@fpond.eu header.b="q6X/6bj8" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727456AbgBZU2i (ORCPT ); Wed, 26 Feb 2020 15:28:38 -0500 Received: from mo4-p02-ob.smtp.rzone.de ([85.215.255.82]:28088 "EHLO mo4-p02-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727445AbgBZU2i (ORCPT ); Wed, 26 Feb 2020 15:28:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1582748917; s=strato-dkim-0002; d=fpond.eu; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=csYHKJ/eq7g/yZQmIWvzdVy2awfiOt77HcQG2qyPIrI=; b=q6X/6bj8mYKq/HueOqJoDPt8oWOpr4a/A/DI+yNblXIK1sn+mtsUZY9E0U2B88BTGj o93vM7ZSlg4sqeqNbQATfZxM2+ITEn79SMVQvvpS+3W4lkwvZX+/5O2J0NOOjN90q/pX e8yKclGH52SzpaTbAFrfTq7N7itW1JZ5T1tc0dKVo/80pjFFSmdwG9orjJKd70++lEyq LYFbQ+iRsFmDnCIcLtvx1s9GntN5QGB/q+d2QHOA5ewBoqeGYizxGVnm3WVYTIhA8TPj wIVo90IuqOxq9CAM1vxb2i3SscpntXpniQ27NFMe3wa1zcukwXJHP7m3sTMn0tbekoIP OUCw== X-RZG-AUTH: ":OWANVUa4dPFUgKR/3dpvnYP0Np73dmm4I5W0/AvA67Ot4fvR8GNcd21/dZ4=" X-RZG-CLASS-ID: mo00 Received: from groucho.site by smtp.strato.de (RZmta 46.1.12 DYNA|AUTH) with ESMTPSA id L09b9cw1QKSSWO7 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (curve X9_62_prime256v1 with 256 ECDH bits, eq. 3072 bits RSA)) (Client did not present a certificate); Wed, 26 Feb 2020 21:28:28 +0100 (CET) From: Ulrich Hecht To: linux-renesas-soc@vger.kernel.org Cc: wsa@the-dreams.de, geert@linux-m68k.org, fabrizio.castro@bp.renesas.com, ramesh.shanmugasundaram@bp.renesas.com, magnus.damm@gmail.com, Ulrich Hecht Subject: [PATCH 09/11] clk: renesas: r8a774c0: mark RWDT clock as ignore-unused Date: Wed, 26 Feb 2020 21:28:15 +0100 Message-Id: <1582748897-17374-10-git-send-email-uli+renesas@fpond.eu> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1582748897-17374-1-git-send-email-uli+renesas@fpond.eu> References: <1582748897-17374-1-git-send-email-uli+renesas@fpond.eu> Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org Ensures RWDT remains alert throughout the boot process if enabled. Signed-off-by: Ulrich Hecht --- drivers/clk/renesas/r8a774c0-cpg-mssr.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/clk/renesas/r8a774c0-cpg-mssr.c b/drivers/clk/renesas/r8a774c0-cpg-mssr.c index f91e7a4..5d27578 100644 --- a/drivers/clk/renesas/r8a774c0-cpg-mssr.c +++ b/drivers/clk/renesas/r8a774c0-cpg-mssr.c @@ -240,6 +240,9 @@ static const struct mssr_mod_clk r8a774c0_mod_clks[] __initconst = { static const unsigned int r8a774c0_crit_mod_clks[] __initconst = { MOD_CLK_ID(408), /* INTC-AP (GIC) */ }; +static const unsigned int r8a774c0_used_mod_clks[] __initconst = { + MOD_CLK_ID(402), /* RWDT */ +}; /* * CPG Clock Data @@ -289,6 +292,8 @@ const struct cpg_mssr_info r8a774c0_cpg_mssr_info __initconst = { /* Critical Module Clocks */ .crit_mod_clks = r8a774c0_crit_mod_clks, .num_crit_mod_clks = ARRAY_SIZE(r8a774c0_crit_mod_clks), + .used_mod_clks = r8a774c0_used_mod_clks, + .num_used_mod_clks = ARRAY_SIZE(r8a774c0_used_mod_clks), /* Callbacks */ .init = r8a774c0_cpg_mssr_init, From patchwork Wed Feb 26 20:28:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulrich Hecht X-Patchwork-Id: 11407251 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 841811871 for ; Wed, 26 Feb 2020 20:28:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5A5602072D for ; Wed, 26 Feb 2020 20:28:39 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=fpond.eu header.i=@fpond.eu header.b="JSKZmJKK" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727445AbgBZU2j (ORCPT ); Wed, 26 Feb 2020 15:28:39 -0500 Received: from mo4-p02-ob.smtp.rzone.de ([81.169.146.168]:12072 "EHLO mo4-p02-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727401AbgBZU2i (ORCPT ); Wed, 26 Feb 2020 15:28:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1582748917; s=strato-dkim-0002; d=fpond.eu; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=q5luusvIJbdrR+mxIQrVhZuB+GR70FBQKAWvV9kZ81Q=; b=JSKZmJKKPx6FnwdyVCTWbQVoNEONU7yyu4D9tPh7cqVnoOo1wquDISuTpmq6HGpu9D ZtaZ6hxvdRZiXlvMOS4szpqHbrV89rPYGlK0vnITOAc3dj5OEOrfrebv8yK1eLaKO2X8 B5OwXUCu+FrwcQYkgVx3qZOI9ren3082lf8Fu06iM2PBUsjfOetNHBwDFptIb8lXNewx AJAVPxswfdoJtUWH5QFlil/j8ZYIU/USuJ5+jcshd1HvZXyj2X9baWrXjiwMDhRVyqSw sBQECYxrjyxhLE8rbjipR7EcK2Jg03tpQ466e1hO0i3zzPAwoXLUuYrWrA3fcuKaFUi1 +S7g== X-RZG-AUTH: ":OWANVUa4dPFUgKR/3dpvnYP0Np73dmm4I5W0/AvA67Ot4fvR8GNcd21/dZ4=" X-RZG-CLASS-ID: mo00 Received: from groucho.site by smtp.strato.de (RZmta 46.1.12 DYNA|AUTH) with ESMTPSA id L09b9cw1QKSSWO8 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (curve X9_62_prime256v1 with 256 ECDH bits, eq. 3072 bits RSA)) (Client did not present a certificate); Wed, 26 Feb 2020 21:28:28 +0100 (CET) From: Ulrich Hecht To: linux-renesas-soc@vger.kernel.org Cc: wsa@the-dreams.de, geert@linux-m68k.org, fabrizio.castro@bp.renesas.com, ramesh.shanmugasundaram@bp.renesas.com, magnus.damm@gmail.com, Ulrich Hecht Subject: [PATCH 10/11] clk: renesas: r8a77965: mark RWDT clock as ignore-unused Date: Wed, 26 Feb 2020 21:28:16 +0100 Message-Id: <1582748897-17374-11-git-send-email-uli+renesas@fpond.eu> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1582748897-17374-1-git-send-email-uli+renesas@fpond.eu> References: <1582748897-17374-1-git-send-email-uli+renesas@fpond.eu> Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org Ensures RWDT remains alert throughout the boot process if enabled. Signed-off-by: Ulrich Hecht --- drivers/clk/renesas/r8a77965-cpg-mssr.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/clk/renesas/r8a77965-cpg-mssr.c b/drivers/clk/renesas/r8a77965-cpg-mssr.c index b3af4da..d77174b 100644 --- a/drivers/clk/renesas/r8a77965-cpg-mssr.c +++ b/drivers/clk/renesas/r8a77965-cpg-mssr.c @@ -255,6 +255,9 @@ static const struct mssr_mod_clk r8a77965_mod_clks[] __initconst = { static const unsigned int r8a77965_crit_mod_clks[] __initconst = { MOD_CLK_ID(408), /* INTC-AP (GIC) */ }; +static const unsigned int r8a77965_used_mod_clks[] __initconst = { + MOD_CLK_ID(402), /* RWDT */ +}; /* * CPG Clock Data @@ -340,6 +343,8 @@ const struct cpg_mssr_info r8a77965_cpg_mssr_info __initconst = { /* Critical Module Clocks */ .crit_mod_clks = r8a77965_crit_mod_clks, .num_crit_mod_clks = ARRAY_SIZE(r8a77965_crit_mod_clks), + .used_mod_clks = r8a77965_used_mod_clks, + .num_used_mod_clks = ARRAY_SIZE(r8a77965_used_mod_clks), /* Callbacks */ .init = r8a77965_cpg_mssr_init, From patchwork Wed Feb 26 20:28:17 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulrich Hecht X-Patchwork-Id: 11407253 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2E29014D5 for ; Wed, 26 Feb 2020 20:28:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 03D622072D for ; Wed, 26 Feb 2020 20:28:40 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=fpond.eu header.i=@fpond.eu header.b="GjoX+jKs" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727379AbgBZU2j (ORCPT ); Wed, 26 Feb 2020 15:28:39 -0500 Received: from mo4-p02-ob.smtp.rzone.de ([85.215.255.84]:16189 "EHLO mo4-p02-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727405AbgBZU2j (ORCPT ); Wed, 26 Feb 2020 15:28:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1582748917; s=strato-dkim-0002; d=fpond.eu; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=LboxyTaaNTKonXjEYHrn6kqvvHpZwojHx07PCwZe5VE=; b=GjoX+jKs41xo34DcPdzrqyRs8b/jP92OVVhexcL2XDeNcIGVhWwwnpYAhaUtAuUQiv FiH2gCEoaOfHK0f2G/toPd+lU76lgfg2g5M8VIyslAqM93lvXrBdmg0eJy5gN/HmC6DX 40r/+nzftLp9VlQ7IQBOP8auGxHqo0wXkbL7fuUFoyFwyGr7knXKQWxBwG16XrveOSci RWJa94YgqjXUyxSqjfI83yAM5URS6hKPlSLhjGnM60UzyA9vLsdZvAyAn3d6MEpVmLLa ftUHC3t3C7R0P2A1KoIOjhthG8ezGQL7pSl+ZOlqdc4NMjuPqsZQL4IwiAwbbjBJiRAG cayA== X-RZG-AUTH: ":OWANVUa4dPFUgKR/3dpvnYP0Np73dmm4I5W0/AvA67Ot4fvR8GNcd21/dZ4=" X-RZG-CLASS-ID: mo00 Received: from groucho.site by smtp.strato.de (RZmta 46.1.12 DYNA|AUTH) with ESMTPSA id L09b9cw1QKSSWO9 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (curve X9_62_prime256v1 with 256 ECDH bits, eq. 3072 bits RSA)) (Client did not present a certificate); Wed, 26 Feb 2020 21:28:28 +0100 (CET) From: Ulrich Hecht To: linux-renesas-soc@vger.kernel.org Cc: wsa@the-dreams.de, geert@linux-m68k.org, fabrizio.castro@bp.renesas.com, ramesh.shanmugasundaram@bp.renesas.com, magnus.damm@gmail.com, Ulrich Hecht Subject: [PATCH 11/11] clk: renesas: r8a77990: mark RWDT clock as ignore-unused Date: Wed, 26 Feb 2020 21:28:17 +0100 Message-Id: <1582748897-17374-12-git-send-email-uli+renesas@fpond.eu> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1582748897-17374-1-git-send-email-uli+renesas@fpond.eu> References: <1582748897-17374-1-git-send-email-uli+renesas@fpond.eu> Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org Ensures RWDT remains alert throughout the boot process if enabled. Signed-off-by: Ulrich Hecht --- drivers/clk/renesas/r8a77990-cpg-mssr.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/clk/renesas/r8a77990-cpg-mssr.c b/drivers/clk/renesas/r8a77990-cpg-mssr.c index ceabf55c..c1cd1eb 100644 --- a/drivers/clk/renesas/r8a77990-cpg-mssr.c +++ b/drivers/clk/renesas/r8a77990-cpg-mssr.c @@ -245,6 +245,9 @@ static const struct mssr_mod_clk r8a77990_mod_clks[] __initconst = { static const unsigned int r8a77990_crit_mod_clks[] __initconst = { MOD_CLK_ID(408), /* INTC-AP (GIC) */ }; +static const unsigned int r8a77990_used_mod_clks[] __initconst = { + MOD_CLK_ID(402), /* RWDT */ +}; /* * CPG Clock Data @@ -294,6 +297,8 @@ const struct cpg_mssr_info r8a77990_cpg_mssr_info __initconst = { /* Critical Module Clocks */ .crit_mod_clks = r8a77990_crit_mod_clks, .num_crit_mod_clks = ARRAY_SIZE(r8a77990_crit_mod_clks), + .used_mod_clks = r8a77990_used_mod_clks, + .num_used_mod_clks = ARRAY_SIZE(r8a77990_used_mod_clks), /* Callbacks */ .init = r8a77990_cpg_mssr_init,