mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-27 07:01:24 +00:00
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>
This commit is contained in:
parent
f308b4fce5
commit
c7400e4882
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue