summaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
authorChen-Yu Tsai <wens@csie.org>2016-06-07 10:54:26 +0800
committerHans de Goede <hdegoede@redhat.com>2016-06-20 22:43:59 +0200
commitcbeeb2aebfebcacfe11a88104c6ee923baa50144 (patch)
tree79b3aa91e7c893d4006ebb1b2700b8d0736dd9a2 /arch/arm
parent778dc5f43e92d8736a81e15fb0bbb6cb5a78c1ab (diff)
downloadu-boot-imx-cbeeb2aebfebcacfe11a88104c6ee923baa50144.zip
u-boot-imx-cbeeb2aebfebcacfe11a88104c6ee923baa50144.tar.gz
u-boot-imx-cbeeb2aebfebcacfe11a88104c6ee923baa50144.tar.bz2
ARM: PSCI: export common PSCI function declarations for C code
Some common PSCI functions are written in assembly, but it should be possible to use them from C code. Add function declarations for C code to consume. Signed-off-by: Chen-Yu Tsai <wens@csie.org> Acked-by: Marc Zyngier <marc.zyngier@arm.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/include/asm/psci.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/include/asm/psci.h b/arch/arm/include/asm/psci.h
index 3704f07..bc5edda 100644
--- a/arch/arm/include/asm/psci.h
+++ b/arch/arm/include/asm/psci.h
@@ -48,6 +48,13 @@
#define ARM_PSCI_0_2_FN_SYSTEM_RESET ARM_PSCI_0_2_FN(9)
#ifndef __ASSEMBLY__
+#include <asm/types.h>
+
+void psci_cpu_entry(void);
+u32 psci_get_cpu_id(void);
+u32 psci_get_cpu_stack_top(int cpu);
+void psci_cpu_off_common(void);
+
int psci_update_dt(void *fdt);
void psci_board_init(void);
#endif /* ! __ASSEMBLY__ */