aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Chen <jason.chen@linaro.org>2011-11-29 15:44:25 +0800
committerEric Miao <eric.miao@linaro.org>2011-11-29 16:43:20 +0800
commita2d8c85123cc562fe5de876c64efdf6399e6cc23 (patch)
tree5d7ffac0b041fdec85422c465cb255349c1bd7b7
parent0b223c384f2b6862417ced7daa079b70321d512a (diff)
downloadlinux-linaro-a2d8c85123cc562fe5de876c64efdf6399e6cc23.tar.gz
ARM i.MX5: fix system_rev if not set by atag or DT
BugLink: http://launchpad.net/bugs/893879 Signed-off-by: Jason Chen <jason.chen@linaro.org>
-rw-r--r--arch/arm/mach-mx5/mm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-mx5/mm.c b/arch/arm/mach-mx5/mm.c
index 293810134e1..a1673b8df74 100644
--- a/arch/arm/mach-mx5/mm.c
+++ b/arch/arm/mach-mx5/mm.c
@@ -60,6 +60,8 @@ void __init imx51_init_early(void)
mxc_set_cpu_type(MXC_CPU_MX51);
mxc_iomux_v3_init(MX51_IO_ADDRESS(MX51_IOMUXC_BASE_ADDR));
mxc_arch_reset_init(MX51_IO_ADDRESS(MX51_WDOG1_BASE_ADDR));
+ if (!system_rev)
+ system_rev = 0x51000;
}
void __init mx53_map_io(void)
@@ -73,6 +75,8 @@ void __init imx53_init_early(void)
mxc_iomux_v3_init(MX53_IO_ADDRESS(MX53_IOMUXC_BASE_ADDR));
mxc_arch_reset_init(MX53_IO_ADDRESS(MX53_WDOG1_BASE_ADDR));
init_consistent_dma_size(SZ_128M);
+ if (!system_rev)
+ system_rev = 0x53000;
}
void __init mx51_init_irq(void)