PageRenderTime 36ms CodeModel.GetById 30ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/arch/mips/nxp/pnx8550/common/reset.c

https://bitbucket.org/thekraven/iscream_thunderc-2.6.35
C | 50 lines | 22 code | 6 blank | 22 comment | 2 complexity | 26d36670846d0548392e88db574447aa MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.0, AGPL-1.0
 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/kernel.h>
24
25#include <asm/reboot.h>
26#include <glb.h>
27
28void pnx8550_machine_restart(char *command)
29{
30	char head[] = "************* Machine restart *************";
31	char foot[] = "*******************************************";
32
33	printk("\n\n");
34	printk("%s\n", head);
35	if (command != NULL)
36		printk("* %s\n", command);
37	printk("%s\n", foot);
38
39	PNX8550_RST_CTL = PNX8550_RST_DO_SW_RST;
40}
41
42void pnx8550_machine_halt(void)
43{
44	printk("*** Machine halt. (Not implemented) ***\n");
45}
46
47void pnx8550_machine_power_off(void)
48{
49	printk("*** Machine power off.  (Not implemented) ***\n");
50}