diff options
author | Lokesh Vutla <lokeshvutla@ti.com> | 2013-02-12 21:29:03 +0000 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2013-03-11 11:39:57 -0400 |
commit | de62688bb61c499ecc2d70a3aa8ccf90bb7a8ef6 (patch) | |
tree | 914a3d29a4adf27f1ecd0323965fb93e9190750d /arch/arm/cpu/armv7/omap-common/hwinit-common.c | |
parent | 3ef5ebeb86d1ef76277ab738fa663dfca1ce9599 (diff) | |
download | u-boot-de62688bb61c499ecc2d70a3aa8ccf90bb7a8ef6.tar.gz u-boot-de62688bb61c499ecc2d70a3aa8ccf90bb7a8ef6.tar.xz u-boot-de62688bb61c499ecc2d70a3aa8ccf90bb7a8ef6.zip |
arm: dra7xx: Add silicon id support for DRA752 soc
Adding CPU detection support for the DRA752 ES1.0 soc.
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: R Sricharan <r.sricharan@ti.com>
Reviewed-by: Tom Rini <trini@ti.com>
Diffstat (limited to 'arch/arm/cpu/armv7/omap-common/hwinit-common.c')
-rw-r--r-- | arch/arm/cpu/armv7/omap-common/hwinit-common.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/arch/arm/cpu/armv7/omap-common/hwinit-common.c b/arch/arm/cpu/armv7/omap-common/hwinit-common.c index 60af7eb9b0..05ff2e868f 100644 --- a/arch/arm/cpu/armv7/omap-common/hwinit-common.c +++ b/arch/arm/cpu/armv7/omap-common/hwinit-common.c @@ -81,12 +81,17 @@ u32 cortex_rev(void) void omap_rev_string(void) { u32 omap_rev = omap_revision(); + u32 soc_variant = (omap_rev & 0xF0000000) >> 28; u32 omap_variant = (omap_rev & 0xFFFF0000) >> 16; u32 major_rev = (omap_rev & 0x00000F00) >> 8; u32 minor_rev = (omap_rev & 0x000000F0) >> 4; - printf("OMAP%x ES%x.%x\n", omap_variant, major_rev, - minor_rev); + if (soc_variant) + printf("OMAP"); + else + printf("DRA"); + printf("%x ES%x.%x\n", omap_variant, major_rev, + minor_rev); } #ifdef CONFIG_SPL_BUILD |