From: Chen-Yu Tsai Date: Tue, 7 Jun 2016 02:54:26 +0000 (+0800) Subject: ARM: PSCI: export common PSCI function declarations for C code X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=cbeeb2aebfebcacfe11a88104c6ee923baa50144;p=u-boot.git 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 Acked-by: Marc Zyngier Signed-off-by: Hans de Goede --- 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 + +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__ */