Path: blob/master/arch/mips/pnx833x/common/reset.c
10819 views
/*1* reset.c: reset support for PNX833X.2*3* Copyright 2008 NXP Semiconductors4* Chris Steel <[email protected]>5* Daniel Laird <[email protected]>6*7* Based on software written by:8* Nikita Youshchenko <[email protected]>, based on PNX8550 code.9*10* This program is free software; you can redistribute it and/or modify11* it under the terms of the GNU General Public License as published by12* the Free Software Foundation; either version 2 of the License, or13* (at your option) any later version.14*15* This program is distributed in the hope that it will be useful,16* but WITHOUT ANY WARRANTY; without even the implied warranty of17* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the18* GNU General Public License for more details.19*20* You should have received a copy of the GNU General Public License21* along with this program; if not, write to the Free Software22* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.23*/24#include <linux/reboot.h>25#include <pnx833x.h>2627void pnx833x_machine_restart(char *command)28{29PNX833X_RESET_CONTROL_2 = 0;30PNX833X_RESET_CONTROL = 0;31}3233void pnx833x_machine_halt(void)34{35while (1)36__asm__ __volatile__ ("wait");3738}3940void pnx833x_machine_power_off(void)41{42pnx833x_machine_halt();43}444546