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 _SYSCTRL_H_ 24*b80e41acSMatt Waddel #define _SYSCTRL_H_ 25*b80e41acSMatt Waddel 26*b80e41acSMatt Waddel /* System controller (SP810) register definitions */ 27*b80e41acSMatt Waddel #define SP810_TIMER0_ENSEL (1 << 15) 28*b80e41acSMatt Waddel #define SP810_TIMER1_ENSEL (1 << 17) 29*b80e41acSMatt Waddel #define SP810_TIMER2_ENSEL (1 << 19) 30*b80e41acSMatt Waddel #define SP810_TIMER3_ENSEL (1 << 21) 31*b80e41acSMatt Waddel 32*b80e41acSMatt Waddel struct sysctrl { 33*b80e41acSMatt Waddel u32 scctrl; /* 0x000 */ 34*b80e41acSMatt Waddel u32 scsysstat; 35*b80e41acSMatt Waddel u32 scimctrl; 36*b80e41acSMatt Waddel u32 scimstat; 37*b80e41acSMatt Waddel u32 scxtalctrl; 38*b80e41acSMatt Waddel u32 scpllctrl; 39*b80e41acSMatt Waddel u32 scpllfctrl; 40*b80e41acSMatt Waddel u32 scperctrl0; 41*b80e41acSMatt Waddel u32 scperctrl1; 42*b80e41acSMatt Waddel u32 scperen; 43*b80e41acSMatt Waddel u32 scperdis; 44*b80e41acSMatt Waddel u32 scperclken; 45*b80e41acSMatt Waddel u32 scperstat; 46*b80e41acSMatt Waddel u32 res1[0x006]; 47*b80e41acSMatt Waddel u32 scflashctrl; /* 0x04c */ 48*b80e41acSMatt Waddel u32 res2[0x3a4]; 49*b80e41acSMatt Waddel u32 scsysid0; /* 0xee0 */ 50*b80e41acSMatt Waddel u32 scsysid1; 51*b80e41acSMatt Waddel u32 scsysid2; 52*b80e41acSMatt Waddel u32 scsysid3; 53*b80e41acSMatt Waddel u32 scitcr; 54*b80e41acSMatt Waddel u32 scitir0; 55*b80e41acSMatt Waddel u32 scitir1; 56*b80e41acSMatt Waddel u32 scitor; 57*b80e41acSMatt Waddel u32 sccntctrl; 58*b80e41acSMatt Waddel u32 sccntdata; 59*b80e41acSMatt Waddel u32 sccntstep; 60*b80e41acSMatt Waddel u32 res3[0x32]; 61*b80e41acSMatt Waddel u32 scperiphid0; /* 0xfe0 */ 62*b80e41acSMatt Waddel u32 scperiphid1; 63*b80e41acSMatt Waddel u32 scperiphid2; 64*b80e41acSMatt Waddel u32 scperiphid3; 65*b80e41acSMatt Waddel u32 scpcellid0; 66*b80e41acSMatt Waddel u32 scpcellid1; 67*b80e41acSMatt Waddel u32 scpcellid2; 68*b80e41acSMatt Waddel u32 scpcellid3; 69*b80e41acSMatt Waddel }; 70*b80e41acSMatt Waddel #endif /* _SYSCTRL_H_ */ 71