diff options
author | Chen-Yu Tsai <wens@csie.org> | 2016-06-07 10:54:26 +0800 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2016-06-20 22:43:59 +0200 |
commit | cbeeb2aebfebcacfe11a88104c6ee923baa50144 (patch) | |
tree | 79b3aa91e7c893d4006ebb1b2700b8d0736dd9a2 /arch | |
parent | 778dc5f43e92d8736a81e15fb0bbb6cb5a78c1ab (diff) | |
download | u-boot-cbeeb2aebfebcacfe11a88104c6ee923baa50144.tar.gz |
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')
-rw-r--r-- | arch/arm/include/asm/psci.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/include/asm/psci.h b/arch/arm/include/asm/psci.h index 3704f077b0..bc5edda73f 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__ */ |