Skip to content

Commit 37adedf

Browse files
Zhiqiang-Houfabioestevam
authored andcommitted
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 <[email protected]>
1 parent dc86c11 commit 37adedf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/cpu/imx8_cpu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ static int imx_cpu_probe(struct udevice *dev)
287287
cpurev = get_cpu_rev();
288288
plat->cpurev = cpurev;
289289
plat->rev = get_imx_rev_str(cpurev & 0xFFF);
290-
plat->type = get_imx_type_str((cpurev & 0xFF000) >> 12);
290+
plat->type = get_imx_type_str((cpurev & 0x1FF000) >> 12);
291291
plat->freq_mhz = imx_get_cpu_rate(dev) / 1000000;
292292
plat->mpidr = dev_read_addr(dev);
293293
if (plat->mpidr == FDT_ADDR_T_NONE) {

0 commit comments

Comments
 (0)