Thread (63 messages) 63 messages, 9 authors, 2012-05-14

[PATCH 01/13] ARM: OMAP5: id: Add cpu id for ES versions

STALE5255d

From: R, Sricharan <hidden>
Date: 2012-05-10 11:22:00
Also in: linux-omap

Hi Roger,
quoted
+void __init omap5xxx_check_revision(void)
+{
+ ? ? u32 idcode;
+ ? ? u16 hawkeye;
+ ? ? u8 rev;
+
+ ? ? idcode = read_tap_reg(OMAP_TAP_IDCODE);
+ ? ? hawkeye = (idcode >> 12) & 0xffff;
+ ? ? rev = (idcode >> 28) & 0xff;
+ ? ? switch (hawkeye) {
+ ? ? case 0xb942:
+ ? ? ? ? ? ? switch (rev) {
+ ? ? ? ? ? ? case 0:
+ ? ? ? ? ? ? ? ? ? ? omap_revision = OMAP5430_REV_ES1_0;
+ ? ? ? ? ? ? ? ? ? ? break;
+ ? ? ? ? ? ? case 1:
+ ? ? ? ? ? ? ? ? ? ? omap_revision = OMAP5430_REV_ES2_0;
+ ? ? ? ? ? ? ? ? ? ? break;
+ ? ? ? ? ? ? default:
+ ? ? ? ? ? ? ? ? ? ? omap_revision = OMAP5430_REV_ES1_0;
Default should always be the latest version supported. i.e. in this case
it should be OMAP5430_REV_ES2_0
 ok thanks, will correct it.

Thanks,
 Sricharan
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help