1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-01 08:42:12 +02:00

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>
This commit is contained in:
Peng Fan
2019-12-27 10:14:02 +08:00
committed by Stefano Babic
parent 392a4e6dd3
commit 625b03d810
4 changed files with 9 additions and 2 deletions

View File

@@ -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);