aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mx3
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2009-02-06 09:38:22 -0500
committerSascha Hauer <s.hauer@pengutronix.de>2009-03-13 05:34:26 -0400
commit198016e1b12d781ef00aaafbf571775a8e723f54 (patch)
treed2d45593f7c5e3ce9a703081e78fd5c6b5c29386 /arch/arm/mach-mx3
parentc0a5f85523132dc893916d6059370233fac1cb11 (diff)
[ARM] MXC: add cpu_is_ macros
We had hardcoded cpu_is_ macros for mxc architectures till now. As we want to run the same kernel on i.MX31 and i.MX35 this patch adds cpu_is_ macros which expand to 0 or 1 if only one architecture is compiled in and only check for the cpu type if more than one architecture is compiled in. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx3')
-rw-r--r--arch/arm/mach-mx3/clock.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-mx3/clock.c b/arch/arm/mach-mx3/clock.c
index bc3a3beb9a66..9ab5f8b2bc30 100644
--- a/arch/arm/mach-mx3/clock.c
+++ b/arch/arm/mach-mx3/clock.c
@@ -1077,6 +1077,8 @@ int __init mx31_clocks_init(unsigned long fref)
1077 u32 reg; 1077 u32 reg;
1078 struct clk **clkp; 1078 struct clk **clkp;
1079 1079
1080 mxc_set_cpu_type(MXC_CPU_MX31);
1081
1080 ckih_rate = fref; 1082 ckih_rate = fref;
1081 1083
1082 for (clkp = mxc_clks; clkp < mxc_clks + ARRAY_SIZE(mxc_clks); clkp++) 1084 for (clkp = mxc_clks; clkp < mxc_clks + ARRAY_SIZE(mxc_clks); clkp++)