cpu_sh7720.h 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Copyright 2007 (C)
  4. * Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com>
  5. *
  6. * Copyright 2008 (C)
  7. * Mark Jonas <mark.jonas@de.bosch.com>
  8. *
  9. * SH7720 Internal I/O register
  10. */
  11. #ifndef _ASM_CPU_SH7720_H_
  12. #define _ASM_CPU_SH7720_H_
  13. #define CACHE_OC_NUM_WAYS 4
  14. #define CCR_CACHE_INIT 0x0000000B
  15. /* EXP */
  16. #define TRA 0xFFFFFFD0
  17. #define EXPEVT 0xFFFFFFD4
  18. #define INTEVT 0xFFFFFFD8
  19. /* MMU */
  20. #define MMUCR 0xFFFFFFE0
  21. #define PTEH 0xFFFFFFF0
  22. #define PTEL 0xFFFFFFF4
  23. #define TTB 0xFFFFFFF8
  24. /* CACHE */
  25. #define CCR 0xFFFFFFEC
  26. /* INTC */
  27. #define IPRF 0xA4080000
  28. #define IPRG 0xA4080002
  29. #define IPRH 0xA4080004
  30. #define IPRI 0xA4080006
  31. #define IPRJ 0xA4080008
  32. #define IRR5 0xA4080020
  33. #define IRR6 0xA4080022
  34. #define IRR7 0xA4080024
  35. #define IRR8 0xA4080026
  36. #define IRR9 0xA4080028
  37. #define IRR0 0xA4140004
  38. #define IRR1 0xA4140006
  39. #define IRR2 0xA4140008
  40. #define IRR3 0xA414000A
  41. #define IRR4 0xA414000C
  42. #define ICR1 0xA4140010
  43. #define ICR2 0xA4140012
  44. #define PINTER 0xA4140014
  45. #define IPRC 0xA4140016
  46. #define IPRD 0xA4140018
  47. #define IPRE 0xA414001A
  48. #define ICR0 0xA414FEE0
  49. #define IPRA 0xA414FEE2
  50. #define IPRB 0xA414FEE4
  51. /* BSC */
  52. #define BSC_BASE 0xA4FD0000
  53. #define CMNCR (BSC_BASE + 0x00)
  54. #define CS0BCR (BSC_BASE + 0x04)
  55. #define CS2BCR (BSC_BASE + 0x08)
  56. #define CS3BCR (BSC_BASE + 0x0C)
  57. #define CS4BCR (BSC_BASE + 0x10)
  58. #define CS5ABCR (BSC_BASE + 0x14)
  59. #define CS5BBCR (BSC_BASE + 0x18)
  60. #define CS6ABCR (BSC_BASE + 0x1C)
  61. #define CS6BBCR (BSC_BASE + 0x20)
  62. #define CS0WCR (BSC_BASE + 0x24)
  63. #define CS2WCR (BSC_BASE + 0x28)
  64. #define CS3WCR (BSC_BASE + 0x2C)
  65. #define CS4WCR (BSC_BASE + 0x30)
  66. #define CS5AWCR (BSC_BASE + 0x34)
  67. #define CS5BWCR (BSC_BASE + 0x38)
  68. #define CS6AWCR (BSC_BASE + 0x3C)
  69. #define CS6BWCR (BSC_BASE + 0x40)
  70. #define SDCR (BSC_BASE + 0x44)
  71. #define RTCSR (BSC_BASE + 0x48)
  72. #define RTCNR (BSC_BASE + 0x4C)
  73. #define RTCOR (BSC_BASE + 0x50)
  74. #define SDMR2 (BSC_BASE + 0x4000)
  75. #define SDMR3 (BSC_BASE + 0x5000)
  76. /* DMAC */
  77. /* CPG */
  78. #define UCLKCR 0xA40A0008
  79. #define FRQCR 0xA415FF80
  80. /* LOW POWER MODE */
  81. /* TMU */
  82. #define TMU_BASE 0xA412FE90
  83. /* TPU */
  84. #define TPU_BASE 0xA4480000
  85. #define TPU_TSTR (TPU_BASE + 0x00)
  86. #define TPU_TCR0 (TPU_BASE + 0x10)
  87. #define TPU_TMDR0 (TPU_BASE + 0x14)
  88. #define TPU_TIOR0 (TPU_BASE + 0x18)
  89. #define TPU_TIER0 (TPU_BASE + 0x1C)
  90. #define TPU_TSR0 (TPU_BASE + 0x20)
  91. #define TPU_TCNT0 (TPU_BASE + 0x24)
  92. #define TPU_TGRA0 (TPU_BASE + 0x28)
  93. #define TPU_TGRB0 (TPU_BASE + 0x2C)
  94. #define TPU_TGRC0 (TPU_BASE + 0x30)
  95. #define TPU_TGRD0 (TPU_BASE + 0x34)
  96. #define TPU_TCR1 (TPU_BASE + 0x50)
  97. #define TPU_TMDR1 (TPU_BASE + 0x54)
  98. #define TPU_TIOR1 (TPU_BASE + 0x58)
  99. #define TPU_TIER1 (TPU_BASE + 0x5C)
  100. #define TPU_TSR1 (TPU_BASE + 0x60)
  101. #define TPU_TCNT1 (TPU_BASE + 0x64)
  102. #define TPU_TGRA1 (TPU_BASE + 0x68)
  103. #define TPU_TGRB1 (TPU_BASE + 0x6C)
  104. #define TPU_TGRC1 (TPU_BASE + 0x70)
  105. #define TPU_TGRD1 (TPU_BASE + 0x74)
  106. #define TPU_TCR2 (TPU_BASE + 0x90)
  107. #define TPU_TMDR2 (TPU_BASE + 0x94)
  108. #define TPU_TIOR2 (TPU_BASE + 0x98)
  109. #define TPU_TIER2 (TPU_BASE + 0x9C)
  110. #define TPU_TSR2 (TPU_BASE + 0xB0)
  111. #define TPU_TCNT2 (TPU_BASE + 0xB4)
  112. #define TPU_TGRA2 (TPU_BASE + 0xB8)
  113. #define TPU_TGRB2 (TPU_BASE + 0xBC)
  114. #define TPU_TGRC2 (TPU_BASE + 0xC0)
  115. #define TPU_TGRD2 (TPU_BASE + 0xC4)
  116. #define TPU_TCR3 (TPU_BASE + 0xD0)
  117. #define TPU_TMDR3 (TPU_BASE + 0xD4)
  118. #define TPU_TIOR3 (TPU_BASE + 0xD8)
  119. #define TPU_TIER3 (TPU_BASE + 0xDC)
  120. #define TPU_TSR3 (TPU_BASE + 0xE0)
  121. #define TPU_TCNT3 (TPU_BASE + 0xE4)
  122. #define TPU_TGRA3 (TPU_BASE + 0xE8)
  123. #define TPU_TGRB3 (TPU_BASE + 0xEC)
  124. #define TPU_TGRC3 (TPU_BASE + 0xF0)
  125. #define TPU_TGRD3 (TPU_BASE + 0xF4)
  126. /* CMT */
  127. /* SIOF */
  128. /* SCIF */
  129. #define SCIF0_BASE 0xA4430000
  130. /* SIM */
  131. /* IrDA */
  132. /* IIC */
  133. /* LCDC */
  134. /* USBF */
  135. /* MMCIF */
  136. /* PFC */
  137. #define PFC_BASE 0xA4050100
  138. #define PACR (PFC_BASE + 0x00)
  139. #define PBCR (PFC_BASE + 0x02)
  140. #define PCCR (PFC_BASE + 0x04)
  141. #define PDCR (PFC_BASE + 0x06)
  142. #define PECR (PFC_BASE + 0x08)
  143. #define PFCR (PFC_BASE + 0x0A)
  144. #define PGCR (PFC_BASE + 0x0C)
  145. #define PHCR (PFC_BASE + 0x0E)
  146. #define PJCR (PFC_BASE + 0x10)
  147. #define PKCR (PFC_BASE + 0x12)
  148. #define PLCR (PFC_BASE + 0x14)
  149. #define PMCR (PFC_BASE + 0x16)
  150. #define PPCR (PFC_BASE + 0x18)
  151. #define PRCR (PFC_BASE + 0x1A)
  152. #define PSCR (PFC_BASE + 0x1C)
  153. #define PTCR (PFC_BASE + 0x1E)
  154. #define PUCR (PFC_BASE + 0x20)
  155. #define PVCR (PFC_BASE + 0x22)
  156. #define PSELA (PFC_BASE + 0x24)
  157. #define PSELB (PFC_BASE + 0x26)
  158. #define PSELC (PFC_BASE + 0x28)
  159. #define PSELD (PFC_BASE + 0x2A)
  160. /* I/O Port */
  161. #define PORT_BASE 0xA4050100
  162. #define PADR (PORT_BASE + 0x40)
  163. #define PBDR (PORT_BASE + 0x42)
  164. #define PCDR (PORT_BASE + 0x44)
  165. #define PDDR (PORT_BASE + 0x46)
  166. #define PEDR (PORT_BASE + 0x48)
  167. #define PFDR (PORT_BASE + 0x4A)
  168. #define PGDR (PORT_BASE + 0x4C)
  169. #define PHDR (PORT_BASE + 0x4E)
  170. #define PJDR (PORT_BASE + 0x50)
  171. #define PKDR (PORT_BASE + 0x52)
  172. #define PLDR (PORT_BASE + 0x54)
  173. #define PMDR (PORT_BASE + 0x56)
  174. #define PPDR (PORT_BASE + 0x58)
  175. #define PRDR (PORT_BASE + 0x5A)
  176. #define PSDR (PORT_BASE + 0x5C)
  177. #define PTDR (PORT_BASE + 0x5E)
  178. #define PUDR (PORT_BASE + 0x60)
  179. #define PVDR (PORT_BASE + 0x62)
  180. /* H-UDI */
  181. #endif /* _ASM_CPU_SH7720_H_ */