aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mx2
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2009-02-16 08:36:49 -0500
committerSascha Hauer <s.hauer@pengutronix.de>2009-03-13 05:33:47 -0400
commit30c730f8f90b08d77a73998d2ee34cf1f56e95cc (patch)
tree4b73291db523a77d2ca36a65ba7e0d1a8ff6e56e /arch/arm/mach-mx2
parenta2865197a5dad23c619c84f44b7fdf7fdbef3f9c (diff)
[ARM] MXC: rework timer/clock initialisation
- rename mxc_clocks_init to architecture specific versions. This allows us to have more than one architecture compiled in. - call mxc_timer_init from clock initialisation instead from board code Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx2')
-rw-r--r--arch/arm/mach-mx2/clock_imx27.c5
-rw-r--r--arch/arm/mach-mx2/mx27ads.c3
-rw-r--r--arch/arm/mach-mx2/pcm038.c3
3 files changed, 6 insertions, 5 deletions
diff --git a/arch/arm/mach-mx2/clock_imx27.c b/arch/arm/mach-mx2/clock_imx27.c
index 047e71e6ea9a..7b2c1122d9ab 100644
--- a/arch/arm/mach-mx2/clock_imx27.c
+++ b/arch/arm/mach-mx2/clock_imx27.c
@@ -1551,7 +1551,7 @@ static void __init probe_mxc_clocks(void)
1551 * must be called very early to get information about the 1551 * must be called very early to get information about the
1552 * available clock rate when the timer framework starts 1552 * available clock rate when the timer framework starts
1553 */ 1553 */
1554int __init mxc_clocks_init(unsigned long fref) 1554int __init mx27_clocks_init(unsigned long fref)
1555{ 1555{
1556 u32 cscr; 1556 u32 cscr;
1557 struct clk **clkp; 1557 struct clk **clkp;
@@ -1593,5 +1593,8 @@ int __init mxc_clocks_init(unsigned long fref)
1593#ifdef CONFIG_DEBUG_LL_CONSOLE 1593#ifdef CONFIG_DEBUG_LL_CONSOLE
1594 clk_enable(&uart1_clk[0]); 1594 clk_enable(&uart1_clk[0]);
1595#endif 1595#endif
1596
1597 mxc_timer_init(&gpt1_clk[0]);
1598
1596 return 0; 1599 return 0;
1597} 1600}
diff --git a/arch/arm/mach-mx2/mx27ads.c b/arch/arm/mach-mx2/mx27ads.c
index 7721c470d5ab..536bf64bc7c8 100644
--- a/arch/arm/mach-mx2/mx27ads.c
+++ b/arch/arm/mach-mx2/mx27ads.c
@@ -263,8 +263,7 @@ static void __init mx27ads_timer_init(void)
263 if ((__raw_readw(PBC_VERSION_REG) & CKIH_27MHZ_BIT_SET) == 0) 263 if ((__raw_readw(PBC_VERSION_REG) & CKIH_27MHZ_BIT_SET) == 0)
264 fref = 27000000; 264 fref = 27000000;
265 265
266 mxc_clocks_init(fref); 266 mx27_clocks_init(fref);
267 mxc_timer_init("gpt_clk.0");
268} 267}
269 268
270struct sys_timer mx27ads_timer = { 269struct sys_timer mx27ads_timer = {
diff --git a/arch/arm/mach-mx2/pcm038.c b/arch/arm/mach-mx2/pcm038.c
index 534fd9a4ff9f..63cdef8565db 100644
--- a/arch/arm/mach-mx2/pcm038.c
+++ b/arch/arm/mach-mx2/pcm038.c
@@ -230,8 +230,7 @@ static void __init pcm038_init(void)
230 230
231static void __init pcm038_timer_init(void) 231static void __init pcm038_timer_init(void)
232{ 232{
233 mxc_clocks_init(26000000); 233 mx27_clocks_init(26000000);
234 mxc_timer_init("gpt_clk.0");
235} 234}
236 235
237struct sys_timer pcm038_timer = { 236struct sys_timer pcm038_timer = {