Pete Popov | bdf21b1 | 2005-07-14 17:47:57 +0000 | [diff] [blame] | 1 | /*. |
| 2 | * |
| 3 | * ######################################################################## |
| 4 | * |
| 5 | * This program is free software; you can distribute it and/or modify it |
| 6 | * under the terms of the GNU General Public License (Version 2) as |
| 7 | * published by the Free Software Foundation. |
| 8 | * |
| 9 | * This program is distributed in the hope it will be useful, but WITHOUT |
| 10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
| 11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
| 12 | * for more details. |
| 13 | * |
| 14 | * You should have received a copy of the GNU General Public License along |
| 15 | * with this program; if not, write to the Free Software Foundation, Inc., |
| 16 | * 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. |
| 17 | * |
| 18 | * ######################################################################## |
| 19 | * |
| 20 | * Reset the PNX8550 board. |
| 21 | * |
| 22 | */ |
Ralf Baechle | 7270be0 | 2010-04-30 20:10:41 +0100 | [diff] [blame] | 23 | #include <linux/kernel.h> |
| 24 | |
Ralf Baechle | c1b47e9 | 2010-09-19 00:09:09 +0100 | [diff] [blame] | 25 | #include <asm/processor.h> |
Pete Popov | bdf21b1 | 2005-07-14 17:47:57 +0000 | [diff] [blame] | 26 | #include <asm/reboot.h> |
| 27 | #include <glb.h> |
| 28 | |
| 29 | void pnx8550_machine_restart(char *command) |
| 30 | { |
Pete Popov | bdf21b1 | 2005-07-14 17:47:57 +0000 | [diff] [blame] | 31 | PNX8550_RST_CTL = PNX8550_RST_DO_SW_RST; |
| 32 | } |
| 33 | |
| 34 | void pnx8550_machine_halt(void) |
| 35 | { |
Ralf Baechle | c1b47e9 | 2010-09-19 00:09:09 +0100 | [diff] [blame] | 36 | while (1) { |
| 37 | if (cpu_wait) |
| 38 | cpu_wait(); |
| 39 | } |
Pete Popov | bdf21b1 | 2005-07-14 17:47:57 +0000 | [diff] [blame] | 40 | } |