aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mx1
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-mx1
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-mx1')
-rw-r--r--arch/arm/mach-mx1/clock.c5
-rw-r--r--arch/arm/mach-mx1/mx1ads.c3
2 files changed, 5 insertions, 3 deletions
diff --git a/arch/arm/mach-mx1/clock.c b/arch/arm/mach-mx1/clock.c
index 3c464331b870..40a2274380a3 100644
--- a/arch/arm/mach-mx1/clock.c
+++ b/arch/arm/mach-mx1/clock.c
@@ -25,6 +25,7 @@
25 25
26#include <mach/clock.h> 26#include <mach/clock.h>
27#include <mach/hardware.h> 27#include <mach/hardware.h>
28#include <mach/common.h>
28#include "crm_regs.h" 29#include "crm_regs.h"
29 30
30static int _clk_enable(struct clk *clk) 31static int _clk_enable(struct clk *clk)
@@ -594,7 +595,7 @@ static struct clk *mxc_clks[] = {
594 &rtc_clk, 595 &rtc_clk,
595}; 596};
596 597
597int __init mxc_clocks_init(unsigned long fref) 598int __init mx1_clocks_init(unsigned long fref)
598{ 599{
599 struct clk **clkp; 600 struct clk **clkp;
600 unsigned int reg; 601 unsigned int reg;
@@ -625,5 +626,7 @@ int __init mxc_clocks_init(unsigned long fref)
625 clk_enable(&hclk); 626 clk_enable(&hclk);
626 clk_enable(&fclk); 627 clk_enable(&fclk);
627 628
629 mxc_timer_init(&gpt_clk);
630
628 return 0; 631 return 0;
629} 632}
diff --git a/arch/arm/mach-mx1/mx1ads.c b/arch/arm/mach-mx1/mx1ads.c
index be7dd75ebbe1..09dc77bb4812 100644
--- a/arch/arm/mach-mx1/mx1ads.c
+++ b/arch/arm/mach-mx1/mx1ads.c
@@ -118,8 +118,7 @@ static void __init mx1ads_init(void)
118 118
119static void __init mx1ads_timer_init(void) 119static void __init mx1ads_timer_init(void)
120{ 120{
121 mxc_clocks_init(32000); 121 mx1_clocks_init(32000);
122 mxc_timer_init("gpt_clk");
123} 122}
124 123
125struct sys_timer mx1ads_timer = { 124struct sys_timer mx1ads_timer = {