Home
last modified time | relevance | path

Searched hist:d007e7964b7dc0a173d2571cb6fc9f18ebaf2c7f (Results 1 – 2 of 2) sorted by relevance

/rk3399_rockchip-uboot/arch/arm/cpu/armv8/
H A Dsleep.Sd007e7964b7dc0a173d2571cb6fc9f18ebaf2c7f Tue Nov 07 01:24:17 UTC 2017 Joseph Chen <chenjh@rock-chips.com> arm: armv8: introduce cpu suspend and resume support

Just like linux, it supports cpu save and restore context
during enter and exit low power mode. With this patch, cpu
is able to suspend with core power off.

Workflow for trap into ATF for system suspend:
cpu_suspend
-> cpu_do_suspend
-> arch specific fn: int (*fn)(unsigned long)
-> psci_system_suspend(deliver 'cpu_resume()' address to ATF)
-> ATF system suspend
<- ATF system resume
<- cpu_resume
<- cpu_do_resume
next instruction

Notice: If needed, you should remember to save and restore GIC by yourself.

Change-Id: I7a7c4989ba0845f5b6880c55a6ea6c47724c99df
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
H A DMakefiled007e7964b7dc0a173d2571cb6fc9f18ebaf2c7f Tue Nov 07 01:24:17 UTC 2017 Joseph Chen <chenjh@rock-chips.com> arm: armv8: introduce cpu suspend and resume support

Just like linux, it supports cpu save and restore context
during enter and exit low power mode. With this patch, cpu
is able to suspend with core power off.

Workflow for trap into ATF for system suspend:
cpu_suspend
-> cpu_do_suspend
-> arch specific fn: int (*fn)(unsigned long)
-> psci_system_suspend(deliver 'cpu_resume()' address to ATF)
-> ATF system suspend
<- ATF system resume
<- cpu_resume
<- cpu_do_resume
next instruction

Notice: If needed, you should remember to save and restore GIC by yourself.

Change-Id: I7a7c4989ba0845f5b6880c55a6ea6c47724c99df
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>