summaryrefslogtreecommitdiff
path: root/board/freescale
diff options
context:
space:
mode:
authorYangbo Lu <yangbo.lu@nxp.com>2017-12-08 15:35:36 +0800
committerYork Sun <york.sun@nxp.com>2017-12-14 13:08:47 -0800
commit4a47bf8a2ba61e21b022b81e2234fdb47570ad22 (patch)
tree1443ba2ea4301fbcddd178ce951877e470c01386 /board/freescale
parent481fb01f41feec75366cd0790ff672638384b60a (diff)
armv8: ls1012ardb: add more board version information
Add LS1012ARDB RevC/RevC1/RevC2/RevD/RevE information and detect it when u-boot starts up. Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com> Reviewed-by: York Sun <york.sun@nxp.com>
Diffstat (limited to 'board/freescale')
-rw-r--r--board/freescale/ls1012ardb/ls1012ardb.c26
1 files changed, 23 insertions, 3 deletions
diff --git a/board/freescale/ls1012ardb/ls1012ardb.c b/board/freescale/ls1012ardb/ls1012ardb.c
index 2f1d63742a..421b0a7861 100644
--- a/board/freescale/ls1012ardb/ls1012ardb.c
+++ b/board/freescale/ls1012ardb/ls1012ardb.c
@@ -41,12 +41,32 @@ int checkboard(void)
}
puts("Version");
- if ((in1 & SW_REV_MASK) == SW_REV_A)
+ switch (in1 & SW_REV_MASK) {
+ case SW_REV_A:
puts(": RevA");
- else if ((in1 & SW_REV_MASK) == SW_REV_B)
+ break;
+ case SW_REV_B:
puts(": RevB");
- else
+ break;
+ case SW_REV_C:
+ puts(": RevC");
+ break;
+ case SW_REV_C1:
+ puts(": RevC1");
+ break;
+ case SW_REV_C2:
+ puts(": RevC2");
+ break;
+ case SW_REV_D:
+ puts(": RevD");
+ break;
+ case SW_REV_E:
+ puts(": RevE");
+ break;
+ default:
puts(": unknown");
+ break;
+ }
printf(", boot from QSPI");
if ((in1 & SW_BOOT_MASK) == SW_BOOT_EMU)