highbank: add wfi for poweroff
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
@@ -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
Quoted 13 lines · Jean-Christophe PLAGNIOL-VILLARD
needed by the real hardware
Cc Rob Herring <[email protected]>Signed-off-by Jean-Christophe PLAGNIOL-VILLARD <[email protected]>--- arch/arm/mach-highbank/reset.c | 2 ++ 1 file changed, 2 insertions(+)arch/arm/mach-highbank/reset.c +0
-0
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
-0while (1 ); }
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Quoted 16 lines · Rob Herring
Quoted 15 lines · Jean-Christophe PLAGNIOL-VILLARD
needed by the real hardware
Cc Rob Herring <[email protected]>Signed-off-by Jean-Christophe PLAGNIOL-VILLARD <[email protected]>--- arch/arm/mach-highbank/reset.c | 2 ++ 1 file changed, 2 insertions(+)arch/arm/mach-highbank/reset.c +0
-0@@ -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
-0hingbank_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
-0while (1 ); }
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Sascha Hauer
AppliedQuoted 4 lines · Jean-Christophe PLAGNIOL-VILLARD
needed by the real hardware
Cc Rob Herring <[email protected]>Signed-off-by Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
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