summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnson Huang <b20788@freescale.com>2012-06-19 18:23:10 +0800
committerAnson Huang <b20788@freescale.com>2012-06-19 18:23:10 +0800
commitae8ce3d2e8e3231ea890035b1b1fc158f1d1f89f (patch)
tree5b285a2f996844ac4560a8396d085a536536384f
parent6fa227eaa4196bc6c8b84a3404305d38855f8750 (diff)
ENGR00214199 [MX6]Need to lower ipg_perclk to 6M before init GPT
As Arik TO1.0 GPT use ipg_perclk as clock source, we need to lower it to 6M before init GPT, or the clock source freq will be wrong if we lower the ipg_perclk after GPT time already init. Signed-off-by: Anson Huang <b20788@freescale.com>
-rw-r--r--arch/arm/mach-mx6/clock.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/mach-mx6/clock.c b/arch/arm/mach-mx6/clock.c
index 975f22cc2263..81456655032e 100644
--- a/arch/arm/mach-mx6/clock.c
+++ b/arch/arm/mach-mx6/clock.c
@@ -5275,6 +5275,9 @@ int __init mx6_clocks_init(unsigned long ckil, unsigned long osc,
clk_debug_register(lookups[i].clk);
}
+ /* Lower the ipg_perclk frequency to 6MHz. */
+ clk_set_rate(&ipg_perclk, 6000000);
+
/* Timer needs to be initialized first as the
* the WAIT routines use GPT counter as
* a delay.
@@ -5421,9 +5424,6 @@ int __init mx6_clocks_init(unsigned long ckil, unsigned long osc,
__raw_writel(0, MXC_CCM_CCGR6);
- /* Lower the ipg_perclk frequency to 6MHz. */
- clk_set_rate(&ipg_perclk, 6000000);
-
/* S/PDIF */
clk_set_parent(&spdif0_clk[0], &pll3_pfd_454M);