From patchwork Sat Apr 26 20:38:41 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abhilash Kesavan X-Patchwork-Id: 4069601 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 4B7CEBFF02 for ; Sat, 26 Apr 2014 20:42:39 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5869520254 for ; Sat, 26 Apr 2014 20:42:38 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 457C52022A for ; Sat, 26 Apr 2014 20:42:33 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1We9Ng-0002s1-RS; Sat, 26 Apr 2014 20:39:28 +0000 Received: from mail-pa0-x22e.google.com ([2607:f8b0:400e:c03::22e]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1We9Nd-0002qB-E2 for linux-arm-kernel@lists.infradead.org; Sat, 26 Apr 2014 20:39:26 +0000 Received: by mail-pa0-f46.google.com with SMTP id kp14so4355628pab.19 for ; Sat, 26 Apr 2014 13:39:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=3VneoRk6W5//2U0jW4J3X0C51NTh9LeMoiFiqUVis2A=; b=KNTC0kDwbyRp//eJ/HBKLfN03q9swiRzwRVJx/oOp/UIDSUGQM5XupVuURcfIAiCvA MLaYSkxTOyfW+mbWo6KaH/7j4x1PJwhM67PSMt29ZIQQVOxI1BXMw/fjniY2qszGo/p/ vQTuTSqRr6auYTIKzCjgi1aSYtWC5yoFk/XqxYMLKwdeZg8isLX5iyFlec6Ij1PzJi2E RwTIyNXvM5TRqy9/Q4TNdzE1t3P8KTByip+KcH/1PuedDp9gqXxrpCMZ2MENXznyAe7O Mbt4L5NTOJvKXQGrEm0jv81Bm4L62Z52WN61c0sbaNoVENuZmS71e4ka0h0YK3Gp8HjG JBpQ== X-Received: by 10.66.166.47 with SMTP id zd15mr15930441pab.0.1398544744555; Sat, 26 Apr 2014 13:39:04 -0700 (PDT) Received: from localhost.localdomain ([122.171.91.187]) by mx.google.com with ESMTPSA id ff4sm61718492pad.24.2014.04.26.13.39.00 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 26 Apr 2014 13:39:03 -0700 (PDT) From: Abhilash Kesavan To: linux-arm-kernel@lists.infradead.org, kgene.kim@samsung.com, t.figa@samsung.com, myungjoo.ham@samsung.com, rafael.j.wysocki@intel.com, linux-pm@vger.kernel.or, devicetree@vger.kernel.org Subject: [PATCH RFC 1/8] clk: exynos5250: add aliases for clocks used by devfreq Date: Sun, 27 Apr 2014 02:08:41 +0530 Message-Id: <1398544728-2075-2-git-send-email-a.kesavan@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1398544728-2075-1-git-send-email-a.kesavan@samsung.com> References: <1398544728-2075-1-git-send-email-a.kesavan@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140426_133925_488505_AB5BD89F X-CRM114-Status: GOOD ( 10.88 ) X-Spam-Score: 0.0 (/) Cc: cw00.choi@samsung.com, kesavan.abhilash@gmail.com, b.zolnierkie@samsung.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Andrew Bresticker Devfreq does not support DT-based lookup of these peripheral clocks, so add aliases for them. Signed-off-by: Andrew Bresticker Signed-off-by: Abhilash Kesavan --- drivers/clk/samsung/clk-exynos5250.c | 30 +++++++++++++++++++++++++----- 1 file changed, 25 insertions(+), 5 deletions(-) diff --git a/drivers/clk/samsung/clk-exynos5250.c b/drivers/clk/samsung/clk-exynos5250.c index d1d16cf..f44fb2e 100644 --- a/drivers/clk/samsung/clk-exynos5250.c +++ b/drivers/clk/samsung/clk-exynos5250.c @@ -37,6 +37,7 @@ #define VPLL_CON0 0x10140 #define GPLL_CON0 0x10150 #define SRC_TOP0 0x10210 +#define SRC_TOP1 0x10214 #define SRC_TOP2 0x10218 #define SRC_TOP3 0x1021c #define SRC_GSCL 0x10220 @@ -100,6 +101,7 @@ static unsigned long exynos5250_clk_regs[] __initdata = { DIV_CPU0, SRC_CORE1, SRC_TOP0, + SRC_TOP1, SRC_TOP2, SRC_TOP3, SRC_GSCL, @@ -196,6 +198,11 @@ PNAME(mout_aclk200_p) = { "mout_mpll_user", "mout_bpll_user" }; PNAME(mout_aclk200_sub_p) = { "fin_pll", "div_aclk200" }; PNAME(mout_aclk266_sub_p) = { "fin_pll", "div_aclk266" }; PNAME(mout_aclk333_sub_p) = { "fin_pll", "div_aclk333" }; +PNAME(mout_aclk300_disp1_p) = { "mout_aclk300_disp1_mid", + "mout_aclk300_disp1_mid1" }; +PNAME(mout_aclk300_gscl_p) = { "mout_aclk300_gscl_mid", + "mout_aclk300_gscl_mid1" }; +PNAME(mout_aclk300_gscl_mid1_p) = { "mout_vpll", "mout_cpll" }; PNAME(mout_hdmi_p) = { "div_hdmi_pixel", "sclk_hdmiphy" }; PNAME(mout_usb3_p) = { "mout_mpll_user", "mout_cpll" }; PNAME(mout_group1_p) = { "fin_pll", "fin_pll", "sclk_hdmi27m", @@ -273,6 +280,15 @@ static struct samsung_mux_clock exynos5250_mux_clks[] __initdata = { MUX(0, "mout_aclk166", mout_aclk166_p, SRC_TOP0, 8, 1), MUX(0, "mout_aclk200", mout_aclk200_p, SRC_TOP0, 12, 1), MUX(0, "mout_aclk333", mout_aclk166_p, SRC_TOP0, 16, 1), + MUX(0, "mout_aclk300_disp1_mid", mout_aclk200_p, SRC_TOP0, 14, 1), + MUX(0, "mout_aclk300_disp1", mout_aclk300_disp1_p, SRC_TOP0, 15, 1), + MUX(0, "mout_aclk300_gscl", mout_aclk300_gscl_p, SRC_TOP0, 25, 2), + MUX(0, "mout_aclk300_gscl_mid", mout_aclk200_p, SRC_TOP0, 24, 1), + + MUX(0, "mout_aclk300_disp1_mid1", mout_aclk300_gscl_mid1_p, + SRC_TOP1, 8, 1), + MUX(0, "mout_aclk300_gscl_mid1", mout_aclk300_gscl_mid1_p, + SRC_TOP1, 12, 1), MUX(0, "mout_cpll", mout_cpll_p, SRC_TOP2, 8, 1), MUX(0, "mout_epll", mout_epll_p, SRC_TOP2, 12, 1), @@ -347,11 +363,15 @@ static struct samsung_div_clock exynos5250_div_clks[] __initdata = { * CMU_TOP */ DIV(0, "div_aclk66", "div_aclk66_pre", DIV_TOP0, 0, 3), - DIV(0, "div_aclk166", "mout_aclk166", DIV_TOP0, 8, 3), - DIV(0, "div_aclk200", "mout_aclk200", DIV_TOP0, 12, 3), - DIV(0, "div_aclk266", "mout_mpll_user", DIV_TOP0, 16, 3), - DIV(0, "div_aclk333", "mout_aclk333", DIV_TOP0, 20, 3), - + DIV_A(0, "div_aclk166", "mout_aclk166", DIV_TOP0, 8, 3, "aclk166_d"), + DIV_A(0, "div_aclk200", "mout_aclk200", DIV_TOP0, 12, 3, "aclk200_d"), + DIV_A(0, "div_aclk266", "mout_mpll_user", DIV_TOP0, 16, 3, "aclk266_d"), + DIV_A(0, "div_aclk333", "mout_aclk333", DIV_TOP0, 20, 3, "aclk333_d"), + DIV_A(0, "div_aclk300_disp1", "mout_aclk300_disp1", + DIV_TOP0, 28, 3, "aclk300_disp1_d"), + + DIV_A(0, "div_aclk300_gscl", "mout_aclk300_gscl", + DIV_TOP1, 12, 3, "aclk300_gscl_d"), DIV(0, "div_aclk66_pre", "mout_mpll_user", DIV_TOP1, 24, 3), DIV(0, "div_cam_bayer", "mout_cam_bayer", DIV_GSCL, 12, 4),