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>
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.
__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);