Path: blob/master/arch/mips/pnx8550/common/reset.c
10818 views
/*.1*2* ########################################################################3*4* This program is free software; you can distribute it and/or modify it5* under the terms of the GNU General Public License (Version 2) as6* published by the Free Software Foundation.7*8* This program is distributed in the hope it will be useful, but WITHOUT9* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or10* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License11* for more details.12*13* You should have received a copy of the GNU General Public License along14* with this program; if not, write to the Free Software Foundation, Inc.,15* 59 Temple Place - Suite 330, Boston MA 02111-1307, USA.16*17* ########################################################################18*19* Reset the PNX8550 board.20*21*/22#include <linux/kernel.h>2324#include <asm/processor.h>25#include <asm/reboot.h>26#include <glb.h>2728void pnx8550_machine_restart(char *command)29{30PNX8550_RST_CTL = PNX8550_RST_DO_SW_RST;31}3233void pnx8550_machine_halt(void)34{35while (1) {36if (cpu_wait)37cpu_wait();38}39}404142