提交 503e1639 编写于 作者: R Richard Zhao 提交者: Sascha Hauer

ARM: imx53: correct Silicon Revision definition following fuse map

Signed-off-by: NRichard Zhao <richard.zhao@freescale.com>
Signed-off-by: NSascha Hauer <s.hauer@pengutronix.de>
上级 646e610d
...@@ -78,11 +78,16 @@ static int get_mx53_srev(void) ...@@ -78,11 +78,16 @@ static int get_mx53_srev(void)
void __iomem *iim_base = MX51_IO_ADDRESS(MX53_IIM_BASE_ADDR); void __iomem *iim_base = MX51_IO_ADDRESS(MX53_IIM_BASE_ADDR);
u32 rev = readl(iim_base + IIM_SREV) & 0xff; u32 rev = readl(iim_base + IIM_SREV) & 0xff;
if (rev == 0x0) switch (rev) {
case 0x0:
return IMX_CHIP_REVISION_1_0; return IMX_CHIP_REVISION_1_0;
else if (rev == 0x10) case 0x2:
return IMX_CHIP_REVISION_2_0; return IMX_CHIP_REVISION_2_0;
return 0; case 0x3:
return IMX_CHIP_REVISION_2_1;
default:
return IMX_CHIP_REVISION_UNKNOWN;
}
} }
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册