cpu_sh7723.h 4.1 KB

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