From patchwork Wed Dec 14 04:31:26 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Turquette X-Patchwork-Id: 5667 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 86B1423E01 for ; Wed, 14 Dec 2011 04:34:51 +0000 (UTC) Received: from mail-ey0-f180.google.com (mail-ey0-f180.google.com [209.85.215.180]) by fiordland.canonical.com (Postfix) with ESMTP id 7CF6CA183BE for ; Wed, 14 Dec 2011 04:34:51 +0000 (UTC) Received: by mail-ey0-f180.google.com with SMTP id k10so61148eaa.11 for ; Tue, 13 Dec 2011 20:34:51 -0800 (PST) Received: by 10.204.156.208 with SMTP id y16mr205993bkw.72.1323837291336; Tue, 13 Dec 2011 20:34:51 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.205.129.2 with SMTP id hg2cs101262bkc; Tue, 13 Dec 2011 20:34:51 -0800 (PST) Received: by 10.68.211.225 with SMTP id nf1mr1105442pbc.47.1323837290095; Tue, 13 Dec 2011 20:34:50 -0800 (PST) Received: from na3sys009aog124.obsmtp.com ([74.125.149.151]) by mx.google.com with SMTP id d9si5103692pbw.82.2011.12.13.20.34.45 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 13 Dec 2011 20:34:50 -0800 (PST) Received-SPF: pass (google.com: domain of mturquette@ti.com designates 74.125.149.151 as permitted sender) client-ip=74.125.149.151; Authentication-Results: mx.google.com; spf=pass (google.com: domain of mturquette@ti.com designates 74.125.149.151 as permitted sender) smtp.mail=mturquette@ti.com Received: from mail-yw0-f53.google.com ([209.85.213.53]) (using TLSv1) by na3sys009aob124.postini.com ([74.125.148.12]) with SMTP ID DSNKTugnZQs1ZF44IE5anHiXSA9gKtTmyWn8@postini.com; Tue, 13 Dec 2011 20:34:49 PST Received: by mail-yw0-f53.google.com with SMTP id j52so1149488yhj.40 for ; Tue, 13 Dec 2011 20:34:45 -0800 (PST) Received: by 10.236.155.194 with SMTP id j42mr8138931yhk.34.1323837285211; Tue, 13 Dec 2011 20:34:45 -0800 (PST) Received: from localhost.localdomain (dragon.ti.com. [192.94.94.33]) by mx.google.com with ESMTPS id v48sm2145601yhk.6.2011.12.13.20.34.42 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 13 Dec 2011 20:34:44 -0800 (PST) From: Mike Turquette To: linux@arm.linux.org.uk Cc: linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, khilman@ti.com, tony@atomide.com, b-cousson@ti.com, rnayak@ti.com, jeremy.kerr@canonical.com, paul@pwsan.com, broonie@opensource.wolfsonmicro.com, tglx@linutronix.de, linus.walleij@stericsson.com, amit.kucheria@linaro.org, dsaxena@linaro.org, patches@linaro.org, linaro-dev@lists.linaro.org, grant.likely@secretlab.ca, sboyd@quicinc.com, shawn.guo@freescale.com, skannan@quicinc.com, magnus.damm@gmail.com, arnd.bergmann@linaro.org, eric.miao@linaro.org, richard.zhao@linaro.org, mturquette@linaro.org, mturquette@ti.com, andrew@lunn.ch Subject: [PATCH 4/6] HACK: cpufreq: omap: change mpu_clk's rate Date: Tue, 13 Dec 2011 20:31:26 -0800 Message-Id: <1323837088-2469-5-git-send-email-mturquette@ti.com> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1323837088-2469-1-git-send-email-mturquette@ti.com> References: <1323837088-2469-1-git-send-email-mturquette@ti.com> As a proof of concept, change OMAP's cpufreq driver to use mpu_clk in place of directly using the DPLL. This better reflects reality as there are some functional clks between the ARM IP and the PLL. To make this work mpu_clk uses the new .round_rate function omap2_passthrough_round_rate, which simplies passing up a rate change request to the parent. Not for merging, just to get discussion going around the common clk patches and future OMAP adaptations. Not-signed-off-by: Mike Turquette --- drivers/cpufreq/omap-cpufreq.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/cpufreq/omap-cpufreq.c b/drivers/cpufreq/omap-cpufreq.c index 5d04c57..45cb7f9 100644 --- a/drivers/cpufreq/omap-cpufreq.c +++ b/drivers/cpufreq/omap-cpufreq.c @@ -247,7 +247,7 @@ static int __init omap_cpufreq_init(void) else if (cpu_is_omap34xx()) mpu_clk_name = "dpll1_ck"; else if (cpu_is_omap44xx()) - mpu_clk_name = "dpll_mpu_ck"; + mpu_clk_name = "mpu_clk"; if (!mpu_clk_name) { pr_err("%s: unsupported Silicon?\n", __func__);