cpu_sh7723.h 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  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 TMU_BASE 0xFFD80000
  86. /* TPU */
  87. /* CMT */
  88. #define CMSTR 0xA44A0000
  89. #define CMCSR 0xA44A0060
  90. #define CMCNT 0xA44A0064
  91. #define CMCOR 0xA44A0068
  92. /* MSIOF */
  93. /* SCIF */
  94. #define SCIF0_BASE 0xFFE00000
  95. #define SCIF1_BASE 0xFFE10000
  96. #define SCIF2_BASE 0xFFE20000
  97. #define SCIF3_BASE 0xa4e30000
  98. #define SCIF4_BASE 0xa4e40000
  99. #define SCIF5_BASE 0xa4e50000
  100. /* RTC */
  101. /* IrDA */
  102. /* KEYSC */
  103. /* USB */
  104. /* IIC */
  105. /* FLCTL */
  106. /* VPU */
  107. /* VIO(CEU) */
  108. /* VIO(VEU) */
  109. /* VIO(BEU) */
  110. /* 2DG */
  111. /* LCDC */
  112. /* VOU */
  113. /* TSIF */
  114. /* SIU */
  115. /* ATAPI */
  116. /* PFC */
  117. #define PACR 0xA4050100
  118. #define PBCR 0xA4050102
  119. #define PCCR 0xA4050104
  120. #define PDCR 0xA4050106
  121. #define PECR 0xA4050108
  122. #define PFCR 0xA405010A
  123. #define PGCR 0xA405010C
  124. #define PHCR 0xA405010E
  125. #define PJCR 0xA4050110
  126. #define PKCR 0xA4050112
  127. #define PLCR 0xA4050114
  128. #define PMCR 0xA4050116
  129. #define PNCR 0xA4050118
  130. #define PQCR 0xA405011A
  131. #define PRCR 0xA405011C
  132. #define PSCR 0xA405011E
  133. #define PTCR 0xA4050140
  134. #define PUCR 0xA4050142
  135. #define PVCR 0xA4050144
  136. #define PWCR 0xA4050146
  137. #define PXCR 0xA4050148
  138. #define PYCR 0xA405014A
  139. #define PZCR 0xA405014C
  140. #define PSELA 0xA405014E
  141. #define PSELB 0xA4050150
  142. #define PSELC 0xA4050152
  143. #define PSELD 0xA4050154
  144. #define HIZCRA 0xA4050158
  145. #define HIZCRB 0xA405015A
  146. #define HIZCRC 0xA405015C
  147. #define HIZCRD 0xA405015E
  148. #define MSELCRA 0xA4050180
  149. #define MSELCRB 0xA4050182
  150. #define PULCR 0xA4050184
  151. #define DRVCRA 0xA405018A
  152. #define DRVCRB 0xA405018C
  153. /* I/O Port */
  154. #define PADR 0xA4050120
  155. #define PBDR 0xA4050122
  156. #define PCDR 0xA4050124
  157. #define PDDR 0xA4050126
  158. #define PEDR 0xA4050128
  159. #define PFDR 0xA405012A
  160. #define PGDR 0xA405012C
  161. #define PHDR 0xA405012E
  162. #define PJDR 0xA4050130
  163. #define PKDR 0xA4050132
  164. #define PLDR 0xA4050134
  165. #define PMDR 0xA4050136
  166. #define PNDR 0xA4050138
  167. #define PQDR 0xA405013A
  168. #define PRDR 0xA405013C
  169. #define PSDR 0xA405013E
  170. #define PTDR 0xA4050160
  171. #define PUDR 0xA4050162
  172. #define PVDR 0xA4050164
  173. #define PWDR 0xA4050166
  174. #define PYDR 0xA4050168
  175. #define PZDR 0xA405016A
  176. /* UBC */
  177. /* H-UDI */
  178. #endif /* _ASM_CPU_SH7723_H_ */