diff options
author | Peng Fan <peng.fan@nxp.com> | 2019-12-27 10:14:02 +0800 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2020-01-08 13:20:08 +0100 |
commit | 625b03d8105044fe6fd9428f4cec464aecfdeb9b (patch) | |
tree | 53b10d2cc4d1cb4ed4f4328b9acfb1a0661370e5 /arch/arm/mach-imx/imx8m | |
parent | 392a4e6dd33ae76960c382a13b1e437b58b425b6 (diff) |
imx: get cpu id/type of i.MX8MP
Support get i.MX8MP cpu id and cpu type
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'arch/arm/mach-imx/imx8m')
-rw-r--r-- | arch/arm/mach-imx/imx8m/soc.c | 7 |
1 files changed, 5 insertions, 2 deletions
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); |