Skip to content
Snippets Groups Projects
Commit b606ef41 authored by Dirk Behme's avatar Dirk Behme Committed by Wolfgang Denk
Browse files

OMAP3: EVM: Convert omap3_evm_version to u32


Convert the variable omap3_evm_version to u32 to work around
some broken linkers from older tool chains. E.g. CodeSourcery's
2009q1-203 ld 2.19.51.20090205. Without this, these linkers
stop linking 'omap3_evm' or at least issue a warning. Like

arm-none-linux-gnueabi-ld: section .bss [8003f5e0 -> 8007e337] overlaps section .rel.dyn [8003f5e0 -> 80044e57]
arm-none-linux-gnueabi-ld: section .dynsym [80044e58 -> 80044ef7] overlaps section.bss [8003f5e0 -> 8007e337]
arm-none-linux-gnueabi-ld: u-boot: section .bss vma 0x8003f5e0 overlaps previous sections

CC: Sanjeev Premi <premi@ti.com>
Signed-off-by: default avatarDirk Behme <dirk.behme@googlemail.com>
parent 030955c2
No related branches found
No related tags found
No related merge requests found
...@@ -37,9 +37,9 @@ ...@@ -37,9 +37,9 @@
#include <asm/mach-types.h> #include <asm/mach-types.h>
#include "evm.h" #include "evm.h"
static u8 omap3_evm_version; static u32 omap3_evm_version;
u8 get_omap3_evm_rev(void) u32 get_omap3_evm_rev(void)
{ {
return omap3_evm_version; return omap3_evm_version;
} }
......
...@@ -45,7 +45,7 @@ enum { ...@@ -45,7 +45,7 @@ enum {
OMAP3EVM_BOARD_GEN_2, /* EVM Rev >= Rev E */ OMAP3EVM_BOARD_GEN_2, /* EVM Rev >= Rev E */
}; };
u8 get_omap3_evm_rev(void); u32 get_omap3_evm_rev(void);
#if defined(CONFIG_CMD_NET) #if defined(CONFIG_CMD_NET)
static void setup_net_chip(void); static void setup_net_chip(void);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment