[PATCH 2/4] ARM: ux500: add a U8520 detection macro

DORMANTno replies

From: Linus Walleij <hidden>
Date: 2012-08-10 08:44:01
Subsystem: arm port, arm/nomadik/ux500 architectures, the rest · Maintainers: Russell King, Linus Walleij, Linus Torvalds

From: Linus Walleij <redacted>

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

Signed-off-by: Linus Walleij <redacted>
---
 arch/arm/mach-ux500/include/mach/id.h | 5 +++++
 1 file changed, 5 insertions(+)
diff --git a/arch/arm/mach-ux500/include/mach/id.h b/arch/arm/mach-ux500/include/mach/id.h
index 87aa921..d1240e4 100644
--- a/arch/arm/mach-ux500/include/mach/id.h
+++ b/arch/arm/mach-ux500/include/mach/id.h
@@ -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;
-- 
1.7.11.3
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help