summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorHou Zhiqiang <Zhiqiang.Hou@nxp.com>2024-08-01 11:59:51 +0800
committerFabio Estevam <festevam@gmail.com>2024-08-02 15:16:51 -0300
commit37adedfb2116ed28b49c2581baf0f7eae69b97e1 (patch)
treef505aff3477c71050f107ae0a899045bdb9366da /drivers
parentdc86c11556c194a6a0beda82ee96549ad66d0aec (diff)
downloadu-boot-37adedfb2116ed28b49c2581baf0f7eae69b97e1.tar.gz
u-boot-37adedfb2116ed28b49c2581baf0f7eae69b97e1.tar.bz2
u-boot-37adedfb2116ed28b49c2581baf0f7eae69b97e1.zip
cpu: imx: fix the CPU type field width
Increase one more bit to cover all CPU types. Otherwise it shows wrong CPU info on some platforms, such as i.MX8M Plus: U-Boot 2024.04+g674440bc73e+p0 (Jun 06 2024 - 10:05:34 +0000) CPU: NXP i.MX8MM Rev1.1 A53 at 4154504685 MHz at 30C Model: NXP i.MX8MPlus LPDDR4 EVK board Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/cpu/imx8_cpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cpu/imx8_cpu.c b/drivers/cpu/imx8_cpu.c
index 601a7071a6..6a97b7b9ad 100644
--- a/drivers/cpu/imx8_cpu.c
+++ b/drivers/cpu/imx8_cpu.c
@@ -287,7 +287,7 @@ static int imx_cpu_probe(struct udevice *dev)
cpurev = get_cpu_rev();
plat->cpurev = cpurev;
plat->rev = get_imx_rev_str(cpurev & 0xFFF);
- plat->type = get_imx_type_str((cpurev & 0xFF000) >> 12);
+ plat->type = get_imx_type_str((cpurev & 0x1FF000) >> 12);
plat->freq_mhz = imx_get_cpu_rate(dev) / 1000000;
plat->mpidr = dev_read_addr(dev);
if (plat->mpidr == FDT_ADDR_T_NONE) {