mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 16:52:14 +02:00
sunxi: psci: save context id in cpu_on command
Replace the psci_save_target_pc call by the new function psci_save(cpu, pc,context_id) Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
This commit is contained in:
committed by
Tom Rini
parent
4f7dc2e603
commit
9622c7e65d
@@ -242,14 +242,15 @@ out:
|
|||||||
cp15_write_scr(scr);
|
cp15_write_scr(scr);
|
||||||
}
|
}
|
||||||
|
|
||||||
int __secure psci_cpu_on(u32 __always_unused unused, u32 mpidr, u32 pc)
|
int __secure psci_cpu_on(u32 __always_unused unused, u32 mpidr, u32 pc,
|
||||||
|
u32 context_id)
|
||||||
{
|
{
|
||||||
struct sunxi_cpucfg_reg *cpucfg =
|
struct sunxi_cpucfg_reg *cpucfg =
|
||||||
(struct sunxi_cpucfg_reg *)SUNXI_CPUCFG_BASE;
|
(struct sunxi_cpucfg_reg *)SUNXI_CPUCFG_BASE;
|
||||||
u32 cpu = (mpidr & 0x3);
|
u32 cpu = (mpidr & 0x3);
|
||||||
|
|
||||||
/* store target PC */
|
/* store target PC and context id */
|
||||||
psci_save_target_pc(cpu, pc);
|
psci_save(cpu, pc, context_id);
|
||||||
|
|
||||||
/* Set secondary core power on PC */
|
/* Set secondary core power on PC */
|
||||||
sunxi_set_entry_address(&psci_cpu_entry);
|
sunxi_set_entry_address(&psci_cpu_entry);
|
||||||
|
Reference in New Issue
Block a user