linux-mips
[Top] [All Lists]

patch: mtx-1 board reset

To: linux-mips@linux-mips.org
Subject: patch: mtx-1 board reset
From: Bruno Randolf <bruno.randolf@4g-systems.biz>
Date: Tue, 23 Nov 2004 15:59:35 +0100
Organization: 4G Systems
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
User-agent: KMail/1.7.1
hello!

the following patch defines the necessary board_reset function for the mtx-1 
(meshcube), please apply it to the 2.4 branch.

thanks,
bruno

--- linux/arch/mips/au1000/mtx-1/board_setup.c.orig 2004-10-13 
19:05:15.340583632 +0200
+++ linux/arch/mips/au1000/mtx-1/board_setup.c 2004-10-13 19:01:03.402883984 
+0200
@@ -48,6 +48,12 @@
 
 extern struct rtc_ops no_rtc_ops;
 
+void board_reset (void)
+{
+ /* Hit BCSR.SYSTEM_CONTROL[SW_RST] */
+ au_writel(0x00000000, 0xAE00001C);
+}
+
 void __init board_setup(void)
 {
  rtc_ops = &no_rtc_ops;

Attachment: pgp2hqms4s5Lj.pgp
Description: PGP signature

<Prev in Thread] Current Thread [Next in Thread>
  • patch: mtx-1 board reset, Bruno Randolf <=