cpu_sh7785.h 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. #ifndef _ASM_CPU_SH7785_H_
  2. #define _ASM_CPU_SH7785_H_
  3. /*
  4. * Copyright (c) 2007,2008 Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
  5. * Copyright (c) 2008 Yusuke Goda <goda.yusuke@renesas.com>
  6. * Copyright (c) 2008 Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com>
  7. *
  8. * This program is free software; you can redistribute it and/or
  9. * modify it under the terms of the GNU General Public License as
  10. * published by the Free Software Foundation; either version 2 of
  11. * the License, or (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program; if not, write to the Free Software
  20. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  21. * MA 02111-1307 USA
  22. *
  23. */
  24. #define CACHE_OC_NUM_WAYS 1
  25. #define CCR_CACHE_INIT 0x0000090b
  26. /* Exceptions */
  27. #define TRA 0xFF000020
  28. #define EXPEVT 0xFF000024
  29. #define INTEVT 0xFF000028
  30. /* Cache Controller */
  31. #define CCR 0xFF00001C
  32. #define QACR0 0xFF000038
  33. #define QACR1 0xFF00003C
  34. #define RAMCR 0xFF000074
  35. /* Watchdog Timer and Reset */
  36. #define WTCNT WDTCNT
  37. #define WDTST 0xFFCC0000
  38. #define WDTCSR 0xFFCC0004
  39. #define WDTBST 0xFFCC0008
  40. #define WDTCNT 0xFFCC0010
  41. #define WDTBCNT 0xFFCC0018
  42. /* Timer Unit */
  43. #define TSTR TSTR0
  44. #define TOCR 0xFFD80000
  45. #define TSTR0 0xFFD80004
  46. #define TCOR0 0xFFD80008
  47. #define TCNT0 0xFFD8000C
  48. #define TCR0 0xFFD80010
  49. #define TCOR1 0xFFD80014
  50. #define TCNT1 0xFFD80018
  51. #define TCR1 0xFFD8001C
  52. #define TCOR2 0xFFD80020
  53. #define TCNT2 0xFFD80024
  54. #define TCR2 0xFFD80028
  55. #define TCPR2 0xFFD8002C
  56. #define TSTR1 0xFFDC0004
  57. #define TCOR3 0xFFDC0008
  58. #define TCNT3 0xFFDC000C
  59. #define TCR3 0xFFDC0010
  60. #define TCOR4 0xFFDC0014
  61. #define TCNT4 0xFFDC0018
  62. #define TCR4 0xFFDC001C
  63. #define TCOR5 0xFFDC0020
  64. #define TCNT5 0xFFDC0024
  65. #define TCR5 0xFFDC0028
  66. /* Serial Communication Interface with FIFO */
  67. #define SCIF1_BASE 0xffeb0000
  68. /* LBSC */
  69. #define MMSELR 0xfc400020
  70. #define LBSC_BASE 0xff800000
  71. #define BCR (LBSC_BASE + 0x1000)
  72. #define CS0BCR (LBSC_BASE + 0x2000)
  73. #define CS1BCR (LBSC_BASE + 0x2010)
  74. #define CS2BCR (LBSC_BASE + 0x2020)
  75. #define CS3BCR (LBSC_BASE + 0x2030)
  76. #define CS4BCR (LBSC_BASE + 0x2040)
  77. #define CS5BCR (LBSC_BASE + 0x2050)
  78. #define CS6BCR (LBSC_BASE + 0x2060)
  79. #define CS0WCR (LBSC_BASE + 0x2008)
  80. #define CS1WCR (LBSC_BASE + 0x2018)
  81. #define CS2WCR (LBSC_BASE + 0x2028)
  82. #define CS3WCR (LBSC_BASE + 0x2038)
  83. #define CS4WCR (LBSC_BASE + 0x2048)
  84. #define CS5WCR (LBSC_BASE + 0x2058)
  85. #define CS6WCR (LBSC_BASE + 0x2068)
  86. #define CS5PCR (LBSC_BASE + 0x2070)
  87. #define CS6PCR (LBSC_BASE + 0x2080)
  88. /* PCI Controller */
  89. #define SH7780_PCIECR 0xFE000008
  90. #define SH7780_PCIVID 0xFE040000
  91. #define SH7780_PCIDID 0xFE040002
  92. #define SH7780_PCICMD 0xFE040004
  93. #define SH7780_PCISTATUS 0xFE040006
  94. #define SH7780_PCIRID 0xFE040008
  95. #define SH7780_PCIPIF 0xFE040009
  96. #define SH7780_PCISUB 0xFE04000A
  97. #define SH7780_PCIBCC 0xFE04000B
  98. #define SH7780_PCICLS 0xFE04000C
  99. #define SH7780_PCILTM 0xFE04000D
  100. #define SH7780_PCIHDR 0xFE04000E
  101. #define SH7780_PCIBIST 0xFE04000F
  102. #define SH7780_PCIIBAR 0xFE040010
  103. #define SH7780_PCIMBAR0 0xFE040014
  104. #define SH7780_PCIMBAR1 0xFE040018
  105. #define SH7780_PCISVID 0xFE04002C
  106. #define SH7780_PCISID 0xFE04002E
  107. #define SH7780_PCICP 0xFE040034
  108. #define SH7780_PCIINTLINE 0xFE04003C
  109. #define SH7780_PCIINTPIN 0xFE04003D
  110. #define SH7780_PCIMINGNT 0xFE04003E
  111. #define SH7780_PCIMAXLAT 0xFE04003F
  112. #define SH7780_PCICID 0xFE040040
  113. #define SH7780_PCINIP 0xFE040041
  114. #define SH7780_PCIPMC 0xFE040042
  115. #define SH7780_PCIPMCSR 0xFE040044
  116. #define SH7780_PCIPMCSRBSE 0xFE040046
  117. #define SH7780_PCI_CDD 0xFE040047
  118. #define SH7780_PCICR 0xFE040100
  119. #define SH7780_PCILSR0 0xFE040104
  120. #define SH7780_PCILSR1 0xFE040108
  121. #define SH7780_PCILAR0 0xFE04010C
  122. #define SH7780_PCILAR1 0xFE040110
  123. #define SH7780_PCIIR 0xFE040114
  124. #define SH7780_PCIIMR 0xFE040118
  125. #define SH7780_PCIAIR 0xFE04011C
  126. #define SH7780_PCICIR 0xFE040120
  127. #define SH7780_PCIAINT 0xFE040130
  128. #define SH7780_PCIAINTM 0xFE040134
  129. #define SH7780_PCIBMIR 0xFE040138
  130. #define SH7780_PCIPAR 0xFE0401C0
  131. #define SH7780_PCIPINT 0xFE0401CC
  132. #define SH7780_PCIPINTM 0xFE0401D0
  133. #define SH7780_PCIMBR0 0xFE0401E0
  134. #define SH7780_PCIMBMR0 0xFE0401E4
  135. #define SH7780_PCIMBR1 0xFE0401E8
  136. #define SH7780_PCIMBMR1 0xFE0401EC
  137. #define SH7780_PCIMBR2 0xFE0401F0
  138. #define SH7780_PCIMBMR2 0xFE0401F4
  139. #define SH7780_PCIIOBR 0xFE0401F8
  140. #define SH7780_PCIIOBMR 0xFE0401FC
  141. #define SH7780_PCICSCR0 0xFE040210
  142. #define SH7780_PCICSCR1 0xFE040214
  143. #define SH7780_PCICSAR0 0xFE040218
  144. #define SH7780_PCICSAR1 0xFE04021C
  145. #define SH7780_PCIPDR 0xFE040220
  146. #endif /* _ASM_CPU_SH7780_H_ */