1*b80e41acSMatt Waddel /* 2*b80e41acSMatt Waddel * (C) Copyright 2010 Linaro 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 _SYSTIMER_H_ 24*b80e41acSMatt Waddel #define _SYSTIMER_H_ 25*b80e41acSMatt Waddel 26*b80e41acSMatt Waddel /* AMBA timer register base address */ 27*b80e41acSMatt Waddel #define SYSTIMER_BASE 0x10011000 28*b80e41acSMatt Waddel 29*b80e41acSMatt Waddel #define SYSHZ_CLOCK 1000000 /* Timers -> 1Mhz */ 30*b80e41acSMatt Waddel #define SYSTIMER_RELOAD 0xFFFFFFFF 31*b80e41acSMatt Waddel #define SYSTIMER_EN (1 << 7) 32*b80e41acSMatt Waddel #define SYSTIMER_32BIT (1 << 1) 33*b80e41acSMatt Waddel 34*b80e41acSMatt Waddel struct systimer { 35*b80e41acSMatt Waddel u32 timer0load; /* 0x00 */ 36*b80e41acSMatt Waddel u32 timer0value; 37*b80e41acSMatt Waddel u32 timer0control; 38*b80e41acSMatt Waddel u32 timer0intclr; 39*b80e41acSMatt Waddel u32 timer0ris; 40*b80e41acSMatt Waddel u32 timer0mis; 41*b80e41acSMatt Waddel u32 timer0bgload; 42*b80e41acSMatt Waddel u32 timer1load; /* 0x20 */ 43*b80e41acSMatt Waddel u32 timer1value; 44*b80e41acSMatt Waddel u32 timer1control; 45*b80e41acSMatt Waddel u32 timer1intclr; 46*b80e41acSMatt Waddel u32 timer1ris; 47*b80e41acSMatt Waddel u32 timer1mis; 48*b80e41acSMatt Waddel u32 timer1bgload; 49*b80e41acSMatt Waddel }; 50*b80e41acSMatt Waddel #endif /* _SYSTIMER_H_ */ 51