diff options
author | Lokesh Vutla <lokeshvutla@ti.com> | 2015-06-03 14:43:25 +0530 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2015-06-12 12:43:06 -0400 |
commit | c7400e4882d8bf5c48f7d9ecc243987368dac2ba (patch) | |
tree | 83ba830668fb3f0fa61d7631a31b5d2ef87606b9 | |
parent | f308b4fce5d0c8a9ebae1e369d4b188f9432f79c (diff) | |
download | u-boot-imx-c7400e4882d8bf5c48f7d9ecc243987368dac2ba.zip u-boot-imx-c7400e4882d8bf5c48f7d9ecc243987368dac2ba.tar.gz u-boot-imx-c7400e4882d8bf5c48f7d9ecc243987368dac2ba.tar.bz2 |
ARM: DRA7: Add is_dra72x cpu check definition
A generic is_dra72x cpu check is useful for grouping
all the revisions under that. This is used in the
subsequent patches.
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
-rw-r--r-- | arch/arm/include/asm/omap_common.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/include/asm/omap_common.h b/arch/arm/include/asm/omap_common.h index b0296fb..50f178b 100644 --- a/arch/arm/include/asm/omap_common.h +++ b/arch/arm/include/asm/omap_common.h @@ -622,12 +622,19 @@ static inline u8 is_omap54xx(void) } #define DRA7XX 0x07000000 +#define DRA72X 0x07200000 static inline u8 is_dra7xx(void) { extern u32 *const omap_si_rev; return ((*omap_si_rev & 0xFF000000) == DRA7XX); } + +static inline u8 is_dra72x(void) +{ + extern u32 *const omap_si_rev; + return (*omap_si_rev & 0xFFF00000) == DRA72X; +} #endif /* |