2 * INCA-IP Watchdog timer management code.
4 * Copyright (c) 2003 Wolfgang Denk <wd@denx.de>
6 * See file CREDITS for list of people who contributed to this
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License as
11 * published by the Free Software Foundation; either version 2 of
12 * the License, or (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
28 #include <asm/regdef.h>
32 #define WD_BASE 0xb8000000
33 #define WD_CON0(value) 0x0020(value)
34 #define WD_CON1(value) 0x0024(value)
35 #define WD_DISABLE 0x00000008
36 #define WD_ENABLE 0x00000000
37 #define WD_WRITE_PW 0xFFFC00F8
38 #define WD_WRITE_ENDINIT 0xFFFC00F3
39 #define WD_WRITE_INIT 0xFFFC00F2
42 .globl disable_incaip_wdt
46 /* Calculate password.
57 sw t3, WD_CON0(t0) /* write password */
66 sw t1, WD_CON1(t0) /* disable watchdog */
68 sw t1, WD_CON0(t0) /* write password */
69 li t1, WD_WRITE_ENDINIT
70 sw t1, WD_CON0(t0) /* end command */
75 #endif /* CONFIG_INCA_IP */