cpu_sh7724.h 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. /*
  2. * (C) Copyright 2008, 2011 Renesas Solutions Corp.
  3. *
  4. * SH7724 Internal I/O register
  5. *
  6. * SPDX-License-Identifier: GPL-2.0+
  7. */
  8. #ifndef _ASM_CPU_SH7724_H_
  9. #define _ASM_CPU_SH7724_H_
  10. #define CACHE_OC_NUM_WAYS 4
  11. #define CCR_CACHE_INIT 0x0000090d
  12. /* EXP */
  13. #define TRA 0xFF000020
  14. #define EXPEVT 0xFF000024
  15. #define INTEVT 0xFF000028
  16. /* MMU */
  17. #define PTEH 0xFF000000
  18. #define PTEL 0xFF000004
  19. #define TTB 0xFF000008
  20. #define TEA 0xFF00000C
  21. #define MMUCR 0xFF000010
  22. #define PASCR 0xFF000070
  23. #define IRMCR 0xFF000078
  24. /* CACHE */
  25. #define CCR 0xFF00001C
  26. #define RAMCR 0xFF000074
  27. /* INTC */
  28. /* BSC */
  29. #define MMSELR 0xFF800020
  30. #define CMNCR 0xFEC10000
  31. #define CS0BCR 0xFEC10004
  32. #define CS2BCR 0xFEC10008
  33. #define CS4BCR 0xFEC10010
  34. #define CS5ABCR 0xFEC10014
  35. #define CS5BBCR 0xFEC10018
  36. #define CS6ABCR 0xFEC1001C
  37. #define CS6BBCR 0xFEC10020
  38. #define CS0WCR 0xFEC10024
  39. #define CS2WCR 0xFEC10028
  40. #define CS4WCR 0xFEC10030
  41. #define CS5AWCR 0xFEC10034
  42. #define CS5BWCR 0xFEC10038
  43. #define CS6AWCR 0xFEC1003C
  44. #define CS6BWCR 0xFEC10040
  45. #define RBWTCNT 0xFEC10054
  46. /* SBSC */
  47. #define SBSC_SDCR 0xFE400008
  48. #define SBSC_SDWCR 0xFE40000C
  49. #define SBSC_SDPCR 0xFE400010
  50. #define SBSC_RTCSR 0xFE400014
  51. #define SBSC_RTCNT 0xFE400018
  52. #define SBSC_RTCOR 0xFE40001C
  53. #define SBSC_RFCR 0xFE400020
  54. /* DSBC */
  55. #define DBKIND 0xFD000008
  56. #define DBSTATE 0xFD00000C
  57. #define DBEN 0xFD000010
  58. #define DBCMDCNT 0xFD000014
  59. #define DBCKECNT 0xFD000018
  60. #define DBCONF 0xFD000020
  61. #define DBTR0 0xFD000030
  62. #define DBTR1 0xFD000034
  63. #define DBTR2 0xFD000038
  64. #define DBTR3 0xFD00003C
  65. #define DBRFPDN0 0xFD000040
  66. #define DBRFPDN1 0xFD000044
  67. #define DBRFPDN2 0xFD000048
  68. #define DBRFSTS 0xFD00004C
  69. #define DBMRCNT 0xFD000060
  70. #define DBPDCNT0 0xFD000108
  71. /* DMAC */
  72. /* CPG */
  73. #define FRQCRA 0xA4150000
  74. #define FRQCRB 0xA4150004
  75. #define FRQCR FRQCRA
  76. #define VCLKCR 0xA4150004
  77. #define SCLKACR 0xA4150008
  78. #define SCLKBCR 0xA415000C
  79. #define IRDACLKCR 0xA4150018
  80. #define PLLCR 0xA4150024
  81. #define DLLFRQ 0xA4150050
  82. /* LOW POWER MODE */
  83. #define STBCR 0xA4150020
  84. #define MSTPCR0 0xA4150030
  85. #define MSTPCR1 0xA4150034
  86. #define MSTPCR2 0xA4150038
  87. /* RWDT */
  88. #define RWTCNT 0xA4520000
  89. #define RWTCSR 0xA4520004
  90. #define WTCNT RWTCNT
  91. /* TMU */
  92. #define TMU_BASE 0xFFD80000
  93. /* TPU */
  94. /* CMT */
  95. #define CMSTR 0xA44A0000
  96. #define CMCSR 0xA44A0060
  97. #define CMCNT 0xA44A0064
  98. #define CMCOR 0xA44A0068
  99. /* MSIOF */
  100. /* SCIF */
  101. #define SCIF0_BASE 0xFFE00000
  102. #define SCIF1_BASE 0xFFE10000
  103. #define SCIF2_BASE 0xFFE20000
  104. #define SCIF3_BASE 0xa4e30000
  105. #define SCIF4_BASE 0xa4e40000
  106. #define SCIF5_BASE 0xa4e50000
  107. /* RTC */
  108. /* IrDA */
  109. /* KEYSC */
  110. /* USB */
  111. /* IIC */
  112. /* FLCTL */
  113. /* VPU */
  114. /* VIO(CEU) */
  115. /* VIO(VEU) */
  116. /* VIO(BEU) */
  117. /* 2DG */
  118. /* LCDC */
  119. /* VOU */
  120. /* TSIF */
  121. /* SIU */
  122. /* ATAPI */
  123. /* PFC */
  124. #define PACR 0xA4050100
  125. #define PBCR 0xA4050102
  126. #define PCCR 0xA4050104
  127. #define PDCR 0xA4050106
  128. #define PECR 0xA4050108
  129. #define PFCR 0xA405010A
  130. #define PGCR 0xA405010C
  131. #define PHCR 0xA405010E
  132. #define PJCR 0xA4050110
  133. #define PKCR 0xA4050112
  134. #define PLCR 0xA4050114
  135. #define PMCR 0xA4050116
  136. #define PNCR 0xA4050118
  137. #define PQCR 0xA405011A
  138. #define PRCR 0xA405011C
  139. #define PSCR 0xA405011E
  140. #define PTCR 0xA4050140
  141. #define PUCR 0xA4050142
  142. #define PVCR 0xA4050144
  143. #define PWCR 0xA4050146
  144. #define PXCR 0xA4050148
  145. #define PYCR 0xA405014A
  146. #define PZCR 0xA405014C
  147. #define PSELA 0xA405014E
  148. #define PSELB 0xA4050150
  149. #define PSELC 0xA4050152
  150. #define PSELD 0xA4050154
  151. #define PSELE 0xA4050156
  152. #define HIZCRA 0xA4050158
  153. #define HIZCRB 0xA405015A
  154. #define HIZCRC 0xA405015C
  155. #define HIZCRD 0xA405015E
  156. #define MSELCRA 0xA4050180
  157. #define MSELCRB 0xA4050182
  158. #define PULCR 0xA4050184
  159. #define DRVCRA 0xA405018A
  160. #define DRVCRB 0xA405018C
  161. /* I/O Port */
  162. #define PADR 0xA4050120
  163. #define PBDR 0xA4050122
  164. #define PCDR 0xA4050124
  165. #define PDDR 0xA4050126
  166. #define PEDR 0xA4050128
  167. #define PFDR 0xA405012A
  168. #define PGDR 0xA405012C
  169. #define PHDR 0xA405012E
  170. #define PJDR 0xA4050130
  171. #define PKDR 0xA4050132
  172. #define PLDR 0xA4050134
  173. #define PMDR 0xA4050136
  174. #define PNDR 0xA4050138
  175. #define PQDR 0xA405013A
  176. #define PRDR 0xA405013C
  177. #define PSDR 0xA405013E
  178. #define PTDR 0xA4050160
  179. #define PUDR 0xA4050162
  180. #define PVDR 0xA4050164
  181. #define PWDR 0xA4050166
  182. #define PXDR 0xA4050168
  183. #define PYDR 0xA405016A
  184. #define PZDR 0xA405016C
  185. /* Ether */
  186. #define EDMR 0xA4600000
  187. /* UBC */
  188. /* H-UDI */
  189. #endif /* _ASM_CPU_SH7724_H_ */