[PATCH 1/1] highbank: add wfi for poweroff

Jean-Christophe PLAGNIOL-VILLARD plagnioj at jcrosoft.com
Wed Feb 20 09:22:59 EST 2013


On 08:09 Wed 20 Feb     , Rob Herring wrote:
> On 02/20/2013 06:55 AM, Jean-Christophe PLAGNIOL-VILLARD wrote:
> > needed by the real hardware
> > 
> > Cc: Rob Herring <rob.herring at calxeda.com>
> > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com>
> > ---
> >  arch/arm/mach-highbank/reset.c |    2 ++
> >  1 file changed, 2 insertions(+)
> > 
> > diff --git a/arch/arm/mach-highbank/reset.c b/arch/arm/mach-highbank/reset.c
> > index 630672a..b9664e4 100644
> > --- a/arch/arm/mach-highbank/reset.c
> > +++ b/arch/arm/mach-highbank/reset.c
> > @@ -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.
I do not care too

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

Best Regards,
J.
> 
> Rob
> 
> >  	while(1);
> >  }
> > 
> 



More information about the barebox mailing list