From patchwork Wed Jan 31 18:24:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrizio Castro X-Patchwork-Id: 10194669 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 39D28601A0 for ; Wed, 31 Jan 2018 18:43:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 72E76285CA for ; Wed, 31 Jan 2018 18:43:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 674AB287A1; Wed, 31 Jan 2018 18:43:25 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id F3785285CA for ; Wed, 31 Jan 2018 18:43:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=4aflgbLNYYskZW9LC3VGVUInuV9Mee/gLKNXjKbaK3g=; b=KtoS8cynOyZvARhf0eQ+V0l3ny 2Zp82K4tyYqN9dv3pK2Ww3Ydl5zEfBA0J4rdRIcITyZyZf5Z5tzX8D6APQ9NG0zhk0Ml5UgdNW9Yu GGVWYqcEfhITTzEvhLSPf9gh3UC1eaOJ7f2CuxpMZuwvlgTUWS0LXbqgcVSp7zawIMUpPy1qJxyKA IwoSvvU6cErHRs/pLV6+11JGFda10cv2Jeg2xBXxmxFHkn6eI7rgcgzMnHCPC8u1OpmNEwxO15vwQ 1yAqkOsgxXRS8kYYl8jo517jAmzTmATPWD6ud4yyYttvag6aC3Z447nK2o5d2Zxp8rdhcVbKaAP9r Z4M/c1cQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1egxLv-00027r-6c; Wed, 31 Jan 2018 18:43:23 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1egxLX-0001hk-V4 for linux-arm-kernel@bombadil.infradead.org; Wed, 31 Jan 2018 18:42:59 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=/CjGfx703aTXAWZqx2q0BrOfHq3STOJzzKTQoXoHvGU=; b=Z2MZQgXasBOHbpn7R8/pSIWKX 3OImVZWMqaCj9bdwpIvld+PpYDVqEBj1MMGEJ8p58kT/nPLBpKPevIpzqbIVDHmCkai4o/wuAlEf5 ytG7X2WaLocNdEh/aRGKymORH5LDKQh0Xv9Nhyx9PsVukOBJ1MjXL8G184MAcLZPr6BFepRNBzjoW hCF5dwAGA3mh6fn3QL4yuIsz0U7wZhqv6+vIgQmDz6JWPhhwugqgL3GYeKmpXpzJl2ANpfhO64RWO np2D3ZfiZgQw+9JB4r70vLGBlmL+GK6SfKiwg7kFAhIoNCbpILxUcV/pLlrVIGFg28SQRdl2F3/ca Wq9dj/SxQ==; Received: from relmlor2.renesas.com ([210.160.252.172] helo=relmlie1.idc.renesas.com) by merlin.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1egx5p-0008Vr-OD for linux-arm-kernel@lists.infradead.org; Wed, 31 Jan 2018 18:26:46 +0000 Received: from unknown (HELO relmlir3.idc.renesas.com) ([10.200.68.153]) by relmlie1.idc.renesas.com with ESMTP; 01 Feb 2018 03:26:33 +0900 Received: from relmlii2.idc.renesas.com (relmlii2.idc.renesas.com [10.200.68.66]) by relmlir3.idc.renesas.com (Postfix) with ESMTP id 8C6B84143F; Thu, 1 Feb 2018 03:26:33 +0900 (JST) X-IronPort-AV: E=Sophos;i="5.46,441,1511794800"; d="scan'208";a="271234875" Received: from unknown (HELO fabrizio-dev.ree.adwin.renesas.com) ([10.226.37.88]) by relmlii2.idc.renesas.com with ESMTP; 01 Feb 2018 03:26:27 +0900 From: Fabrizio Castro To: Philipp Zabel , Rob Herring , Mark Rutland , Wim Van Sebroeck , Russell King , Catalin Marinas , Will Deacon , Michael Turquette , Stephen Boyd , Simon Horman , Magnus Damm , Geert Uytterhoeven , Wolfram Sang Subject: [RFC v4 18/26] clk: renesas: r8a7791/r8a7793: Add rwdt clock Date: Wed, 31 Jan 2018 18:24:22 +0000 Message-Id: <1517423070-24236-19-git-send-email-fabrizio.castro@bp.renesas.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1517423070-24236-1-git-send-email-fabrizio.castro@bp.renesas.com> References: <1517423070-24236-1-git-send-email-fabrizio.castro@bp.renesas.com> X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fabrizio Castro , devicetree@vger.kernel.org, Chris Paterson , linux-watchdog@vger.kernel.org, Biju Das , linux-renesas-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Ramesh Shanmugasundaram , linux-clk@vger.kernel.org, Guenter Roeck MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add "rwdt" clock to r8a7791_mod_clks. Also, since we may need to access the watchdog registers at any time, declare the clock as critical. Signed-off-by: Fabrizio Castro Signed-off-by: Ramesh Shanmugasundaram Reviewed-by: Wolfram Sang --- v3->4: * no change drivers/clk/renesas/r8a7791-cpg-mssr.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/renesas/r8a7791-cpg-mssr.c b/drivers/clk/renesas/r8a7791-cpg-mssr.c index c0b51f9..820b220 100644 --- a/drivers/clk/renesas/r8a7791-cpg-mssr.c +++ b/drivers/clk/renesas/r8a7791-cpg-mssr.c @@ -128,6 +128,7 @@ static const struct mssr_mod_clk r8a7791_mod_clks[] __initconst = { DEF_MOD("cmt1", 329, R8A7791_CLK_R), DEF_MOD("usbhs-dmac0", 330, R8A7791_CLK_HP), DEF_MOD("usbhs-dmac1", 331, R8A7791_CLK_HP), + DEF_MOD("rwdt", 402, R8A7791_CLK_R), DEF_MOD("irqc", 407, R8A7791_CLK_CP), DEF_MOD("intc-sys", 408, R8A7791_CLK_ZS), DEF_MOD("audio-dmac1", 501, R8A7791_CLK_HP), @@ -209,6 +210,7 @@ static const struct mssr_mod_clk r8a7791_mod_clks[] __initconst = { }; static const unsigned int r8a7791_crit_mod_clks[] __initconst = { + MOD_CLK_ID(402), /* RWDT */ MOD_CLK_ID(408), /* INTC-SYS (GIC) */ };