Skip to contentSkip to conversation

highbank: add wfi for poweroff

PATCH Applied Jean-Christophe PLAGNIOL-VILLARD 3 participants 4 messages Feb 20, 2013 – Feb 21, 2013

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 highbank: add wfi for poweroff

needed by the real hardware

---
 arch/arm/mach-highbank/reset.c |    2 ++
 1 file changed, 2 insertions(+)
arch/arm/mach-highbank/reset.c +2 -0
index 630672a..b9664e4 100644
@@ -23,5 +23,7 @@ void __noreturn poweroff()
 	shutdown_barebox();
 
 	hingbank_set_pwr_shutdown();
+	asm("	wfi");
+
 	while(1);
 }
Signature · 7 lines
1.7.10.4


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#1 lore raw
Quoted 13 lines · Jean-Christophe PLAGNIOL-VILLARD

needed by the real hardware

---
 arch/arm/mach-highbank/reset.c |    2 ++
 1 file changed, 2 insertions(+)
arch/arm/mach-highbank/reset.c +0 -0
index 630672a..b9664e4 100644

arch/arm/mach-highbank/reset.c void __noreturn poweroff() · line 27

Quoted 5 lines
arch/arm/mach-highbank/reset.c +2 -0
@@ -23,5 +23,7 @@ void __noreturn poweroff()
 	shutdown_barebox();
 
 	hingbank_set_pwr_shutdown();
+	asm("	wfi");
+

This will break on old compilers or v5 builds. I personally don't care, but some people do.

Rob

arch/arm/mach-highbank/reset.c void __noreturn poweroff() · line 29

Quoted 3 lines
arch/arm/mach-highbank/reset.c +0 -0
 	while(1);
 }

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

#2 lore raw
Quoted 16 lines · Rob Herring
Quoted 15 lines · Jean-Christophe PLAGNIOL-VILLARD

needed by the real hardware

---
 arch/arm/mach-highbank/reset.c |    2 ++
 1 file changed, 2 insertions(+)
arch/arm/mach-highbank/reset.c +0 -0
index 630672a..b9664e4 100644
@@ -23,5 +23,7 @@ void __noreturn poweroff()
 	shutdown_barebox();
 
Quoted 6 lines

arch/arm/mach-highbank/reset.c void __noreturn poweroff() · line 27

Quoted 3 lines
arch/arm/mach-highbank/reset.c +2 -0
 	hingbank_set_pwr_shutdown();
+	asm("	wfi");
+

This will break on old compilers or v5 builds. I personally don't care, but some people do.

I do not care too

and highbank is a v7 so I expect you use the proper compiler

Best Regards,
J.

Quoted 7 lines

Rob

Quoted 3 lines
arch/arm/mach-highbank/reset.c +0 -0
 	while(1);
 }

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

Applied
#3 lore raw
In reply to Jean-Christophe PLAGNIOL-VILLARD
Quoted 4 lines · Jean-Christophe PLAGNIOL-VILLARD

needed by the real hardware

Applied, thanks.

Sascha

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