From patchwork Thu Jun 25 17:06:35 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sanjeev Premi X-Patchwork-Id: 32426 X-Patchwork-Delegate: paul@pwsan.com Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n5PH6pTT011158 for ; Thu, 25 Jun 2009 17:06:51 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751304AbZFYRGq (ORCPT ); Thu, 25 Jun 2009 13:06:46 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751834AbZFYRGq (ORCPT ); Thu, 25 Jun 2009 13:06:46 -0400 Received: from arroyo.ext.ti.com ([192.94.94.40]:51507 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751304AbZFYRGp convert rfc822-to-8bit (ORCPT ); Thu, 25 Jun 2009 13:06:45 -0400 Received: from dbdp20.itg.ti.com ([172.24.170.38]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id n5PH6fF9012959 for ; Thu, 25 Jun 2009 12:06:47 -0500 Received: from dbde71.ent.ti.com (localhost [127.0.0.1]) by dbdp20.itg.ti.com (8.13.8/8.13.8) with ESMTP id n5PH6fIR003248 for ; Thu, 25 Jun 2009 22:36:41 +0530 (IST) Received: from dbde02.ent.ti.com ([172.24.170.145]) by dbde71.ent.ti.com ([172.24.170.149]) with mapi; Thu, 25 Jun 2009 22:36:40 +0530 From: "Premi, Sanjeev" To: "linux-omap@vger.kernel.org" Date: Thu, 25 Jun 2009 22:36:35 +0530 Subject: bootarg mpurate is ignored Thread-Topic: bootarg mpurate is ignored Thread-Index: Acn1t0vN3Usbz3kXTwOBb4xuwwEHhw== Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org Hi, I was trying to change the MPU frequency by using the bootarg mpurate. But there was no impact of the same. In the bootlog: ... ... Clocking rate (Crystal/DPLL/ARM core): 26.0/332/500 MHz ...later.. Switched to new clocking rate (Crystal/Core/MPU): 26.0/332/500 MHz ... ... From the code, it clearly seemed to be ignored. So, I made the change below: Now the bootlog seems fine: ... ... Clocking rate (Crystal/DPLL/ARM core): 26.0/332/500 MHz ...later.. Switched to new clocking rate (Crystal/Core/MPU): 26.0/332/550 MHz ... ... However, cat /cpu/procinfo still shows: Processor : ARMv7 Processor rev 3 (v7l) BogoMIPS : 499.92 Features : swp half thumb fastmult vfp edsp neon vfpv3 CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x1 CPU part : 0xc08 CPU revision : 3 Am I missing some step here? Also, I tried changing arm_ck directly (evidently not right) as well :( Best regards, Sanjeev --- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm/mach-omap2/clock34xx.c b/arch/arm/mach-omap2/clock34xx.c index 045da92..5bdd978 100644 --- a/arch/arm/mach-omap2/clock34xx.c +++ b/arch/arm/mach-omap2/clock34xx.c @@ -948,13 +948,20 @@ static int __init omap2_clk_arch_init(void) if (clk_set_rate(&virt_prcm_set, mpurate)) printk(KERN_ERR "Could not find matching MPU rate\n"); #endif + printk(KERN_ERR "Before change: %ld\n", dpll1_ck.rate); + + if (clk_set_rate(&dpll1_ck, mpurate)) + printk(KERN_ERR "*** Unable to set MPU rate\n"); + omap3_dpll_recalc(&dpll1_ck); + + printk(KERN_ERR "After change: %ld\n", dpll1_ck.rate); recalculate_root_clocks(); - printk(KERN_INFO "Switched to new clocking rate (Crystal/DPLL3/MPU): " + printk(KERN_INFO "Switched to new clocking rate (Crystal/Core/MPU): " "%ld.%01ld/%ld/%ld MHz\n", (osc_sys_ck.rate / 1000000), (osc_sys_ck.rate / 100000) % 10, - (core_ck.rate / 1000000), (dpll1_fck.rate / 1000000)) ; + (core_ck.rate / 1000000), (dpll1_ck.rate / 1000000)) ; return 0; }