From 625b03d8105044fe6fd9428f4cec464aecfdeb9b Mon Sep 17 00:00:00 2001 From: Peng Fan Date: Fri, 27 Dec 2019 10:14:02 +0800 Subject: imx: get cpu id/type of i.MX8MP Support get i.MX8MP cpu id and cpu type Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8m/soc.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'arch/arm/mach-imx/imx8m') diff --git a/arch/arm/mach-imx/imx8m/soc.c b/arch/arm/mach-imx/imx8m/soc.c index 5ce5a180e8..9a039ce127 100644 --- a/arch/arm/mach-imx/imx8m/soc.c +++ b/arch/arm/mach-imx/imx8m/soc.c @@ -197,8 +197,11 @@ u32 get_cpu_rev(void) reg &= 0xff; - /* i.MX8MM */ - if (major_low == 0x42) { + /* iMX8MP */ + if (major_low == 0x43) { + return (MXC_CPU_IMX8MP << 12) | reg; + } else if (major_low == 0x42) { + /* iMX8MN */ return (MXC_CPU_IMX8MN << 12) | reg; } else if (major_low == 0x41) { type = get_cpu_variant_type(MXC_CPU_IMX8MM); -- cgit