ARM: ux500: add a U8520 detection macro

In line with the other macros this detects the DB8520
ASIC variant.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
Linus Walleij 2012-08-09 16:34:41 +02:00
parent a803521732
commit a4d9b33be0
1 changed files with 5 additions and 0 deletions

View File

@ -41,6 +41,11 @@ static inline bool __attribute_const__ cpu_is_u8500(void)
return dbx500_partnumber() == 0x8500;
}
static inline bool __attribute_const__ cpu_is_u8520(void)
{
return dbx500_partnumber() == 0x8520;
}
static inline bool __attribute_const__ cpu_is_u9540(void)
{
return dbx500_partnumber() == 0x9540;