]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
armv8/ls2085RDB: Update board version print logic
authorPrabhakar Kushwaha <prabhakar at freescale.com>
Thu, 28 May 2015 09:24:04 +0000 (14:54 +0530)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 9 Sep 2015 11:34:21 +0000 (13:34 +0200)
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.

Signed-off-by: Prabhakar Kushwaha <prabhakar at freescale.com>
Reviewed-by: York Sun <yorksun@freescale.com>
board/freescale/ls2085ardb/ls2085ardb.c

index e0a8a4158ccbd46c1a13424145368331685b5321..ff4b6a04015eeaca1b6a17cfb719505545391b2c 100644 (file)
@@ -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;