Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1d3266ec authored by Linus Walleij's avatar Linus Walleij
Browse files

ARM: ux500: add detection for DB8500 ASIC v2.2



Add a macro to properly detect the v2.2 version of the
DB8500 ASIC.

Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent e1bbb55d
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -105,6 +105,11 @@ static inline bool cpu_is_u8500v21(void)
	return cpu_is_u8500() && (dbx500_revision() == 0xB1);
}

static inline bool cpu_is_u8500v22(void)
{
	return cpu_is_u8500() && (dbx500_revision() == 0xB2);
}

static inline bool cpu_is_u8500v20_or_later(void)
{
	return (cpu_is_u8500() && !cpu_is_u8500v10() && !cpu_is_u8500v11());