cpu_sh7723.h 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. /*
  2. * (C) Copyright 2008 Renesas Solutions Corp.
  3. *
  4. * SH7723 Internal I/O register
  5. *
  6. * SPDX-License-Identifier: GPL-2.0+
  7. */
  8. #ifndef _ASM_CPU_SH7723_H_
  9. #define _ASM_CPU_SH7723_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 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. /* DMAC */
  54. /* CPG */
  55. #define FRQCR 0xA4150000
  56. #define VCLKCR 0xA4150004
  57. #define SCLKACR 0xA4150008
  58. #define SCLKBCR 0xA415000C
  59. #define IRDACLKCR 0xA4150018
  60. #define PLLCR 0xA4150024
  61. #define DLLFRQ 0xA4150050
  62. /* LOW POWER MODE */
  63. #define STBCR 0xA4150020
  64. #define MSTPCR0 0xA4150030
  65. #define MSTPCR1 0xA4150034
  66. #define MSTPCR2 0xA4150038
  67. /* RWDT */
  68. #define RWTCNT 0xA4520000
  69. #define RWTCSR 0xA4520004
  70. #define WTCNT RWTCNT
  71. /* TMU */
  72. #define TMU_BASE 0xFFD80000
  73. /* TPU */
  74. /* CMT */
  75. #define CMSTR 0xA44A0000
  76. #define CMCSR 0xA44A0060
  77. #define CMCNT 0xA44A0064
  78. #define CMCOR 0xA44A0068
  79. /* MSIOF */
  80. /* SCIF */
  81. #define SCIF0_BASE 0xFFE00000
  82. #define SCIF1_BASE 0xFFE10000
  83. #define SCIF2_BASE 0xFFE20000
  84. #define SCIF3_BASE 0xa4e30000
  85. #define SCIF4_BASE 0xa4e40000
  86. #define SCIF5_BASE 0xa4e50000
  87. /* RTC */
  88. /* IrDA */
  89. /* KEYSC */
  90. /* USB */
  91. /* IIC */
  92. /* FLCTL */
  93. /* VPU */
  94. /* VIO(CEU) */
  95. /* VIO(VEU) */
  96. /* VIO(BEU) */
  97. /* 2DG */
  98. /* LCDC */
  99. /* VOU */
  100. /* TSIF */
  101. /* SIU */
  102. /* ATAPI */
  103. /* PFC */
  104. #define PACR 0xA4050100
  105. #define PBCR 0xA4050102
  106. #define PCCR 0xA4050104
  107. #define PDCR 0xA4050106
  108. #define PECR 0xA4050108
  109. #define PFCR 0xA405010A
  110. #define PGCR 0xA405010C
  111. #define PHCR 0xA405010E
  112. #define PJCR 0xA4050110
  113. #define PKCR 0xA4050112
  114. #define PLCR 0xA4050114
  115. #define PMCR 0xA4050116
  116. #define PNCR 0xA4050118
  117. #define PQCR 0xA405011A
  118. #define PRCR 0xA405011C
  119. #define PSCR 0xA405011E
  120. #define PTCR 0xA4050140
  121. #define PUCR 0xA4050142
  122. #define PVCR 0xA4050144
  123. #define PWCR 0xA4050146
  124. #define PXCR 0xA4050148
  125. #define PYCR 0xA405014A
  126. #define PZCR 0xA405014C
  127. #define PSELA 0xA405014E
  128. #define PSELB 0xA4050150
  129. #define PSELC 0xA4050152
  130. #define PSELD 0xA4050154
  131. #define HIZCRA 0xA4050158
  132. #define HIZCRB 0xA405015A
  133. #define HIZCRC 0xA405015C
  134. #define HIZCRD 0xA405015E
  135. #define MSELCRA 0xA4050180
  136. #define MSELCRB 0xA4050182
  137. #define PULCR 0xA4050184
  138. #define DRVCRA 0xA405018A
  139. #define DRVCRB 0xA405018C
  140. /* I/O Port */
  141. #define PADR 0xA4050120
  142. #define PBDR 0xA4050122
  143. #define PCDR 0xA4050124
  144. #define PDDR 0xA4050126
  145. #define PEDR 0xA4050128
  146. #define PFDR 0xA405012A
  147. #define PGDR 0xA405012C
  148. #define PHDR 0xA405012E
  149. #define PJDR 0xA4050130
  150. #define PKDR 0xA4050132
  151. #define PLDR 0xA4050134
  152. #define PMDR 0xA4050136
  153. #define PNDR 0xA4050138
  154. #define PQDR 0xA405013A
  155. #define PRDR 0xA405013C
  156. #define PSDR 0xA405013E
  157. #define PTDR 0xA4050160
  158. #define PUDR 0xA4050162
  159. #define PVDR 0xA4050164
  160. #define PWDR 0xA4050166
  161. #define PXDR 0xA4050168
  162. #define PYDR 0xA405016A
  163. #define PZDR 0xA405016C
  164. /* UBC */
  165. /* H-UDI */
  166. #endif /* _ASM_CPU_SH7723_H_ */