[PATCH 01/13] ARM: OMAP5: id: Add cpu id for ES versions
R, Sricharan
r.sricharan at ti.com
Thu May 10 07:22:00 EDT 2012
Hi Roger,
>> +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
More information about the linux-arm-kernel
mailing list