diff options
author | Pete Popov <ppopov@embeddedalley.com> | 2005-07-14 13:47:57 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2005-10-29 14:31:54 -0400 |
commit | bdf21b18b4abf983db38f04ef7fec88f47389867 (patch) | |
tree | b7e551f09f0ee39f4a59132be4c0890e1ba80d91 /arch/mips/philips/pnx8550/common/reset.c | |
parent | e01402b115cccb6357f956649487aca2c6f7fbba (diff) |
Philips PNX8550 support: MIPS32-like core with 2 Trimedias on it.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/philips/pnx8550/common/reset.c')
-rw-r--r-- | arch/mips/philips/pnx8550/common/reset.c | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/arch/mips/philips/pnx8550/common/reset.c b/arch/mips/philips/pnx8550/common/reset.c new file mode 100644 index 000000000000..7b2cbc5b2c7c --- /dev/null +++ b/arch/mips/philips/pnx8550/common/reset.c | |||
@@ -0,0 +1,49 @@ | |||
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 | */ | ||
23 | #include <linux/slab.h> | ||
24 | #include <asm/reboot.h> | ||
25 | #include <glb.h> | ||
26 | |||
27 | void pnx8550_machine_restart(char *command) | ||
28 | { | ||
29 | char head[] = "************* Machine restart *************"; | ||
30 | char foot[] = "*******************************************"; | ||
31 | |||
32 | printk("\n\n"); | ||
33 | printk("%s\n", head); | ||
34 | if (command != NULL) | ||
35 | printk("* %s\n", command); | ||
36 | printk("%s\n", foot); | ||
37 | |||
38 | PNX8550_RST_CTL = PNX8550_RST_DO_SW_RST; | ||
39 | } | ||
40 | |||
41 | void pnx8550_machine_halt(void) | ||
42 | { | ||
43 | printk("*** Machine halt. (Not implemented) ***\n"); | ||
44 | } | ||
45 | |||
46 | void pnx8550_machine_power_off(void) | ||
47 | { | ||
48 | printk("*** Machine power off. (Not implemented) ***\n"); | ||
49 | } | ||