]> git.sur5r.net Git - u-boot/commitdiff
arm: psci: add a weak function psci_arch_cpu_entry
authorPatrick Delaunay <patrick.delaunay@st.com>
Mon, 16 Apr 2018 08:13:23 +0000 (10:13 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 7 May 2018 15:45:15 +0000 (11:45 -0400)
The added function psci_arch_cpu_entry() is called
during psci_cpu_entry() and can be used by arch to handle
PSCI state transition from ON_PENDING to ON.

The default weak function is empty: not behavior change.

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
arch/arm/cpu/armv7/psci.S

index 35fd95576ab9b05f3fdfbd4e02d4685fe31c4f13..08b5088675eb00867faf64d475f6be4a41ecd08c 100644 (file)
@@ -321,11 +321,18 @@ ENTRY(psci_arch_init)
 ENDPROC(psci_arch_init)
 .weak psci_arch_init
 
+ENTRY(psci_arch_cpu_entry)
+       mov     pc, lr
+ENDPROC(psci_arch_cpu_entry)
+.weak psci_arch_cpu_entry
+
 ENTRY(psci_cpu_entry)
        bl      psci_enable_smp
 
        bl      _nonsec_init
 
+       bl      psci_arch_cpu_entry
+
        bl      psci_get_cpu_id                 @ CPU ID => r0
        mov     r2, r0                          @ CPU ID => r2
        bl      psci_get_context_id             @ context id => r0