cpu_sh7720.h 6.1 KB

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