Commit 5d99eaee authored by Linus Walleij's avatar Linus Walleij

mach-ux500: update ASIC version detection

This makes the core detect the DB8500 V2.0 and V2.1 ASICs, and
add a convenience macro for "V2 or later".
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 06be2efa
...@@ -75,6 +75,26 @@ static inline bool __attribute_const__ cpu_is_u8500v2(void) ...@@ -75,6 +75,26 @@ static inline bool __attribute_const__ cpu_is_u8500v2(void)
return cpu_is_u8500() && ((dbx500_revision() & 0xf0) == 0xB0); return cpu_is_u8500() && ((dbx500_revision() & 0xf0) == 0xB0);
} }
static inline bool cpu_is_u8500v20(void)
{
return cpu_is_u8500() && (dbx500_revision() == 0xB0);
}
static inline bool cpu_is_u8500v21(void)
{
return cpu_is_u8500() && (dbx500_revision() == 0xB1);
}
static inline bool cpu_is_u8500v20_or_later(void)
{
return cpu_is_u8500() && !cpu_is_u8500v10() && !cpu_is_u8500v11();
}
static inline bool ux500_is_svp(void)
{
return false;
}
#define ux500_unknown_soc() BUG() #define ux500_unknown_soc() BUG()
#endif #endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment