projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
646e610
)
ARM: imx53: correct Silicon Revision definition following fuse map
author
Richard Zhao
<richard.zhao@freescale.com>
Fri, 18 Feb 2011 12:26:30 +0000
(20:26 +0800)
committer
Sascha Hauer
<s.hauer@pengutronix.de>
Mon, 21 Feb 2011 16:36:11 +0000
(17:36 +0100)
Signed-off-by: Richard Zhao <richard.zhao@freescale.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
arch/arm/mach-mx5/cpu.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/arm/mach-mx5/cpu.c
b/arch/arm/mach-mx5/cpu.c
index d40671da4372a09a0e043a48bd1f6a8c7c44e60b..df46b5e60857c5fd4df9c3b2ac7f0594bc25aa4c 100644
(file)
--- a/
arch/arm/mach-mx5/cpu.c
+++ b/
arch/arm/mach-mx5/cpu.c
@@
-78,11
+78,16
@@
static int get_mx53_srev(void)
void __iomem *iim_base = MX51_IO_ADDRESS(MX53_IIM_BASE_ADDR);
u32 rev = readl(iim_base + IIM_SREV) & 0xff;
- if (rev == 0x0)
+ switch (rev) {
+ case 0x0:
return IMX_CHIP_REVISION_1_0;
- else if (rev == 0x10)
+ case 0x2:
return IMX_CHIP_REVISION_2_0;
- return 0;
+ case 0x3:
+ return IMX_CHIP_REVISION_2_1;
+ default:
+ return IMX_CHIP_REVISION_UNKNOWN;
+ }
}
/*