mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-12 08:09:56 +00:00
ARM: ux500: Introduce cpu_is_u8580()
Detect the subrevision v1 of U8540 and U8580. DB8580 is the FDSOI variant of DB8540. Some differences with DB8540 related to clocks will need to be checked with a cpu_is_u8580() function. Signed-off-by: Maxime Coquelin <maxime.coquelin@stericsson.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
parent
222e8500f5
commit
b5bbd41784
@ -61,9 +61,14 @@ static inline bool __attribute_const__ cpu_is_u8540(void)
|
|||||||
return dbx500_partnumber() == 0x8540;
|
return dbx500_partnumber() == 0x8540;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static inline bool __attribute_const__ cpu_is_u8580(void)
|
||||||
|
{
|
||||||
|
return dbx500_partnumber() == 0x8580;
|
||||||
|
}
|
||||||
|
|
||||||
static inline bool cpu_is_ux540_family(void)
|
static inline bool cpu_is_ux540_family(void)
|
||||||
{
|
{
|
||||||
return cpu_is_u9540() || cpu_is_u8540();
|
return cpu_is_u9540() || cpu_is_u8540() || cpu_is_u8580();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -115,6 +120,20 @@ static inline bool cpu_is_u8500v20_or_later(void)
|
|||||||
return (cpu_is_u8500() && !cpu_is_u8500v10() && !cpu_is_u8500v11());
|
return (cpu_is_u8500() && !cpu_is_u8500v10() && !cpu_is_u8500v11());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* 8540 revisions
|
||||||
|
*/
|
||||||
|
|
||||||
|
static inline bool __attribute_const__ cpu_is_u8540v10(void)
|
||||||
|
{
|
||||||
|
return cpu_is_u8540() && dbx500_revision() == 0xA0;
|
||||||
|
}
|
||||||
|
|
||||||
|
static inline bool __attribute_const__ cpu_is_u8580v10(void)
|
||||||
|
{
|
||||||
|
return cpu_is_u8580() && dbx500_revision() == 0xA0;
|
||||||
|
}
|
||||||
|
|
||||||
static inline bool ux500_is_svp(void)
|
static inline bool ux500_is_svp(void)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user