cpu_sh7724.h 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. /*
  2. * (C) Copyright 2008, 2011 Renesas Solutions Corp.
  3. *
  4. * SH7724 Internal I/O register
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU General Public License as
  8. * published by the Free Software Foundation; either version 2 of
  9. * the License, or (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program; if not, write to the Free Software
  18. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  19. * MA 02111-1307 USA
  20. */
  21. #ifndef _ASM_CPU_SH7724_H_
  22. #define _ASM_CPU_SH7724_H_
  23. #define CACHE_OC_NUM_WAYS 4
  24. #define CCR_CACHE_INIT 0x0000090d
  25. /* EXP */
  26. #define TRA 0xFF000020
  27. #define EXPEVT 0xFF000024
  28. #define INTEVT 0xFF000028
  29. /* MMU */
  30. #define PTEH 0xFF000000
  31. #define PTEL 0xFF000004
  32. #define TTB 0xFF000008
  33. #define TEA 0xFF00000C
  34. #define MMUCR 0xFF000010
  35. #define PASCR 0xFF000070
  36. #define IRMCR 0xFF000078
  37. /* CACHE */
  38. #define CCR 0xFF00001C
  39. #define RAMCR 0xFF000074
  40. /* INTC */
  41. /* BSC */
  42. #define MMSELR 0xFF800020
  43. #define CMNCR 0xFEC10000
  44. #define CS0BCR 0xFEC10004
  45. #define CS2BCR 0xFEC10008
  46. #define CS4BCR 0xFEC10010
  47. #define CS5ABCR 0xFEC10014
  48. #define CS5BBCR 0xFEC10018
  49. #define CS6ABCR 0xFEC1001C
  50. #define CS6BBCR 0xFEC10020
  51. #define CS0WCR 0xFEC10024
  52. #define CS2WCR 0xFEC10028
  53. #define CS4WCR 0xFEC10030
  54. #define CS5AWCR 0xFEC10034
  55. #define CS5BWCR 0xFEC10038
  56. #define CS6AWCR 0xFEC1003C
  57. #define CS6BWCR 0xFEC10040
  58. #define RBWTCNT 0xFEC10054
  59. /* SBSC */
  60. #define SBSC_SDCR 0xFE400008
  61. #define SBSC_SDWCR 0xFE40000C
  62. #define SBSC_SDPCR 0xFE400010
  63. #define SBSC_RTCSR 0xFE400014
  64. #define SBSC_RTCNT 0xFE400018
  65. #define SBSC_RTCOR 0xFE40001C
  66. #define SBSC_RFCR 0xFE400020
  67. /* DSBC */
  68. #define DBKIND 0xFD000008
  69. #define DBSTATE 0xFD00000C
  70. #define DBEN 0xFD000010
  71. #define DBCMDCNT 0xFD000014
  72. #define DBCKECNT 0xFD000018
  73. #define DBCONF 0xFD000020
  74. #define DBTR0 0xFD000030
  75. #define DBTR1 0xFD000034
  76. #define DBTR2 0xFD000038
  77. #define DBTR3 0xFD00003C
  78. #define DBRFPDN0 0xFD000040
  79. #define DBRFPDN1 0xFD000044
  80. #define DBRFPDN2 0xFD000048
  81. #define DBRFSTS 0xFD00004C
  82. #define DBMRCNT 0xFD000060
  83. #define DBPDCNT0 0xFD000108
  84. /* DMAC */
  85. /* CPG */
  86. #define FRQCRA 0xA4150000
  87. #define FRQCRB 0xA4150004
  88. #define FRQCR FRQCRA
  89. #define VCLKCR 0xA4150004
  90. #define SCLKACR 0xA4150008
  91. #define SCLKBCR 0xA415000C
  92. #define IRDACLKCR 0xA4150018
  93. #define PLLCR 0xA4150024
  94. #define DLLFRQ 0xA4150050
  95. /* LOW POWER MODE */
  96. #define STBCR 0xA4150020
  97. #define MSTPCR0 0xA4150030
  98. #define MSTPCR1 0xA4150034
  99. #define MSTPCR2 0xA4150038
  100. /* RWDT */
  101. #define RWTCNT 0xA4520000
  102. #define RWTCSR 0xA4520004
  103. #define WTCNT RWTCNT
  104. /* TMU */
  105. #define TSTR 0xFFD80004
  106. #define TCOR0 0xFFD80008
  107. #define TCNT0 0xFFD8000C
  108. #define TCR0 0xFFD80010
  109. #define TCOR1 0xFFD80014
  110. #define TCNT1 0xFFD80018
  111. #define TCR1 0xFFD8001C
  112. #define TCOR2 0xFFD80020
  113. #define TCNT2 0xFFD80024
  114. #define TCR2 0xFFD80028
  115. /* TPU */
  116. /* CMT */
  117. #define CMSTR 0xA44A0000
  118. #define CMCSR 0xA44A0060
  119. #define CMCNT 0xA44A0064
  120. #define CMCOR 0xA44A0068
  121. /* MSIOF */
  122. /* SCIF */
  123. #define SCIF0_BASE 0xFFE00000
  124. #define SCIF1_BASE 0xFFE10000
  125. #define SCIF2_BASE 0xFFE20000
  126. #define SCIF3_BASE 0xa4e30000
  127. #define SCIF4_BASE 0xa4e40000
  128. #define SCIF5_BASE 0xa4e50000
  129. /* RTC */
  130. /* IrDA */
  131. /* KEYSC */
  132. /* USB */
  133. /* IIC */
  134. /* FLCTL */
  135. /* VPU */
  136. /* VIO(CEU) */
  137. /* VIO(VEU) */
  138. /* VIO(BEU) */
  139. /* 2DG */
  140. /* LCDC */
  141. /* VOU */
  142. /* TSIF */
  143. /* SIU */
  144. /* ATAPI */
  145. /* PFC */
  146. #define PACR 0xA4050100
  147. #define PBCR 0xA4050102
  148. #define PCCR 0xA4050104
  149. #define PDCR 0xA4050106
  150. #define PECR 0xA4050108
  151. #define PFCR 0xA405010A
  152. #define PGCR 0xA405010C
  153. #define PHCR 0xA405010E
  154. #define PJCR 0xA4050110
  155. #define PKCR 0xA4050112
  156. #define PLCR 0xA4050114
  157. #define PMCR 0xA4050116
  158. #define PNCR 0xA4050118
  159. #define PQCR 0xA405011A
  160. #define PRCR 0xA405011C
  161. #define PSCR 0xA405011E
  162. #define PTCR 0xA4050140
  163. #define PUCR 0xA4050142
  164. #define PVCR 0xA4050144
  165. #define PWCR 0xA4050146
  166. #define PXCR 0xA4050148
  167. #define PYCR 0xA405014A
  168. #define PZCR 0xA405014C
  169. #define PSELA 0xA405014E
  170. #define PSELB 0xA4050150
  171. #define PSELC 0xA4050152
  172. #define PSELD 0xA4050154
  173. #define PSELE 0xA4050156
  174. #define HIZCRA 0xA4050158
  175. #define HIZCRB 0xA405015A
  176. #define HIZCRC 0xA405015C
  177. #define HIZCRD 0xA405015E
  178. #define MSELCRA 0xA4050180
  179. #define MSELCRB 0xA4050182
  180. #define PULCR 0xA4050184
  181. #define DRVCRA 0xA405018A
  182. #define DRVCRB 0xA405018C
  183. /* I/O Port */
  184. #define PADR 0xA4050120
  185. #define PBDR 0xA4050122
  186. #define PCDR 0xA4050124
  187. #define PDDR 0xA4050126
  188. #define PEDR 0xA4050128
  189. #define PFDR 0xA405012A
  190. #define PGDR 0xA405012C
  191. #define PHDR 0xA405012E
  192. #define PJDR 0xA4050130
  193. #define PKDR 0xA4050132
  194. #define PLDR 0xA4050134
  195. #define PMDR 0xA4050136
  196. #define PNDR 0xA4050138
  197. #define PQDR 0xA405013A
  198. #define PRDR 0xA405013C
  199. #define PSDR 0xA405013E
  200. #define PTDR 0xA4050160
  201. #define PUDR 0xA4050162
  202. #define PVDR 0xA4050164
  203. #define PWDR 0xA4050166
  204. #define PYDR 0xA4050168
  205. #define PZDR 0xA405016A
  206. /* Ether */
  207. #define EDMR 0xA4600000
  208. /* UBC */
  209. /* H-UDI */
  210. #endif /* _ASM_CPU_SH7724_H_ */