[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>
This commit is contained in:
Sascha Hauer
2009-02-06 15:38:22 +01:00
parent c0a5f85523
commit 198016e1b1
7 changed files with 80 additions and 16 deletions

View File

@ -1077,6 +1077,8 @@ int __init mx31_clocks_init(unsigned long fref)
u32 reg;
struct clk **clkp;
mxc_set_cpu_type(MXC_CPU_MX31);
ckih_rate = fref;
for (clkp = mxc_clks; clkp < mxc_clks + ARRAY_SIZE(mxc_clks); clkp++)