[U-Boot] [PATCH 4/6] omap3: make get_board_rev() function weak

Igor Grinberg grinberg at compulab.co.il
Mon Jan 2 15:01:33 CET 2012


From: Nikita Kiryanov <nikita at compulab.co.il>

Signed-off-by: Nikita Kiryanov <nikita at compulab.co.il>
Signed-off-by: Igor Grinberg <grinberg at compulab.co.il>
---
 arch/arm/cpu/armv7/omap3/sys_info.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/arch/arm/cpu/armv7/omap3/sys_info.c b/arch/arm/cpu/armv7/omap3/sys_info.c
index 22887ae..cde4093 100644
--- a/arch/arm/cpu/armv7/omap3/sys_info.c
+++ b/arch/arm/cpu/armv7/omap3/sys_info.c
@@ -197,10 +197,11 @@ u32 get_gpmc0_width(void)
  * get_board_rev() - setup to pass kernel board revision information
  * returns:(bit[0-3] sub version, higher bit[7-4] is higher version)
  *************************************************************************/
-u32 get_board_rev(void)
+u32 __get_board_rev(void)
 {
 	return 0x20;
 }
+u32 get_board_rev(void) __attribute__((weak, alias("__get_board_rev")));
 
 /********************************************************
  *  get_base(); get upper addr of current execution
-- 
1.7.3.4



More information about the U-Boot mailing list