imx: mx7: psci: add system reset support
Subsystems (3)
PATCH 1/1 imx: mx7: psci: add system reset support
Add i.MX7 PSCI system reset support, linux
kernel now can use "reboot" command to reset
system.
Signed-off-by Anson Huang <[email protected]>
--- arch/arm/mach-imx/mx7/psci-mx7.c | 5 +++++ arch/arm/mach-imx/mx7/psci.S | 7 +++++++ 2 files changed, 12 insertions(+)
arch/arm/mach-imx/mx7/psci-mx7.c +5 -0
@@ -74,3 +74,8 @@ __secure int imx_cpu_off(int cpu)writel (0 ,SRC_BASE_ADDR + cpu *8 +SRC_GPR1_MX7D +4 );return 0 ; } + +__secure void imx_system_reset(void) +{ +reset_cpu (0 ); +}
arch/arm/mach-imx/mx7/psci.S +7 -0
@@ -43,4 +43,11 @@ psci_cpu_off: 1: wfi b 1b +.globl psci_system_reset +psci_system_reset: + b imx_system_reset + +2: wfi + b 2b + .popsection
Signature · 1 line
1.9.1