highbank: add power off support
PATCH 1/1 highbank: add power off support
Cc Rob Herring <[email protected]>
Signed-off-by Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
--- arch/arm/Kconfig | 1 + arch/arm/configs/highbank_defconfig | 1 + arch/arm/mach-highbank/reset.c | 8 ++++++++ 3 files changed, 10 insertions(+)
arch/arm/Kconfig +1 -0
@@ -49,6 +49,7 @@ config ARCH_EP93XX config ARCH_HIGHBANK bool "Calxeda Highbank" select HAS_DEBUG_LL + select HAS_POWEROFF select ARCH_HAS_L2X0 select CPU_V7 select ARM_AMBA
arch/arm/configs/highbank_defconfig +1 -0
@@ -35,6 +35,7 @@ CONFIG_CMD_BOOTM_OFTREE_UIMAGE=y CONFIG_CMD_UIMAGE=y # CONFIG_CMD_BOOTU is not set CONFIG_CMD_RESET=y +CONFIG_CMD_POWEROFF=y CONFIG_CMD_GO=y CONFIG_CMD_OFTREE=y CONFIG_CMD_OFTREE_PROBE=y
arch/arm/mach-highbank/reset.c +8 -0
@@ -17,3 +17,11 @@ void __noreturn reset_cpu(ulong addr)while (1 ); } + +void __noreturn poweroff () +{ +shutdown_barebox (); + +hingbank_set_pwr_shutdown (); +while (1 ); +}
Signature · 7 lines
1.7.10.4 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Sascha Hauer
AppliedQuoted 2 lines · Jean-Christophe PLAGNIOL-VILLARD
Cc Rob Herring <[email protected]>Signed-off-by Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Applied, thanks
Sascha
Quoted 55 lines
--- arch/arm/Kconfig | 1 + arch/arm/configs/highbank_defconfig | 1 + arch/arm/mach-highbank/reset.c | 8 ++++++++ 3 files changed, 10 insertions(+)arch/arm/Kconfig +1
-0@@ -49,6 +49,7 @@ config ARCH_EP93XX config ARCH_HIGHBANK bool "Calxeda Highbank" select HAS_DEBUG_LL + select HAS_POWEROFF select ARCH_HAS_L2X0 select CPU_V7 select ARM_AMBAarch/arm/configs/highbank_defconfig +1
-0@@ -35,6 +35,7 @@ CONFIG_CMD_BOOTM_OFTREE_UIMAGE=y CONFIG_CMD_UIMAGE=y # CONFIG_CMD_BOOTU is not set CONFIG_CMD_RESET=y +CONFIG_CMD_POWEROFF=y CONFIG_CMD_GO=y CONFIG_CMD_OFTREE=y CONFIG_CMD_OFTREE_PROBE=yarch/arm/mach-highbank/reset.c +8
-0@@ -17,3 +17,11 @@ void __noreturn reset_cpu(ulong addr)while (1 ); } + +void __noreturn poweroff () +{ +shutdown_barebox (); + +hingbank_set_pwr_shutdown (); +while (1 ); +}Signature · 7 lines
1.7.10.4 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Signature · 9 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Quoted 37 lines · Jean-Christophe PLAGNIOL-VILLARD
Cc Rob Herring <[email protected]>Signed-off-by Jean-Christophe PLAGNIOL-VILLARD <[email protected]>--- arch/arm/Kconfig | 1 + arch/arm/configs/highbank_defconfig | 1 + arch/arm/mach-highbank/reset.c | 8 ++++++++ 3 files changed, 10 insertions(+)arch/arm/Kconfig +1
-0@@ -49,6 +49,7 @@ config ARCH_EP93XX config ARCH_HIGHBANK bool "Calxeda Highbank" select HAS_DEBUG_LL + select HAS_POWEROFF select ARCH_HAS_L2X0 select CPU_V7 select ARM_AMBAarch/arm/configs/highbank_defconfig +1
-0@@ -35,6 +35,7 @@ CONFIG_CMD_BOOTM_OFTREE_UIMAGE=y CONFIG_CMD_UIMAGE=y # CONFIG_CMD_BOOTU is not set CONFIG_CMD_RESET=y +CONFIG_CMD_POWEROFF=y CONFIG_CMD_GO=y CONFIG_CMD_OFTREE=y CONFIG_CMD_OFTREE_PROBE=yarch/arm/mach-highbank/reset.c +0
-0
arch/arm/mach-highbank/reset.c void __noreturn reset_cpu(ulong addr) · line 26
Quoted 10 lines
arch/arm/mach-highbank/reset.c +7
-0@@ -17,3 +17,11 @@ void __noreturn reset_cpu(ulong addr)while (1 ); } + +void __noreturn poweroff () +{ +shutdown_barebox (); + +hingbank_set_pwr_shutdown (); +while (1 );
This needs a wfi to trigger poweroff.
Rob
arch/arm/mach-highbank/reset.c void __noreturn reset_cpu(ulong addr) · line 27
Quoted 2 lines
arch/arm/mach-highbank/reset.c +1
-0+}
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox