summaryrefslogtreecommitdiff
path: root/arch/arm/cpu/armv7
diff options
context:
space:
mode:
authorPatrick Delaunay <patrick.delaunay@st.com>2018-04-16 10:13:23 +0200
committerTom Rini <trini@konsulko.com>2018-05-07 11:45:15 -0400
commit486daaa618e114333d13a90b6d7fb52d75baf0c5 (patch)
treedc38c92e7a10543054999ec05d2f56c7f14413bf /arch/arm/cpu/armv7
parent1a047c23f9e5e7f498cc3ca759725ae7b6c6a6b9 (diff)
arm: psci: add a weak function psci_arch_cpu_entry
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>
Diffstat (limited to 'arch/arm/cpu/armv7')
-rw-r--r--arch/arm/cpu/armv7/psci.S7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/psci.S b/arch/arm/cpu/armv7/psci.S
index 35fd95576a..08b5088675 100644
--- a/arch/arm/cpu/armv7/psci.S
+++ b/arch/arm/cpu/armv7/psci.S
@@ -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