cpu_sh7723.h 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. /*
  2. * (C) Copyright 2008 Renesas Solutions Corp.
  3. *
  4. * SH7723 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_SH7723_H_
  22. #define _ASM_CPU_SH7723_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 CMNCR 0xFEC10000
  43. #define CS0BCR 0xFEC10004
  44. #define CS2BCR 0xFEC10008
  45. #define CS4BCR 0xFEC10010
  46. #define CS5ABCR 0xFEC10014
  47. #define CS5BBCR 0xFEC10018
  48. #define CS6ABCR 0xFEC1001C
  49. #define CS6BBCR 0xFEC10020
  50. #define CS0WCR 0xFEC10024
  51. #define CS2WCR 0xFEC10028
  52. #define CS4WCR 0xFEC10030
  53. #define CS5AWCR 0xFEC10034
  54. #define CS5BWCR 0xFEC10038
  55. #define CS6AWCR 0xFEC1003C
  56. #define CS6BWCR 0xFEC10040
  57. #define RBWTCNT 0xFEC10054
  58. /* SBSC */
  59. #define SBSC_SDCR 0xFE400008
  60. #define SBSC_SDWCR 0xFE40000C
  61. #define SBSC_SDPCR 0xFE400010
  62. #define SBSC_RTCSR 0xFE400014
  63. #define SBSC_RTCNT 0xFE400018
  64. #define SBSC_RTCOR 0xFE40001C
  65. #define SBSC_RFCR 0xFE400020
  66. /* DMAC */
  67. /* CPG */
  68. #define FRQCR 0xA4150000
  69. #define VCLKCR 0xA4150004
  70. #define SCLKACR 0xA4150008
  71. #define SCLKBCR 0xA415000C
  72. #define IRDACLKCR 0xA4150018
  73. #define PLLCR 0xA4150024
  74. #define DLLFRQ 0xA4150050
  75. /* LOW POWER MODE */
  76. #define STBCR 0xA4150020
  77. #define MSTPCR0 0xA4150030
  78. #define MSTPCR1 0xA4150034
  79. #define MSTPCR2 0xA4150038
  80. /* RWDT */
  81. #define RWTCNT 0xA4520000
  82. #define RWTCSR 0xA4520004
  83. #define WTCNT RWTCNT
  84. /* TMU */
  85. #define TSTR 0xFFD80004
  86. #define TCOR0 0xFFD80008
  87. #define TCNT0 0xFFD8000C
  88. #define TCR0 0xFFD80010
  89. #define TCOR1 0xFFD80014
  90. #define TCNT1 0xFFD80018
  91. #define TCR1 0xFFD8001C
  92. #define TCOR2 0xFFD80020
  93. #define TCNT2 0xFFD80024
  94. #define TCR2 0xFFD80028
  95. /* TPU */
  96. /* CMT */
  97. #define CMSTR 0xA44A0000
  98. #define CMCSR 0xA44A0060
  99. #define CMCNT 0xA44A0064
  100. #define CMCOR 0xA44A0068
  101. /* MSIOF */
  102. /* SCIF */
  103. #define SCIF0_BASE 0xFFE00000
  104. #define SCIF1_BASE 0xFFE10000
  105. #define SCIF2_BASE 0xFFE20000
  106. #define SCIF3_BASE 0xa4e30000
  107. #define SCIF4_BASE 0xa4e40000
  108. #define SCIF5_BASE 0xa4e50000
  109. /* RTC */
  110. /* IrDA */
  111. /* KEYSC */
  112. /* USB */
  113. /* IIC */
  114. /* FLCTL */
  115. /* VPU */
  116. /* VIO(CEU) */
  117. /* VIO(VEU) */
  118. /* VIO(BEU) */
  119. /* 2DG */
  120. /* LCDC */
  121. /* VOU */
  122. /* TSIF */
  123. /* SIU */
  124. /* ATAPI */
  125. /* PFC */
  126. #define PACR 0xA4050100
  127. #define PBCR 0xA4050102
  128. #define PCCR 0xA4050104
  129. #define PDCR 0xA4050106
  130. #define PECR 0xA4050108
  131. #define PFCR 0xA405010A
  132. #define PGCR 0xA405010C
  133. #define PHCR 0xA405010E
  134. #define PJCR 0xA4050110
  135. #define PKCR 0xA4050112
  136. #define PLCR 0xA4050114
  137. #define PMCR 0xA4050116
  138. #define PNCR 0xA4050118
  139. #define PQCR 0xA405011A
  140. #define PRCR 0xA405011C
  141. #define PSCR 0xA405011E
  142. #define PTCR 0xA4050140
  143. #define PUCR 0xA4050142
  144. #define PVCR 0xA4050144
  145. #define PWCR 0xA4050146
  146. #define PXCR 0xA4050148
  147. #define PYCR 0xA405014A
  148. #define PZCR 0xA405014C
  149. #define PSELA 0xA405014E
  150. #define PSELB 0xA4050150
  151. #define PSELC 0xA4050152
  152. #define PSELD 0xA4050154
  153. #define HIZCRA 0xA4050158
  154. #define HIZCRB 0xA405015A
  155. #define HIZCRC 0xA405015C
  156. #define HIZCRD 0xA405015E
  157. #define MSELCRA 0xA4050180
  158. #define MSELCRB 0xA4050182
  159. #define PULCR 0xA4050184
  160. #define DRVCRA 0xA405018A
  161. #define DRVCRB 0xA405018C
  162. /* I/O Port */
  163. #define PADR 0xA4050120
  164. #define PBDR 0xA4050122
  165. #define PCDR 0xA4050124
  166. #define PDDR 0xA4050126
  167. #define PEDR 0xA4050128
  168. #define PFDR 0xA405012A
  169. #define PGDR 0xA405012C
  170. #define PHDR 0xA405012E
  171. #define PJDR 0xA4050130
  172. #define PKDR 0xA4050132
  173. #define PLDR 0xA4050134
  174. #define PMDR 0xA4050136
  175. #define PNDR 0xA4050138
  176. #define PQDR 0xA405013A
  177. #define PRDR 0xA405013C
  178. #define PSDR 0xA405013E
  179. #define PTDR 0xA4050160
  180. #define PUDR 0xA4050162
  181. #define PVDR 0xA4050164
  182. #define PWDR 0xA4050166
  183. #define PYDR 0xA4050168
  184. #define PZDR 0xA405016A
  185. /* UBC */
  186. /* H-UDI */
  187. #endif /* _ASM_CPU_SH7723_H_ */