ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.6.tar.bz2
[linux-2.6.git] / arch / mips / vr41xx / tanbac-tb0229 / reboot.c
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 <linux/config.h>
17 #include <asm/io.h>
18 #include <asm/vr41xx/tb0229.h>
19
20 #define tb0229_hard_reset()     writew(0, TB0219_RESET_REGS)
21
22 void tanbac_tb0229_restart(char *command)
23 {
24         local_irq_disable();
25         tb0229_hard_reset();
26         while (1);
27 }