]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
cpu: imx8: show RevC instead of Rev? at boot log
authorFrank Li <Frank.Li@nxp.com>
Sun, 3 May 2020 13:58:55 +0000 (21:58 +0800)
committerStefano Babic <sbabic@denx.de>
Sun, 3 May 2020 13:45:49 +0000 (15:45 +0200)
Add REVC informaiton.

Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
arch/arm/include/asm/arch-imx/cpu.h
drivers/cpu/imx8_cpu.c

index b52565473d59aab6699b98e0ae9040b90f326fd6..e9c0078922677938c78467d15d1247fab68349eb 100644 (file)
@@ -64,6 +64,7 @@
 
 #define CHIP_REV_A             0x0
 #define CHIP_REV_B             0x1
+#define CHIP_REV_C             0x2
 
 #define BOARD_REV_1_0           0x0
 #define BOARD_REV_2_0           0x1
index 85ba7b7df2c26fa79d7cff58cdcb4230d002a5f8..95c14c98d861172da766f3a2939df274eb71a95e 100644 (file)
@@ -43,6 +43,8 @@ const char *get_imx8_rev(u32 rev)
                return "A";
        case CHIP_REV_B:
                return "B";
+       case CHIP_REV_C:
+               return "C";
        default:
                return "?";
        }