cpu_sh7724.h 4.7 KB

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