summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2013-04-24 14:44:25 +0000
committerStefano Babic <sbabic@denx.de>2013-04-25 21:48:21 +0200
commit11c08d4ec5ea3ff01688df619f9e1c4881f18dd7 (patch)
tree63cbb64b9b804e125ee61f1c6baae3ca4f2bd87d
parent0bc32d91b8598bc1aad9f24f73e1bdd6a6cb1f22 (diff)
downloadu-boot-imx-11c08d4ec5ea3ff01688df619f9e1c4881f18dd7.zip
u-boot-imx-11c08d4ec5ea3ff01688df619f9e1c4881f18dd7.tar.gz
u-boot-imx-11c08d4ec5ea3ff01688df619f9e1c4881f18dd7.tar.bz2
mx5: Define a common get_board_rev()
When booting a FSL kernel based on 2.6.35 it is necessary to pass the revision tag to the kernel. Place a common weak function into soc.c for such purpose. Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Acked-by: Marek Vasut <marex@denx.de>
-rw-r--r--arch/arm/cpu/armv7/mx5/soc.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/mx5/soc.c b/arch/arm/cpu/armv7/mx5/soc.c
index 263658a..3d50a5d 100644
--- a/arch/arm/cpu/armv7/mx5/soc.c
+++ b/arch/arm/cpu/armv7/mx5/soc.c
@@ -72,6 +72,13 @@ u32 get_cpu_rev(void)
return system_rev;
}
+#ifdef CONFIG_REVISION_TAG
+u32 __weak get_board_rev(void)
+{
+ return get_cpu_rev();
+}
+#endif
+
#ifndef CONFIG_SYS_DCACHE_OFF
void enable_caches(void)
{