projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a803521
)
ARM: ux500: add a U8520 detection macro
author
Linus Walleij
<linus.walleij@linaro.org>
Thu, 9 Aug 2012 14:34:41 +0000
(16:34 +0200)
committer
Linus Walleij
<linus.walleij@linaro.org>
Thu, 9 Aug 2012 15:48:44 +0000
(17:48 +0200)
In line with the other macros this detects the DB8520
ASIC variant.
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
arch/arm/mach-ux500/include/mach/id.h
patch
|
blob
|
history
diff --git
a/arch/arm/mach-ux500/include/mach/id.h
b/arch/arm/mach-ux500/include/mach/id.h
index 87aa921f3d1704992fafd7191e40c4c2d3d15d91..d1240e458a60a47f244e5419df358ffcdbd121d3 100644
(file)
--- 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;