summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorSRICHARAN R <r.sricharan@ti.com>2013-11-08 17:40:36 +0530
committerTom Rini <trini@ti.com>2013-12-04 08:12:07 -0500
commit39302dcd3013134e936cc76ccee8d1ed5522bfa0 (patch)
treefe44ab26ffd8d28d98df16aa5599f37027e94fa1 /arch
parent39245c8699c68f85a5aaa3153d954370920d09c0 (diff)
downloadu-boot-imx-39302dcd3013134e936cc76ccee8d1ed5522bfa0.zip
u-boot-imx-39302dcd3013134e936cc76ccee8d1ed5522bfa0.tar.gz
u-boot-imx-39302dcd3013134e936cc76ccee8d1ed5522bfa0.tar.bz2
ARM: DRA7: Add is_dra7xx cpu check definition
A generic is_dra7xx cpu check is useful for grouping all the revisions under that. This is used in the subsequent patches. Signed-off-by: Sricharan R <r.sricharan@ti.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/include/asm/omap_common.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/include/asm/omap_common.h b/arch/arm/include/asm/omap_common.h
index 8a395e8..0219d6c 100644
--- a/arch/arm/include/asm/omap_common.h
+++ b/arch/arm/include/asm/omap_common.h
@@ -605,6 +605,14 @@ static inline u8 is_omap54xx(void)
extern u32 *const omap_si_rev;
return ((*omap_si_rev & 0xFF000000) == OMAP54xx);
}
+
+#define DRA7XX 0x07000000
+
+static inline u8 is_dra7xx(void)
+{
+ extern u32 *const omap_si_rev;
+ return ((*omap_si_rev & 0xFF000000) == DRA7XX);
+}
#endif
/*