From: Fabio Estevam Date: Wed, 24 Apr 2013 14:44:25 +0000 (+0000) Subject: mx5: Define a common get_board_rev() X-Git-Tag: v2013.07-rc1~85^2~69 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=11c08d4ec5ea3ff01688df619f9e1c4881f18dd7;p=platform%2Fkernel%2Fu-boot.git 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 Acked-by: Marek Vasut --- 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) {