]> git.sur5r.net Git - u-boot/commitdiff
mx5: Define a common get_board_rev()
authorFabio Estevam <fabio.estevam@freescale.com>
Wed, 24 Apr 2013 14:44:25 +0000 (14:44 +0000)
committerStefano Babic <sbabic@denx.de>
Thu, 25 Apr 2013 19:48:21 +0000 (21:48 +0200)
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>
arch/arm/cpu/armv7/mx5/soc.c

index 263658aa4be46857f2b00abc0a97a18fbce5a2c2..3d50a5d8ee9a39dbe911f711272950a06b4ccd4d 100644 (file)
@@ -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)
 {