1 /*
2  * FILE NAME
3  *	arch/mips/vr41xx/tanbac-tb0229/reboot.c
4  *
5  * BRIEF MODULE DESCRIPTION
6  *	Depending on TANBAC TB0229(VR4131DIMM) of reboot system call.
7  *
8  * Copyright 2003 Megasolution Inc.
9  *                matsu@megasolution.jp
10  *
11  *  This program is free software; you can redistribute it and/or modify it
12  *  under the terms of the GNU General Public License as published by the
13  *  Free Software Foundation; either version 2 of the License, or (at your
14  *  option) any later version.
15  */
16 #include <asm/io.h>
17 #include <asm/vr41xx/tb0229.h>
18 
19 #define tb0219_hard_reset()	writew(0, TB0219_RESET_REGS)
20 
tanbac_tb0219_restart(char * command)21 void tanbac_tb0219_restart(char *command)
22 {
23 	local_irq_disable();
24 	tb0219_hard_reset();
25 	while (1);
26 }
27