aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/include/asm/smp_scu.h
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2011-02-04 10:36:39 +0000
committerRussell King <rmk+kernel@arm.linux.org.uk>2011-02-11 12:29:18 +0000
commit292ec42af7c6361435fe9df50cd59ec76f6741c6 (patch)
tree376c6bdc9f615988c19f9597020a8cde99005543 /arch/arm/include/asm/smp_scu.h
parentMerge branch 'next' of git://git.monstr.eu/linux-2.6-microblaze (diff)
downloadlinux-dev-292ec42af7c6361435fe9df50cd59ec76f6741c6.tar.xz
linux-dev-292ec42af7c6361435fe9df50cd59ec76f6741c6.zip
ARM: pm: add function to set WFI low-power mode for SMP CPUs
Add a function to set the SCU low-power mode for SMP CPUs. This centralizes this functionality rather than having to expose the SCU register definitions to each platform. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/include/asm/smp_scu.h')
-rw-r--r--arch/arm/include/asm/smp_scu.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/include/asm/smp_scu.h b/arch/arm/include/asm/smp_scu.h
index 2376835015d6..4eb6d005ffaa 100644
--- a/arch/arm/include/asm/smp_scu.h
+++ b/arch/arm/include/asm/smp_scu.h
@@ -1,7 +1,14 @@
#ifndef __ASMARM_ARCH_SCU_H
#define __ASMARM_ARCH_SCU_H
+#define SCU_PM_NORMAL 0
+#define SCU_PM_DORMANT 2
+#define SCU_PM_POWEROFF 3
+
+#ifndef __ASSEMBLER__
unsigned int scu_get_core_count(void __iomem *);
void scu_enable(void __iomem *);
+int scu_power_mode(void __iomem *, unsigned int);
+#endif
#endif