/* * Copyright (C) 2013 Jean-Christophe PLAGNIOL-VILLARD * * GPLv2 only */ #include #include #include #include void __noreturn reset_cpu(ulong addr) { hingbank_set_pwr_hard_reset(); asm(" wfi"); while(1); } void __noreturn poweroff() { shutdown_barebox(); hingbank_set_pwr_shutdown(); asm(" wfi"); while(1); }