Skip to content
Snippets Groups Projects
Commit c7400e48 authored by Lokesh Vutla's avatar Lokesh Vutla Committed by Tom Rini
Browse files

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: default avatarLokesh Vutla <lokeshvutla@ti.com>
Reviewed-by: default avatarTom Rini <trini@konsulko.com>
parent f308b4fc
No related branches found
No related tags found
No related merge requests found
...@@ -622,12 +622,19 @@ static inline u8 is_omap54xx(void) ...@@ -622,12 +622,19 @@ static inline u8 is_omap54xx(void)
} }
#define DRA7XX 0x07000000 #define DRA7XX 0x07000000
#define DRA72X 0x07200000
static inline u8 is_dra7xx(void) static inline u8 is_dra7xx(void)
{ {
extern u32 *const omap_si_rev; extern u32 *const omap_si_rev;
return ((*omap_si_rev & 0xFF000000) == DRA7XX); 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 #endif
/* /*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment