summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-tegra/flowctrl.h
diff options
context:
space:
mode:
authorPeter De Schrijver <pdeschrijver@nvidia.com>2012-02-10 00:47:44 +0100
committerOlof Johansson <olof@lixom.net>2012-02-26 23:44:42 +0100
commit26fe681fdaa5c800f1f99e8181631866e50ed8a1 (patch)
treec01a0ce0b6aea397410c18f7e072953a68e373a4 /arch/arm/mach-tegra/flowctrl.h
parentARM: tegra: initialize Tegra chipid early (diff)
downloadlinux-26fe681fdaa5c800f1f99e8181631866e50ed8a1.tar.xz
linux-26fe681fdaa5c800f1f99e8181631866e50ed8a1.zip
ARM: tegra: functions to access the flowcontroller
Introduce some functions to write to the flowcontroller registers. The flowcontroller controls CPU sleepstates and wakeup. Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com> Acked-by: Stephen Warren <swarren@nvidia.com> Tested-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'arch/arm/mach-tegra/flowctrl.h')
-rw-r--r--arch/arm/mach-tegra/flowctrl.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/flowctrl.h b/arch/arm/mach-tegra/flowctrl.h
index 74c6efbe52fa..19428173855e 100644
--- a/arch/arm/mach-tegra/flowctrl.h
+++ b/arch/arm/mach-tegra/flowctrl.h
@@ -34,4 +34,9 @@
#define FLOW_CTRL_HALT_CPU1_EVENTS 0x14
#define FLOW_CTRL_CPU1_CSR 0x18
+#ifndef __ASSEMBLY__
+void flowctrl_write_cpu_csr(unsigned int cpuid, u32 value);
+void flowctrl_write_cpu_halt(unsigned int cpuid, u32 value);
+#endif
+
#endif