From: Dinh Nguyen<Dinh.Nguyen@xxxxxxxxxxxxx>isn't the correct way to get the silicon revision to read the "Product Revision register" and "Silicon Revision register" of the IIM and not from the internal ROM ? (page 41-11 of the i.MX51 reference manual).
Add mx53 support to cpu.c and mm.c.
Signed-off by: Dinh Nguyen<Dinh.Nguyen@xxxxxxxxxxxxx>
static void query_silicon_parameter(void)
{
- void __iomem *rom = ioremap(MX51_IROM_BASE_ADDR, MX51_IROM_SIZE);
+ void __iomem *rom;
u32 rev;
+ if (cpu_is_mx51())
+ rom = ioremap(MX51_IROM_BASE_ADDR, MX51_IROM_SIZE);
+ else if (cpu_is_mx53())
+ rom = ioremap(MX53_IROM_BASE_ADDR, MX53_IROM_SIZE);
+