sysctrl.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /*
  2. * (C) Copyright 2010 Linaro
  3. * Matt Waddel, <matt.waddel@linaro.org>
  4. *
  5. * See file CREDITS for list of people who contributed to this
  6. * project.
  7. *
  8. * This program is free software; you can redistribute it and/or
  9. * modify it under the terms of the GNU General Public License as
  10. * published by the Free Software Foundation; either version 2 of
  11. * the License, or (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program; if not, write to the Free Software
  20. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  21. * MA 02111-1307 USA
  22. */
  23. #ifndef _SYSCTRL_H_
  24. #define _SYSCTRL_H_
  25. /* System controller (SP810) register definitions */
  26. #define SP810_TIMER0_ENSEL (1 << 15)
  27. #define SP810_TIMER1_ENSEL (1 << 17)
  28. #define SP810_TIMER2_ENSEL (1 << 19)
  29. #define SP810_TIMER3_ENSEL (1 << 21)
  30. struct sysctrl {
  31. u32 scctrl; /* 0x000 */
  32. u32 scsysstat;
  33. u32 scimctrl;
  34. u32 scimstat;
  35. u32 scxtalctrl;
  36. u32 scpllctrl;
  37. u32 scpllfctrl;
  38. u32 scperctrl0;
  39. u32 scperctrl1;
  40. u32 scperen;
  41. u32 scperdis;
  42. u32 scperclken;
  43. u32 scperstat;
  44. u32 res1[0x006];
  45. u32 scflashctrl; /* 0x04c */
  46. u32 res2[0x3a4];
  47. u32 scsysid0; /* 0xee0 */
  48. u32 scsysid1;
  49. u32 scsysid2;
  50. u32 scsysid3;
  51. u32 scitcr;
  52. u32 scitir0;
  53. u32 scitir1;
  54. u32 scitor;
  55. u32 sccntctrl;
  56. u32 sccntdata;
  57. u32 sccntstep;
  58. u32 res3[0x32];
  59. u32 scperiphid0; /* 0xfe0 */
  60. u32 scperiphid1;
  61. u32 scperiphid2;
  62. u32 scperiphid3;
  63. u32 scpcellid0;
  64. u32 scpcellid1;
  65. u32 scpcellid2;
  66. u32 scpcellid3;
  67. };
  68. #endif /* _SYSCTRL_H_ */