[U-Boot] [PATCH 2/2] MX5: board version not printed corretly on MX51EVK
Jason Liu
r64343 at freescale.com
Fri Oct 22 13:25:45 CEST 2010
Fix the board version printing issue on MX51EVK. Need to read
the board version via get_cpu_rev and not rely on system_rev
due to the system_rev not initialized at boardchecking time.
Signed-off-by: Jason Liu <r64343 at freescale.com>
---
board/freescale/mx51evk/mx51evk.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/board/freescale/mx51evk/mx51evk.c b/board/freescale/mx51evk/mx51evk.c
index d6bb71c..c532603 100644
--- a/board/freescale/mx51evk/mx51evk.c
+++ b/board/freescale/mx51evk/mx51evk.c
@@ -438,6 +438,8 @@ int board_late_init(void)
int checkboard(void)
{
+ u32 system_rev = get_cpu_rev();
+
puts("Board: MX51EVK ");
switch (system_rev & 0xff) {
--
1.7.0.4
More information about the U-Boot
mailing list