From: SRICHARAN R Date: Fri, 8 Nov 2013 12:10:36 +0000 (+0530) Subject: ARM: DRA7: Add is_dra7xx cpu check definition X-Git-Tag: v2014.01-rc2~42^2~13^2~22 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=39302dcd3013134e936cc76ccee8d1ed5522bfa0;p=oweals%2Fu-boot.git 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 --- diff --git a/arch/arm/include/asm/omap_common.h b/arch/arm/include/asm/omap_common.h index 8a395e8a13..0219d6c409 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 /*