mirror of
https://github.com/CTCaer/switch-l4t-atf.git
synced 2024-12-15 06:38:37 +00:00
Merge pull request #646 from davwan01/dw/gicv3-wakeup
CSS: Add support to wake up the core from wfi in GICv3
This commit is contained in:
commit
eae9d91250
@ -262,8 +262,14 @@ void css_cpu_standby(plat_local_state_t cpu_state)
|
||||
assert(cpu_state == ARM_LOCAL_STATE_RET);
|
||||
|
||||
scr = read_scr_el3();
|
||||
/* Enable PhysicalIRQ bit for NS world to wake the CPU */
|
||||
write_scr_el3(scr | SCR_IRQ_BIT);
|
||||
/*
|
||||
* Enable the Non secure interrupt to wake the CPU.
|
||||
* In GICv3 affinity routing mode, the non secure group1 interrupts use
|
||||
* the PhysicalFIQ at EL3 whereas in GICv2, it uses the PhysicalIRQ.
|
||||
* Enabling both the bits works for both GICv2 mode and GICv3 affinity
|
||||
* routing mode.
|
||||
*/
|
||||
write_scr_el3(scr | SCR_IRQ_BIT | SCR_FIQ_BIT);
|
||||
isb();
|
||||
dsb();
|
||||
wfi();
|
||||
|
Loading…
Reference in New Issue
Block a user