cpu_sh7720.h 5.4 KB

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