patch-2.4.22 linux-2.4.22/arch/mips/vr41xx/tanbac-tb0229/reboot.c
Next file: linux-2.4.22/arch/mips/vr41xx/tanbac-tb0229/setup.c
Previous file: linux-2.4.22/arch/mips/vr41xx/tanbac-tb0229/pci_fixup.c
Back to the patch index
Back to the overall index
- Lines: 31
- Date:
2003-08-25 04:44:40.000000000 -0700
- Orig file:
linux-2.4.21/arch/mips/vr41xx/tanbac-tb0229/reboot.c
- Orig date:
1969-12-31 16:00:00.000000000 -0800
diff -urN linux-2.4.21/arch/mips/vr41xx/tanbac-tb0229/reboot.c linux-2.4.22/arch/mips/vr41xx/tanbac-tb0229/reboot.c
@@ -0,0 +1,30 @@
+/*
+ * FILE NAME
+ * arch/mips/vr41xx/tanbac-tb0229/reboot.c
+ *
+ * BRIEF MODULE DESCRIPTION
+ * Depending on TANBAC TB0229(VR4131DIMM) of reboot system call.
+ *
+ * Copyright 2003 Megasolution Inc.
+ * matsu@megasolution.jp
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License as published by the
+ * Free Software Foundation; either version 2 of the License, or (at your
+ * option) any later version.
+ */
+#include <asm/io.h>
+#include <asm/vr41xx/tb0229.h>
+
+#define tb0229_hard_reset() writew(0, TB0219_RESET_REGS)
+
+void tanbac_tb0229_restart(char *command)
+{
+#ifdef CONFIG_TANBAC_TB0219
+ local_irq_disable();
+ tb0229_hard_reset();
+ while (1);
+#else
+ vr41xx_restart(command);
+#endif
+}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)