ARM: i.MX: change timer clock from ipg to perclk
authorRichard Zhao <richard.zhao@freescale.com>
Tue, 15 May 2012 07:34:40 +0000 (15:34 +0800)
committerSascha Hauer <s.hauer@pengutronix.de>
Wed, 16 May 2012 10:38:51 +0000 (12:38 +0200)
commit1f152b48eaaf4918047e84777b01a6d687f066e9
treee897e6f7e909588c806100738f696db3eef09380
parentc040be003f16a1bdd7997cc4ab7fc5fd43acb03b
ARM: i.MX: change timer clock from ipg to perclk

Contrary to the ipg clock the perclk rate is not changed or
gated in low power mode, so we choose perclk for gpt.

With the port to the common clock framework as a side effect
the timer used the rate returned from the peripheral clock
but the hardware was still programmed to use the ipg clock,
so this patch only changes the hardware to really use the
clock it already assumed.

Signed-off-by: Richard Zhao <richard.zhao@freescale.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
arch/arm/plat-mxc/time.c