From patchwork Wed Apr 29 02:17:20 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peng Fan X-Patchwork-Id: 238785 List-Id: U-Boot discussion From: peng.fan at nxp.com (Peng Fan) Date: Wed, 29 Apr 2020 10:17:20 +0800 Subject: [PATCH 7/7] cpu: imx8: show RevC instead of Rev? at boot log In-Reply-To: <20200429021720.6653-1-peng.fan@nxp.com> References: <20200429021720.6653-1-peng.fan@nxp.com> Message-ID: <20200429021720.6653-7-peng.fan@nxp.com> From: Frank Li Add REVC informaiton. Signed-off-by: Frank Li Signed-off-by: Peng Fan Reviewed-by: Simon Glass --- arch/arm/include/asm/arch-imx/cpu.h | 1 + drivers/cpu/imx8_cpu.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/arch/arm/include/asm/arch-imx/cpu.h b/arch/arm/include/asm/arch-imx/cpu.h index 5ade63665a..06b8122e7c 100644 --- a/arch/arm/include/asm/arch-imx/cpu.h +++ b/arch/arm/include/asm/arch-imx/cpu.h @@ -57,6 +57,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 d99d9aacd9..46472fdefb 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 "?"; }