ARM: dra762: Add support for device identification

Add ID code detection for dra762 SoC.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
This commit is contained in:
Lokesh Vutla
2017-08-12 09:35:59 +05:30
committed by Tony Lindgren
parent 4dc6760d3d
commit c15ab99637
2 changed files with 14 additions and 0 deletions

View File

@@ -663,6 +663,15 @@ void __init dra7xxx_check_revision(void)
hawkeye = (idcode >> 12) & 0xffff;
rev = (idcode >> 28) & 0xff;
switch (hawkeye) {
case 0xbb50:
switch (rev) {
case 0:
default:
omap_revision = DRA762_REV_ES1_0;
break;
}
break;
case 0xb990:
switch (rev) {
case 0: