clock_ti81xx.h 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. /*
  2. * ti81xx.h
  3. *
  4. * Copyright (C) 2013, Adeneo Embedded <www.adeneo-embedded.com>
  5. * Antoine Tenart, <atenart@adeneo-embedded.com>
  6. *
  7. * This file is released under the terms of GPL v2 and any later version.
  8. * See the file COPYING in the root directory of the source tree for details.
  9. */
  10. #ifndef _CLOCK_TI81XX_H_
  11. #define _CLOCK_TI81XX_H_
  12. #define PRCM_MOD_EN 0x2
  13. #define CM_DEFAULT_BASE (PRCM_BASE + 0x0500)
  14. #define CM_ALWON_BASE (PRCM_BASE + 0x1400)
  15. struct cm_def {
  16. unsigned int resv0[2];
  17. unsigned int l3fastclkstctrl;
  18. unsigned int resv1[1];
  19. unsigned int pciclkstctrl;
  20. unsigned int resv2[1];
  21. unsigned int ducaticlkstctrl;
  22. unsigned int resv3[1];
  23. unsigned int emif0clkctrl;
  24. unsigned int emif1clkctrl;
  25. unsigned int dmmclkctrl;
  26. unsigned int fwclkctrl;
  27. unsigned int resv4[10];
  28. unsigned int usbclkctrl;
  29. unsigned int resv5[1];
  30. unsigned int sataclkctrl;
  31. unsigned int resv6[4];
  32. unsigned int ducaticlkctrl;
  33. unsigned int pciclkctrl;
  34. };
  35. struct cm_alwon {
  36. unsigned int l3slowclkstctrl;
  37. unsigned int ethclkstctrl;
  38. unsigned int l3medclkstctrl;
  39. unsigned int mmu_clkstctrl;
  40. unsigned int mmucfg_clkstctrl;
  41. unsigned int ocmc0clkstctrl;
  42. #if defined(CONFIG_TI814X)
  43. unsigned int vcpclkstctrl;
  44. #elif defined(CONFIG_TI816X)
  45. unsigned int ocmc1clkstctrl;
  46. #endif
  47. unsigned int mpuclkstctrl;
  48. unsigned int sysclk4clkstctrl;
  49. unsigned int sysclk5clkstctrl;
  50. unsigned int sysclk6clkstctrl;
  51. unsigned int rtcclkstctrl;
  52. unsigned int l3fastclkstctrl;
  53. unsigned int resv0[67];
  54. unsigned int mcasp0clkctrl;
  55. unsigned int mcasp1clkctrl;
  56. unsigned int mcasp2clkctrl;
  57. unsigned int mcbspclkctrl;
  58. unsigned int uart0clkctrl;
  59. unsigned int uart1clkctrl;
  60. unsigned int uart2clkctrl;
  61. unsigned int gpio0clkctrl;
  62. unsigned int gpio1clkctrl;
  63. unsigned int i2c0clkctrl;
  64. unsigned int i2c1clkctrl;
  65. #if defined(CONFIG_TI814X)
  66. unsigned int mcasp345clkctrl;
  67. unsigned int atlclkctrl;
  68. unsigned int mlbclkctrl;
  69. unsigned int pataclkctrl;
  70. unsigned int resv1[1];
  71. unsigned int uart3clkctrl;
  72. unsigned int uart4clkctrl;
  73. unsigned int uart5clkctrl;
  74. #elif defined(CONFIG_TI816X)
  75. unsigned int resv1[1];
  76. unsigned int timer1clkctrl;
  77. unsigned int timer2clkctrl;
  78. unsigned int timer3clkctrl;
  79. unsigned int timer4clkctrl;
  80. unsigned int timer5clkctrl;
  81. unsigned int timer6clkctrl;
  82. unsigned int timer7clkctrl;
  83. #endif
  84. unsigned int wdtimerclkctrl;
  85. unsigned int spiclkctrl;
  86. unsigned int mailboxclkctrl;
  87. unsigned int spinboxclkctrl;
  88. unsigned int mmudataclkctrl;
  89. unsigned int resv2[2];
  90. unsigned int mmucfgclkctrl;
  91. #if defined(CONFIG_TI814X)
  92. unsigned int resv3[2];
  93. #elif defined(CONFIG_TI816X)
  94. unsigned int resv3[1];
  95. unsigned int sdioclkctrl;
  96. #endif
  97. unsigned int ocmc0clkctrl;
  98. #if defined(CONFIG_TI814X)
  99. unsigned int vcpclkctrl;
  100. #elif defined(CONFIG_TI816X)
  101. unsigned int ocmc1clkctrl;
  102. #endif
  103. unsigned int resv4[2];
  104. unsigned int controlclkctrl;
  105. unsigned int resv5[2];
  106. unsigned int gpmcclkctrl;
  107. unsigned int ethernet0clkctrl;
  108. unsigned int ethernet1clkctrl;
  109. unsigned int mpuclkctrl;
  110. #if defined(CONFIG_TI814X)
  111. unsigned int debugssclkctrl;
  112. #elif defined(CONFIG_TI816X)
  113. unsigned int resv6[1];
  114. #endif
  115. unsigned int l3clkctrl;
  116. unsigned int l4hsclkctrl;
  117. unsigned int l4lsclkctrl;
  118. unsigned int rtcclkctrl;
  119. unsigned int tpccclkctrl;
  120. unsigned int tptc0clkctrl;
  121. unsigned int tptc1clkctrl;
  122. unsigned int tptc2clkctrl;
  123. unsigned int tptc3clkctrl;
  124. #if defined(CONFIG_TI814X)
  125. unsigned int resv6[4];
  126. unsigned int dcan01clkctrl;
  127. unsigned int mmchs0clkctrl;
  128. unsigned int mmchs1clkctrl;
  129. unsigned int mmchs2clkctrl;
  130. unsigned int custefuseclkctrl;
  131. #elif defined(CONFIG_TI816X)
  132. unsigned int sr0clkctrl;
  133. unsigned int sr1clkctrl;
  134. #endif
  135. };
  136. #endif /* _CLOCK_TI81XX_H_ */