aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mx3
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-mx3
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-mx3')
-rw-r--r--arch/arm/mach-mx3/clock.c5
-rw-r--r--arch/arm/mach-mx3/mx31ads.c3
-rw-r--r--arch/arm/mach-mx3/mx31lite.c3
-rw-r--r--arch/arm/mach-mx3/mx31moboard.c3
-rw-r--r--arch/arm/mach-mx3/mx31pdk.c3
-rw-r--r--arch/arm/mach-mx3/pcm037.c3
6 files changed, 9 insertions, 11 deletions
diff --git a/arch/arm/mach-mx3/clock.c b/arch/arm/mach-mx3/clock.c
index 8486ea46d6c1..8b41facb391b 100644
--- a/arch/arm/mach-mx3/clock.c
+++ b/arch/arm/mach-mx3/clock.c
@@ -25,6 +25,7 @@
25#include <linux/io.h> 25#include <linux/io.h>
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 <asm/div64.h> 29#include <asm/div64.h>
29 30
30#include "crm_regs.h" 31#include "crm_regs.h"
@@ -1071,7 +1072,7 @@ static struct clk *mxc_clks[] = {
1071 &iim_clk, 1072 &iim_clk,
1072}; 1073};
1073 1074
1074int __init mxc_clocks_init(unsigned long fref) 1075int __init mx31_clocks_init(unsigned long fref)
1075{ 1076{
1076 u32 reg; 1077 u32 reg;
1077 struct clk **clkp; 1078 struct clk **clkp;
@@ -1121,6 +1122,8 @@ int __init mxc_clocks_init(unsigned long fref)
1121 __raw_writel(reg, MXC_CCM_PMCR1); 1122 __raw_writel(reg, MXC_CCM_PMCR1);
1122 } 1123 }
1123 1124
1125 mxc_timer_init(&ipg_clk);
1126
1124 return 0; 1127 return 0;
1125} 1128}
1126 1129
diff --git a/arch/arm/mach-mx3/mx31ads.c b/arch/arm/mach-mx3/mx31ads.c
index f902a7c37c31..f913999eedf0 100644
--- a/arch/arm/mach-mx3/mx31ads.c
+++ b/arch/arm/mach-mx3/mx31ads.c
@@ -244,8 +244,7 @@ static void __init mxc_board_init(void)
244 244
245static void __init mx31ads_timer_init(void) 245static void __init mx31ads_timer_init(void)
246{ 246{
247 mxc_clocks_init(26000000); 247 mx31_clocks_init(26000000);
248 mxc_timer_init("ipg_clk.0");
249} 248}
250 249
251struct sys_timer mx31ads_timer = { 250struct sys_timer mx31ads_timer = {
diff --git a/arch/arm/mach-mx3/mx31lite.c b/arch/arm/mach-mx3/mx31lite.c
index c43440070143..e61fad2f60f3 100644
--- a/arch/arm/mach-mx3/mx31lite.c
+++ b/arch/arm/mach-mx3/mx31lite.c
@@ -82,8 +82,7 @@ static void __init mxc_board_init(void)
82 82
83static void __init mx31lite_timer_init(void) 83static void __init mx31lite_timer_init(void)
84{ 84{
85 mxc_clocks_init(26000000); 85 mx31_clocks_init(26000000);
86 mxc_timer_init("ipg_clk.0");
87} 86}
88 87
89struct sys_timer mx31lite_timer = { 88struct sys_timer mx31lite_timer = {
diff --git a/arch/arm/mach-mx3/mx31moboard.c b/arch/arm/mach-mx3/mx31moboard.c
index c29098af7394..3d2773e4bc81 100644
--- a/arch/arm/mach-mx3/mx31moboard.c
+++ b/arch/arm/mach-mx3/mx31moboard.c
@@ -120,8 +120,7 @@ void __init mx31moboard_map_io(void)
120 120
121static void __init mx31moboard_timer_init(void) 121static void __init mx31moboard_timer_init(void)
122{ 122{
123 mxc_clocks_init(26000000); 123 mx31_clocks_init(26000000);
124 mxc_timer_init("ipg_clk.0");
125} 124}
126 125
127struct sys_timer mx31moboard_timer = { 126struct sys_timer mx31moboard_timer = {
diff --git a/arch/arm/mach-mx3/mx31pdk.c b/arch/arm/mach-mx3/mx31pdk.c
index d464d068a4a6..ac427edb4db1 100644
--- a/arch/arm/mach-mx3/mx31pdk.c
+++ b/arch/arm/mach-mx3/mx31pdk.c
@@ -91,8 +91,7 @@ static void __init mxc_board_init(void)
91 91
92static void __init mx31pdk_timer_init(void) 92static void __init mx31pdk_timer_init(void)
93{ 93{
94 mxc_clocks_init(26000000); 94 mx31_clocks_init(26000000);
95 mxc_timer_init("ipg_clk.0");
96} 95}
97 96
98static struct sys_timer mx31pdk_timer = { 97static struct sys_timer mx31pdk_timer = {
diff --git a/arch/arm/mach-mx3/pcm037.c b/arch/arm/mach-mx3/pcm037.c
index 8cea82587222..3b5ba551cb14 100644
--- a/arch/arm/mach-mx3/pcm037.c
+++ b/arch/arm/mach-mx3/pcm037.c
@@ -181,8 +181,7 @@ void __init pcm037_map_io(void)
181 181
182static void __init pcm037_timer_init(void) 182static void __init pcm037_timer_init(void)
183{ 183{
184 mxc_clocks_init(26000000); 184 mx31_clocks_init(26000000);
185 mxc_timer_init("ipg_clk.0");
186} 185}
187 186
188struct sys_timer pcm037_timer = { 187struct sys_timer pcm037_timer = {