[U-Boot] [PATCH 1/1] board/ls2081ardb: Update display information during boot

Santan Kumar santan.kumar at nxp.com
Fri Aug 18 09:50:33 UTC 2017


This patch modifies checkboard() for below changes:
-Remove Board Arch print
	Arch contains Qixis architecture version
	This field is more relevant for QDS boards.
	For RDB boards it is always constant as '1'.
-Correct the QMAP information.
	QMAP controls hows QSPI_A chip-selects are connected to
	various peripherals. And this information are saved in
	rightmost three bits. Hence, need to use only these three bits.
-Add print to display FPGA information.

Signed-off-by: Santan Kumar <santan.kumar at nxp.com>
Signed-off-by: Priyanka Jain <priyanka.jain at nxp.com>
---
This patch is split version of another patch
 https://patchwork.ozlabs.org/patch/779931/

 board/freescale/ls2080ardb/ls2080ardb.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/board/freescale/ls2080ardb/ls2080ardb.c b/board/freescale/ls2080ardb/ls2080ardb.c
index 0017f60..bae4b6f 100644
--- a/board/freescale/ls2080ardb/ls2080ardb.c
+++ b/board/freescale/ls2080ardb/ls2080ardb.c
@@ -71,11 +71,10 @@ int checkboard(void)
 #ifdef CONFIG_TARGET_LS2081ARDB
 #ifdef CONFIG_FSL_QIXIS
 	sw = QIXIS_READ(arch);
-	printf("Board Arch: V%d, ", sw >> 4);
 	printf("Board version: %c, ", (sw & 0xf) + 'A');
 
 	sw = QIXIS_READ(brdcfg[0]);
-	sw = (sw & QIXIS_QMAP_MASK) >> QIXIS_QMAP_SHIFT;
+	sw = ((sw >> QIXIS_QMAP_SHIFT) & QIXIS_QMAP_MASK);
 	switch (sw) {
 	case 0:
 		puts("boot from QSPI DEV#0\n");
@@ -101,6 +100,7 @@ int checkboard(void)
 		printf("invalid setting of SW%u\n", sw);
 		break;
 	}
+	printf("FPGA: v%d.%d\n", QIXIS_READ(scver), QIXIS_READ(tagdata));
 #endif
 	puts("SERDES1 Reference : ");
 	printf("Clock1 = 100MHz ");
-- 
1.9.1



More information about the U-Boot mailing list