ARM: DRA7: Add is_dra7xx cpu check definition
authorSRICHARAN R <r.sricharan@ti.com>
Fri, 8 Nov 2013 12:10:36 +0000 (17:40 +0530)
committerTom Rini <trini@ti.com>
Wed, 4 Dec 2013 13:12:07 +0000 (08:12 -0500)
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>
arch/arm/include/asm/omap_common.h

index 8a395e8a13e8ee9bae26a6a3e985a67943055aa4..0219d6c409d46dd40662c22b657f12792a624a33 100644 (file)
@@ -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
 
 /*