1*b80e41acSMatt Waddel /* 2*b80e41acSMatt Waddel * (C) Copyright 2010 3*b80e41acSMatt Waddel * Matt Waddel, <matt.waddel@linaro.org> 4*b80e41acSMatt Waddel * 5*b80e41acSMatt Waddel * See file CREDITS for list of people who contributed to this 6*b80e41acSMatt Waddel * project. 7*b80e41acSMatt Waddel * 8*b80e41acSMatt Waddel * This program is free software; you can redistribute it and/or 9*b80e41acSMatt Waddel * modify it under the terms of the GNU General Public License as 10*b80e41acSMatt Waddel * published by the Free Software Foundation; either version 2 of 11*b80e41acSMatt Waddel * the License, or (at your option) any later version. 12*b80e41acSMatt Waddel * 13*b80e41acSMatt Waddel * This program is distributed in the hope that it will be useful, 14*b80e41acSMatt Waddel * but WITHOUT ANY WARRANTY; without even the implied warranty of 15*b80e41acSMatt Waddel * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16*b80e41acSMatt Waddel * GNU General Public License for more details. 17*b80e41acSMatt Waddel * 18*b80e41acSMatt Waddel * You should have received a copy of the GNU General Public License 19*b80e41acSMatt Waddel * along with this program; if not, write to the Free Software 20*b80e41acSMatt Waddel * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 21*b80e41acSMatt Waddel * MA 02111-1307 USA 22*b80e41acSMatt Waddel */ 23*b80e41acSMatt Waddel #ifndef _WDT_H_ 24*b80e41acSMatt Waddel #define _WDT_H_ 25*b80e41acSMatt Waddel 26*b80e41acSMatt Waddel /* Watchdog timer (SP805) register base address */ 27*b80e41acSMatt Waddel #define WDT_BASE 0x100E5000 28*b80e41acSMatt Waddel 29*b80e41acSMatt Waddel #define WDT_EN 0x2 30*b80e41acSMatt Waddel #define WDT_RESET_LOAD 0x0 31*b80e41acSMatt Waddel 32*b80e41acSMatt Waddel struct wdt { 33*b80e41acSMatt Waddel u32 wdogload; /* 0x000 */ 34*b80e41acSMatt Waddel u32 wdogvalue; 35*b80e41acSMatt Waddel u32 wdogcontrol; 36*b80e41acSMatt Waddel u32 wdogintclr; 37*b80e41acSMatt Waddel u32 wdogris; 38*b80e41acSMatt Waddel u32 wdogmis; 39*b80e41acSMatt Waddel u32 res1[0x2F9]; 40*b80e41acSMatt Waddel u32 wdoglock; /* 0xC00 */ 41*b80e41acSMatt Waddel u32 res2[0xBE]; 42*b80e41acSMatt Waddel u32 wdogitcr; /* 0xF00 */ 43*b80e41acSMatt Waddel u32 wdogitop; 44*b80e41acSMatt Waddel u32 res3[0x35]; 45*b80e41acSMatt Waddel u32 wdogperiphid0; /* 0xFE0 */ 46*b80e41acSMatt Waddel u32 wdogperiphid1; 47*b80e41acSMatt Waddel u32 wdogperiphid2; 48*b80e41acSMatt Waddel u32 wdogperiphid3; 49*b80e41acSMatt Waddel u32 wdogpcellid0; 50*b80e41acSMatt Waddel u32 wdogpcellid1; 51*b80e41acSMatt Waddel u32 wdogpcellid2; 52*b80e41acSMatt Waddel u32 wdogpcellid3; 53*b80e41acSMatt Waddel }; 54*b80e41acSMatt Waddel 55*b80e41acSMatt Waddel #endif /* _WDT_H_ */ 56