mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-07-22 19:09:43 +09:00
omap3: CONFIG_REVISION_TAG ifdef check for get_board_rev
Despite being defined with __weak, this declaration of get_board_rev will conflict with the fallback one when ONFIG_REVISION_TAG is not defined. Signed-off-by: Paul Kocialkowski <contact@paulk.fr> Reviewed-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
parent
d1a04b32f4
commit
fb9006c3a5
@ -196,10 +196,12 @@ u32 get_gpmc0_width(void)
|
|||||||
* get_board_rev() - setup to pass kernel board revision information
|
* get_board_rev() - setup to pass kernel board revision information
|
||||||
* returns:(bit[0-3] sub version, higher bit[7-4] is higher version)
|
* returns:(bit[0-3] sub version, higher bit[7-4] is higher version)
|
||||||
*************************************************************************/
|
*************************************************************************/
|
||||||
|
#ifdef CONFIG_REVISION_TAG
|
||||||
u32 __weak get_board_rev(void)
|
u32 __weak get_board_rev(void)
|
||||||
{
|
{
|
||||||
return 0x20;
|
return 0x20;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/********************************************************
|
/********************************************************
|
||||||
* get_base(); get upper addr of current execution
|
* get_base(); get upper addr of current execution
|
||||||
|
Loading…
Reference in New Issue
Block a user