Skip to contentSkip to conversation

armv8/ls2085RDB: Update board version print logic

PATCH Superseded Prabhakar Kushwaha 1 participant 1 message May 18, 2015

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 10/20 armv8/ls2085RDB: Update board version print logic

As per updated board document, no need to substract 1 from arch[BRD] bit field. Default value + 'A' represents the board revision.

So update board version print logic to reflect the same.

---
 board/freescale/ls2085ardb/ls2085ardb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
board/freescale/ls2085ardb/ls2085ardb.c +1 -1
index 5abf273..a1f5cff 100644
@@ -56,7 +56,7 @@ int checkboard(void)
 	sw = QIXIS_READ(arch);
 	printf("Board: %s, ", CONFIG_IDENT_STRING);
 	printf("Board Arch: V%d, ", sw >> 4);
-	printf("Board version: %c, boot from ", (sw & 0xf) + 'A' - 1);
+	printf("Board version: %c, boot from ", (sw & 0xf) + 'A');
 
 	sw = QIXIS_READ(brdcfg[0]);
 	sw = (sw & QIXIS_LBMAP_MASK) >> QIXIS_LBMAP_SHIFT;
Signature · 1 line
1.9.1