From patchwork Thu Sep 6 20:28:12 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 10591015 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C548B1669 for ; Thu, 6 Sep 2018 20:28:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B1C612A570 for ; Thu, 6 Sep 2018 20:28:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A5E3A2A58B; Thu, 6 Sep 2018 20:28:18 +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=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CE1582A58A for ; Thu, 6 Sep 2018 20:28:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729558AbeIGBFX (ORCPT ); Thu, 6 Sep 2018 21:05:23 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:40970 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729153AbeIGBFX (ORCPT ); Thu, 6 Sep 2018 21:05:23 -0400 Received: by mail-lj1-f193.google.com with SMTP id y17-v6so10425717ljy.8 for ; Thu, 06 Sep 2018 13:28:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20150623.gappssmtp.com; s=20150623; h=from:subject:to:references:organization:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=9O0O7R87cS5W3y6IXUxcVmEkf/K1cI7HDQHHDvJasQg=; b=njzQqj605+GxZhk6PNA5otAePQC23VA/6BrB8UDR8C95A9EABobrrrcHeabY30Rr5X 5BgT8RqYwCxknD5b5DhZeM4y4g6zVZGW84IIHeYnsmuWoaWA5eEhnICeSgwg+OWlr1Ys AU+SYoJJ3CIUEPFLe9uIvLOE1Ihoz913hy6Hcerhlk3HuLKp3rDe8H/lDifiRTREYVKC KomPcsl4dpTiVsHFjJr6NTzuQ696KXWF0WCBOj83UeQlHlfkIgw5cj30iyT5mhMhPIYr XDcsbbnrjw1lVsy+sapkXe4ZCcyZsWkE7PuYwehV0RbeWjcQVZK3WXlRqo8UEEG5Bjf+ 56ZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:references:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=9O0O7R87cS5W3y6IXUxcVmEkf/K1cI7HDQHHDvJasQg=; b=SdapvWhj1mkRUcNYtqkcGgYjy39E4rYGoQsXo3n0ctPI2iSQSS28yh+kOyJPEPEhjk 7M/JgdGlhpbxXy+0IhDsfCYsCSTA4wbURc1QlCwjdIp5VYF3wEzzjlbMFM1ZmmF53ZTd bz0QDeRgnGkC/ZFs9yeRNyp3YBCiNhmvR75Sz0tt2feJY71QbX3LphIMTGcVP9SQ9jcK 9EWBHVH0E7cq24PxFBaeFVBCsv5cJ41ipOtKq8V4mhKvzZ7YhzrH3flX+R1LeW7urskt vVzXs2loIG71D49/251dYbqOfN+96zKj3uCSRQWyc9nLPr82tCwJLY6xPt7Crok5rZeD 4DFg== X-Gm-Message-State: APzg51Aa/tacjAyecjcNAMOvbAoJjhCQ3yKNGLMrS4iTcYV2ecq3RraI EbCqU7K9Tc8TipakTvdw1hY1CS506Bo= X-Google-Smtp-Source: ANB0VdZyHv1cTmiZWPv8u/u1g0KwwAy01WoOpt030MPgpeXtQO51hs/49uh8F1uo/3223baMxoYMIQ== X-Received: by 2002:a2e:9698:: with SMTP id q24-v6mr1970951lji.35.1536265694058; Thu, 06 Sep 2018 13:28:14 -0700 (PDT) Received: from wasted.cogentembedded.com ([31.173.85.57]) by smtp.gmail.com with ESMTPSA id l1-v6sm951687lji.41.2018.09.06.13.28.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Sep 2018 13:28:13 -0700 (PDT) From: Sergei Shtylyov Subject: [PATCH] clk: renesas: r8a77970: add TMU clocks To: "linux-renesas-soc@vger.kernel.org" , Michael Turquette , Stephen Boyd , Geert Uytterhoeven , linux-clk@vger.kernel.org References: <5b7895ac-11c1-ac2d-837b-56726bc6226a@cogentembedded.com> Organization: Cogent Embedded Message-ID: Date: Thu, 6 Sep 2018 23:28:12 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <5b7895ac-11c1-ac2d-837b-56726bc6226a@cogentembedded.com> Content-Language: en-MW Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The TMU clocks weren't present in the original R8A77970 patch by Daisuke Matsushita, they were added in a later BSP version... Based on the original (and large) patch by Vladimir Barinov. Signed-off-by: Vladimir Barinov Signed-off-by: Sergei Shtylyov Reviewed-by: Geert Uytterhoeven --- This patch is against the 'clk-renesas' branch of Geert's 'renesas-drivers.git' repo... drivers/clk/renesas/r8a77970-cpg-mssr.c | 5 +++++ 1 file changed, 5 insertions(+) Index: renesas-drivers/drivers/clk/renesas/r8a77970-cpg-mssr.c =================================================================== --- renesas-drivers.orig/drivers/clk/renesas/r8a77970-cpg-mssr.c +++ renesas-drivers/drivers/clk/renesas/r8a77970-cpg-mssr.c @@ -106,6 +106,11 @@ static const struct cpg_core_clk r8a7797 }; static const struct mssr_mod_clk r8a77970_mod_clks[] __initconst = { + DEF_MOD("tmu4", 121, R8A77970_CLK_S2D2), + DEF_MOD("tmu3", 122, R8A77970_CLK_S2D2), + DEF_MOD("tmu2", 123, R8A77970_CLK_S2D2), + DEF_MOD("tmu1", 124, R8A77970_CLK_S2D2), + DEF_MOD("tmu0", 125, R8A77970_CLK_CP), DEF_MOD("ivcp1e", 127, R8A77970_CLK_S2D1), DEF_MOD("scif4", 203, R8A77970_CLK_S2D4), DEF_MOD("scif3", 204, R8A77970_CLK_S2D4),