summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrank Li <[email protected]>2020-05-03 21:58:55 +0800
committerStefano Babic <[email protected]>2020-05-03 15:45:49 +0200
commit8142a97d541ef1473925b3677d6bf86bcddb69ac (patch)
treefcd8459d0cd0ace24e7eebd42783c3dadac21f95
parent3ee6ea443eb466399ab325a58b377326ac5c57b5 (diff)
cpu: imx8: show RevC instead of Rev? at boot log
Add REVC informaiton. Reviewed-by: Simon Glass <[email protected]> Signed-off-by: Frank Li <[email protected]> Signed-off-by: Peng Fan <[email protected]>
-rw-r--r--arch/arm/include/asm/arch-imx/cpu.h1
-rw-r--r--drivers/cpu/imx8_cpu.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-imx/cpu.h b/arch/arm/include/asm/arch-imx/cpu.h
index b52565473d5..e9c00789226 100644
--- a/arch/arm/include/asm/arch-imx/cpu.h
+++ b/arch/arm/include/asm/arch-imx/cpu.h
@@ -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
diff --git a/drivers/cpu/imx8_cpu.c b/drivers/cpu/imx8_cpu.c
index 85ba7b7df2c..95c14c98d86 100644
--- a/drivers/cpu/imx8_cpu.c
+++ b/drivers/cpu/imx8_cpu.c
@@ -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 "?";
}