Browse Source

imx8m: imx8mq: soc: fix get chip rev for B1 revision"

This reverts commit 308ca269d0.

Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com>
tags/2020-06-01
Troy Kisky 1 year ago
parent
commit
6332e1ed54
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      arch/arm/mach-imx/imx8m/soc.c

+ 2
- 2
arch/arm/mach-imx/imx8m/soc.c View File

@@ -203,8 +203,8 @@ u32 get_cpu_rev(void)
rom_version =
readl((void __iomem *)ROM_VERSION_A0);
if (rom_version != CHIP_REV_1_0) {
rom_version = readl((void __iomem *)ROM_VERSION_B0);
if (rom_version == CHIP_REV_2_0)
rom_version = readl((void __iomem *)ROM_VERSION_B0) & 0xff;
if (rom_version >= CHIP_REV_2_0)
reg = CHIP_REV_2_0;
}
}


Loading…
Cancel
Save