bcm63xx_cpu.h 38 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef BCM63XX_CPU_H_
  3. #define BCM63XX_CPU_H_
  4. #include <linux/types.h>
  5. #include <linux/init.h>
  6. /*
  7. * Macro to fetch bcm63xx cpu id and revision, should be optimized at
  8. * compile time if only one CPU support is enabled (idea stolen from
  9. * arm mach-types)
  10. */
  11. #define BCM3368_CPU_ID 0x3368
  12. #define BCM6328_CPU_ID 0x6328
  13. #define BCM6338_CPU_ID 0x6338
  14. #define BCM6345_CPU_ID 0x6345
  15. #define BCM6348_CPU_ID 0x6348
  16. #define BCM6358_CPU_ID 0x6358
  17. #define BCM6362_CPU_ID 0x6362
  18. #define BCM6368_CPU_ID 0x6368
  19. void __init bcm63xx_cpu_init(void);
  20. u8 bcm63xx_get_cpu_rev(void);
  21. unsigned int bcm63xx_get_cpu_freq(void);
  22. static inline u16 __pure __bcm63xx_get_cpu_id(const u16 cpu_id)
  23. {
  24. switch (cpu_id) {
  25. #ifdef CONFIG_BCM63XX_CPU_3368
  26. case BCM3368_CPU_ID:
  27. #endif
  28. #ifdef CONFIG_BCM63XX_CPU_6328
  29. case BCM6328_CPU_ID:
  30. #endif
  31. #ifdef CONFIG_BCM63XX_CPU_6338
  32. case BCM6338_CPU_ID:
  33. #endif
  34. #ifdef CONFIG_BCM63XX_CPU_6345
  35. case BCM6345_CPU_ID:
  36. #endif
  37. #ifdef CONFIG_BCM63XX_CPU_6348
  38. case BCM6348_CPU_ID:
  39. #endif
  40. #ifdef CONFIG_BCM63XX_CPU_6358
  41. case BCM6358_CPU_ID:
  42. #endif
  43. #ifdef CONFIG_BCM63XX_CPU_6362
  44. case BCM6362_CPU_ID:
  45. #endif
  46. #ifdef CONFIG_BCM63XX_CPU_6368
  47. case BCM6368_CPU_ID:
  48. #endif
  49. break;
  50. default:
  51. unreachable();
  52. }
  53. return cpu_id;
  54. }
  55. extern u16 bcm63xx_cpu_id;
  56. static inline u16 __pure bcm63xx_get_cpu_id(void)
  57. {
  58. const u16 cpu_id = bcm63xx_cpu_id;
  59. return __bcm63xx_get_cpu_id(cpu_id);
  60. }
  61. #define BCMCPU_IS_3368() (bcm63xx_get_cpu_id() == BCM3368_CPU_ID)
  62. #define BCMCPU_IS_6328() (bcm63xx_get_cpu_id() == BCM6328_CPU_ID)
  63. #define BCMCPU_IS_6338() (bcm63xx_get_cpu_id() == BCM6338_CPU_ID)
  64. #define BCMCPU_IS_6345() (bcm63xx_get_cpu_id() == BCM6345_CPU_ID)
  65. #define BCMCPU_IS_6348() (bcm63xx_get_cpu_id() == BCM6348_CPU_ID)
  66. #define BCMCPU_IS_6358() (bcm63xx_get_cpu_id() == BCM6358_CPU_ID)
  67. #define BCMCPU_IS_6362() (bcm63xx_get_cpu_id() == BCM6362_CPU_ID)
  68. #define BCMCPU_IS_6368() (bcm63xx_get_cpu_id() == BCM6368_CPU_ID)
  69. /*
  70. * While registers sets are (mostly) the same across 63xx CPU, base
  71. * address of these sets do change.
  72. */
  73. enum bcm63xx_regs_set {
  74. RSET_DSL_LMEM = 0,
  75. RSET_PERF,
  76. RSET_TIMER,
  77. RSET_WDT,
  78. RSET_UART0,
  79. RSET_UART1,
  80. RSET_GPIO,
  81. RSET_SPI,
  82. RSET_HSSPI,
  83. RSET_UDC0,
  84. RSET_OHCI0,
  85. RSET_OHCI_PRIV,
  86. RSET_USBH_PRIV,
  87. RSET_USBD,
  88. RSET_USBDMA,
  89. RSET_MPI,
  90. RSET_PCMCIA,
  91. RSET_PCIE,
  92. RSET_DSL,
  93. RSET_ENET0,
  94. RSET_ENET1,
  95. RSET_ENETDMA,
  96. RSET_ENETDMAC,
  97. RSET_ENETDMAS,
  98. RSET_ENETSW,
  99. RSET_EHCI0,
  100. RSET_SDRAM,
  101. RSET_MEMC,
  102. RSET_DDR,
  103. RSET_M2M,
  104. RSET_ATM,
  105. RSET_XTM,
  106. RSET_XTMDMA,
  107. RSET_XTMDMAC,
  108. RSET_XTMDMAS,
  109. RSET_PCM,
  110. RSET_PCMDMA,
  111. RSET_PCMDMAC,
  112. RSET_PCMDMAS,
  113. RSET_RNG,
  114. RSET_MISC
  115. };
  116. #define RSET_DSL_LMEM_SIZE (64 * 1024 * 4)
  117. #define RSET_DSL_SIZE 4096
  118. #define RSET_WDT_SIZE 12
  119. #define BCM_6338_RSET_SPI_SIZE 64
  120. #define BCM_6348_RSET_SPI_SIZE 64
  121. #define BCM_6358_RSET_SPI_SIZE 1804
  122. #define BCM_6368_RSET_SPI_SIZE 1804
  123. #define RSET_ENET_SIZE 2048
  124. #define RSET_ENETDMA_SIZE 256
  125. #define RSET_6345_ENETDMA_SIZE 64
  126. #define RSET_ENETDMAC_SIZE(chans) (16 * (chans))
  127. #define RSET_ENETDMAS_SIZE(chans) (16 * (chans))
  128. #define RSET_ENETSW_SIZE 65536
  129. #define RSET_UART_SIZE 24
  130. #define RSET_HSSPI_SIZE 1536
  131. #define RSET_UDC_SIZE 256
  132. #define RSET_OHCI_SIZE 256
  133. #define RSET_EHCI_SIZE 256
  134. #define RSET_USBD_SIZE 256
  135. #define RSET_USBDMA_SIZE 1280
  136. #define RSET_PCMCIA_SIZE 12
  137. #define RSET_M2M_SIZE 256
  138. #define RSET_ATM_SIZE 4096
  139. #define RSET_XTM_SIZE 10240
  140. #define RSET_XTMDMA_SIZE 256
  141. #define RSET_XTMDMAC_SIZE(chans) (16 * (chans))
  142. #define RSET_XTMDMAS_SIZE(chans) (16 * (chans))
  143. #define RSET_RNG_SIZE 20
  144. /*
  145. * 3368 register sets base address
  146. */
  147. #define BCM_3368_DSL_LMEM_BASE (0xdeadbeef)
  148. #define BCM_3368_PERF_BASE (0xfff8c000)
  149. #define BCM_3368_TIMER_BASE (0xfff8c040)
  150. #define BCM_3368_WDT_BASE (0xfff8c080)
  151. #define BCM_3368_UART0_BASE (0xfff8c100)
  152. #define BCM_3368_UART1_BASE (0xfff8c120)
  153. #define BCM_3368_GPIO_BASE (0xfff8c080)
  154. #define BCM_3368_SPI_BASE (0xfff8c800)
  155. #define BCM_3368_HSSPI_BASE (0xdeadbeef)
  156. #define BCM_3368_UDC0_BASE (0xdeadbeef)
  157. #define BCM_3368_USBDMA_BASE (0xdeadbeef)
  158. #define BCM_3368_OHCI0_BASE (0xdeadbeef)
  159. #define BCM_3368_OHCI_PRIV_BASE (0xdeadbeef)
  160. #define BCM_3368_USBH_PRIV_BASE (0xdeadbeef)
  161. #define BCM_3368_USBD_BASE (0xdeadbeef)
  162. #define BCM_3368_MPI_BASE (0xfff80000)
  163. #define BCM_3368_PCMCIA_BASE (0xfff80054)
  164. #define BCM_3368_PCIE_BASE (0xdeadbeef)
  165. #define BCM_3368_SDRAM_REGS_BASE (0xdeadbeef)
  166. #define BCM_3368_DSL_BASE (0xdeadbeef)
  167. #define BCM_3368_UBUS_BASE (0xdeadbeef)
  168. #define BCM_3368_ENET0_BASE (0xfff98000)
  169. #define BCM_3368_ENET1_BASE (0xfff98800)
  170. #define BCM_3368_ENETDMA_BASE (0xfff99800)
  171. #define BCM_3368_ENETDMAC_BASE (0xfff99900)
  172. #define BCM_3368_ENETDMAS_BASE (0xfff99a00)
  173. #define BCM_3368_ENETSW_BASE (0xdeadbeef)
  174. #define BCM_3368_EHCI0_BASE (0xdeadbeef)
  175. #define BCM_3368_SDRAM_BASE (0xdeadbeef)
  176. #define BCM_3368_MEMC_BASE (0xfff84000)
  177. #define BCM_3368_DDR_BASE (0xdeadbeef)
  178. #define BCM_3368_M2M_BASE (0xdeadbeef)
  179. #define BCM_3368_ATM_BASE (0xdeadbeef)
  180. #define BCM_3368_XTM_BASE (0xdeadbeef)
  181. #define BCM_3368_XTMDMA_BASE (0xdeadbeef)
  182. #define BCM_3368_XTMDMAC_BASE (0xdeadbeef)
  183. #define BCM_3368_XTMDMAS_BASE (0xdeadbeef)
  184. #define BCM_3368_PCM_BASE (0xfff9c200)
  185. #define BCM_3368_PCMDMA_BASE (0xdeadbeef)
  186. #define BCM_3368_PCMDMAC_BASE (0xdeadbeef)
  187. #define BCM_3368_PCMDMAS_BASE (0xdeadbeef)
  188. #define BCM_3368_RNG_BASE (0xdeadbeef)
  189. #define BCM_3368_MISC_BASE (0xdeadbeef)
  190. /*
  191. * 6328 register sets base address
  192. */
  193. #define BCM_6328_DSL_LMEM_BASE (0xdeadbeef)
  194. #define BCM_6328_PERF_BASE (0xb0000000)
  195. #define BCM_6328_TIMER_BASE (0xb0000040)
  196. #define BCM_6328_WDT_BASE (0xb000005c)
  197. #define BCM_6328_UART0_BASE (0xb0000100)
  198. #define BCM_6328_UART1_BASE (0xb0000120)
  199. #define BCM_6328_GPIO_BASE (0xb0000080)
  200. #define BCM_6328_SPI_BASE (0xdeadbeef)
  201. #define BCM_6328_HSSPI_BASE (0xb0001000)
  202. #define BCM_6328_UDC0_BASE (0xdeadbeef)
  203. #define BCM_6328_USBDMA_BASE (0xb000c000)
  204. #define BCM_6328_OHCI0_BASE (0xb0002600)
  205. #define BCM_6328_OHCI_PRIV_BASE (0xdeadbeef)
  206. #define BCM_6328_USBH_PRIV_BASE (0xb0002700)
  207. #define BCM_6328_USBD_BASE (0xb0002400)
  208. #define BCM_6328_MPI_BASE (0xdeadbeef)
  209. #define BCM_6328_PCMCIA_BASE (0xdeadbeef)
  210. #define BCM_6328_PCIE_BASE (0xb0e40000)
  211. #define BCM_6328_SDRAM_REGS_BASE (0xdeadbeef)
  212. #define BCM_6328_DSL_BASE (0xb0001900)
  213. #define BCM_6328_UBUS_BASE (0xdeadbeef)
  214. #define BCM_6328_ENET0_BASE (0xdeadbeef)
  215. #define BCM_6328_ENET1_BASE (0xdeadbeef)
  216. #define BCM_6328_ENETDMA_BASE (0xb000d800)
  217. #define BCM_6328_ENETDMAC_BASE (0xb000da00)
  218. #define BCM_6328_ENETDMAS_BASE (0xb000dc00)
  219. #define BCM_6328_ENETSW_BASE (0xb0e00000)
  220. #define BCM_6328_EHCI0_BASE (0xb0002500)
  221. #define BCM_6328_SDRAM_BASE (0xdeadbeef)
  222. #define BCM_6328_MEMC_BASE (0xdeadbeef)
  223. #define BCM_6328_DDR_BASE (0xb0003000)
  224. #define BCM_6328_M2M_BASE (0xdeadbeef)
  225. #define BCM_6328_ATM_BASE (0xdeadbeef)
  226. #define BCM_6328_XTM_BASE (0xdeadbeef)
  227. #define BCM_6328_XTMDMA_BASE (0xb000b800)
  228. #define BCM_6328_XTMDMAC_BASE (0xdeadbeef)
  229. #define BCM_6328_XTMDMAS_BASE (0xdeadbeef)
  230. #define BCM_6328_PCM_BASE (0xb000a800)
  231. #define BCM_6328_PCMDMA_BASE (0xdeadbeef)
  232. #define BCM_6328_PCMDMAC_BASE (0xdeadbeef)
  233. #define BCM_6328_PCMDMAS_BASE (0xdeadbeef)
  234. #define BCM_6328_RNG_BASE (0xdeadbeef)
  235. #define BCM_6328_MISC_BASE (0xb0001800)
  236. #define BCM_6328_OTP_BASE (0xb0000600)
  237. /*
  238. * 6338 register sets base address
  239. */
  240. #define BCM_6338_DSL_LMEM_BASE (0xfff00000)
  241. #define BCM_6338_PERF_BASE (0xfffe0000)
  242. #define BCM_6338_BB_BASE (0xfffe0100)
  243. #define BCM_6338_TIMER_BASE (0xfffe0200)
  244. #define BCM_6338_WDT_BASE (0xfffe021c)
  245. #define BCM_6338_UART0_BASE (0xfffe0300)
  246. #define BCM_6338_UART1_BASE (0xdeadbeef)
  247. #define BCM_6338_GPIO_BASE (0xfffe0400)
  248. #define BCM_6338_SPI_BASE (0xfffe0c00)
  249. #define BCM_6338_HSSPI_BASE (0xdeadbeef)
  250. #define BCM_6338_UDC0_BASE (0xdeadbeef)
  251. #define BCM_6338_USBDMA_BASE (0xfffe2400)
  252. #define BCM_6338_OHCI0_BASE (0xdeadbeef)
  253. #define BCM_6338_OHCI_PRIV_BASE (0xfffe3000)
  254. #define BCM_6338_USBH_PRIV_BASE (0xdeadbeef)
  255. #define BCM_6338_USBD_BASE (0xdeadbeef)
  256. #define BCM_6338_MPI_BASE (0xfffe3160)
  257. #define BCM_6338_PCMCIA_BASE (0xdeadbeef)
  258. #define BCM_6338_PCIE_BASE (0xdeadbeef)
  259. #define BCM_6338_SDRAM_REGS_BASE (0xfffe3100)
  260. #define BCM_6338_DSL_BASE (0xfffe1000)
  261. #define BCM_6338_UBUS_BASE (0xdeadbeef)
  262. #define BCM_6338_ENET0_BASE (0xfffe2800)
  263. #define BCM_6338_ENET1_BASE (0xdeadbeef)
  264. #define BCM_6338_ENETDMA_BASE (0xfffe2400)
  265. #define BCM_6338_ENETDMAC_BASE (0xfffe2500)
  266. #define BCM_6338_ENETDMAS_BASE (0xfffe2600)
  267. #define BCM_6338_ENETSW_BASE (0xdeadbeef)
  268. #define BCM_6338_EHCI0_BASE (0xdeadbeef)
  269. #define BCM_6338_SDRAM_BASE (0xfffe3100)
  270. #define BCM_6338_MEMC_BASE (0xdeadbeef)
  271. #define BCM_6338_DDR_BASE (0xdeadbeef)
  272. #define BCM_6338_M2M_BASE (0xdeadbeef)
  273. #define BCM_6338_ATM_BASE (0xfffe2000)
  274. #define BCM_6338_XTM_BASE (0xdeadbeef)
  275. #define BCM_6338_XTMDMA_BASE (0xdeadbeef)
  276. #define BCM_6338_XTMDMAC_BASE (0xdeadbeef)
  277. #define BCM_6338_XTMDMAS_BASE (0xdeadbeef)
  278. #define BCM_6338_PCM_BASE (0xdeadbeef)
  279. #define BCM_6338_PCMDMA_BASE (0xdeadbeef)
  280. #define BCM_6338_PCMDMAC_BASE (0xdeadbeef)
  281. #define BCM_6338_PCMDMAS_BASE (0xdeadbeef)
  282. #define BCM_6338_RNG_BASE (0xdeadbeef)
  283. #define BCM_6338_MISC_BASE (0xdeadbeef)
  284. /*
  285. * 6345 register sets base address
  286. */
  287. #define BCM_6345_DSL_LMEM_BASE (0xfff00000)
  288. #define BCM_6345_PERF_BASE (0xfffe0000)
  289. #define BCM_6345_BB_BASE (0xfffe0100)
  290. #define BCM_6345_TIMER_BASE (0xfffe0200)
  291. #define BCM_6345_WDT_BASE (0xfffe021c)
  292. #define BCM_6345_UART0_BASE (0xfffe0300)
  293. #define BCM_6345_UART1_BASE (0xdeadbeef)
  294. #define BCM_6345_GPIO_BASE (0xfffe0400)
  295. #define BCM_6345_SPI_BASE (0xdeadbeef)
  296. #define BCM_6345_HSSPI_BASE (0xdeadbeef)
  297. #define BCM_6345_UDC0_BASE (0xdeadbeef)
  298. #define BCM_6345_USBDMA_BASE (0xfffe2800)
  299. #define BCM_6345_ENET0_BASE (0xfffe1800)
  300. #define BCM_6345_ENETDMA_BASE (0xfffe2800)
  301. #define BCM_6345_ENETDMAC_BASE (0xfffe2840)
  302. #define BCM_6345_ENETDMAS_BASE (0xfffe2a00)
  303. #define BCM_6345_ENETSW_BASE (0xdeadbeef)
  304. #define BCM_6345_PCMCIA_BASE (0xfffe2028)
  305. #define BCM_6345_MPI_BASE (0xfffe2000)
  306. #define BCM_6345_PCIE_BASE (0xdeadbeef)
  307. #define BCM_6345_OHCI0_BASE (0xfffe2100)
  308. #define BCM_6345_OHCI_PRIV_BASE (0xfffe2200)
  309. #define BCM_6345_USBH_PRIV_BASE (0xdeadbeef)
  310. #define BCM_6345_USBD_BASE (0xdeadbeef)
  311. #define BCM_6345_SDRAM_REGS_BASE (0xfffe2300)
  312. #define BCM_6345_DSL_BASE (0xdeadbeef)
  313. #define BCM_6345_UBUS_BASE (0xdeadbeef)
  314. #define BCM_6345_ENET1_BASE (0xdeadbeef)
  315. #define BCM_6345_EHCI0_BASE (0xdeadbeef)
  316. #define BCM_6345_SDRAM_BASE (0xfffe2300)
  317. #define BCM_6345_MEMC_BASE (0xdeadbeef)
  318. #define BCM_6345_DDR_BASE (0xdeadbeef)
  319. #define BCM_6345_M2M_BASE (0xdeadbeef)
  320. #define BCM_6345_ATM_BASE (0xfffe4000)
  321. #define BCM_6345_XTM_BASE (0xdeadbeef)
  322. #define BCM_6345_XTMDMA_BASE (0xdeadbeef)
  323. #define BCM_6345_XTMDMAC_BASE (0xdeadbeef)
  324. #define BCM_6345_XTMDMAS_BASE (0xdeadbeef)
  325. #define BCM_6345_PCM_BASE (0xdeadbeef)
  326. #define BCM_6345_PCMDMA_BASE (0xdeadbeef)
  327. #define BCM_6345_PCMDMAC_BASE (0xdeadbeef)
  328. #define BCM_6345_PCMDMAS_BASE (0xdeadbeef)
  329. #define BCM_6345_RNG_BASE (0xdeadbeef)
  330. #define BCM_6345_MISC_BASE (0xdeadbeef)
  331. /*
  332. * 6348 register sets base address
  333. */
  334. #define BCM_6348_DSL_LMEM_BASE (0xfff00000)
  335. #define BCM_6348_PERF_BASE (0xfffe0000)
  336. #define BCM_6348_TIMER_BASE (0xfffe0200)
  337. #define BCM_6348_WDT_BASE (0xfffe021c)
  338. #define BCM_6348_UART0_BASE (0xfffe0300)
  339. #define BCM_6348_UART1_BASE (0xdeadbeef)
  340. #define BCM_6348_GPIO_BASE (0xfffe0400)
  341. #define BCM_6348_SPI_BASE (0xfffe0c00)
  342. #define BCM_6348_HSSPI_BASE (0xdeadbeef)
  343. #define BCM_6348_UDC0_BASE (0xfffe1000)
  344. #define BCM_6348_USBDMA_BASE (0xdeadbeef)
  345. #define BCM_6348_OHCI0_BASE (0xfffe1b00)
  346. #define BCM_6348_OHCI_PRIV_BASE (0xfffe1c00)
  347. #define BCM_6348_USBH_PRIV_BASE (0xdeadbeef)
  348. #define BCM_6348_USBD_BASE (0xdeadbeef)
  349. #define BCM_6348_MPI_BASE (0xfffe2000)
  350. #define BCM_6348_PCMCIA_BASE (0xfffe2054)
  351. #define BCM_6348_PCIE_BASE (0xdeadbeef)
  352. #define BCM_6348_SDRAM_REGS_BASE (0xfffe2300)
  353. #define BCM_6348_M2M_BASE (0xfffe2800)
  354. #define BCM_6348_DSL_BASE (0xfffe3000)
  355. #define BCM_6348_ENET0_BASE (0xfffe6000)
  356. #define BCM_6348_ENET1_BASE (0xfffe6800)
  357. #define BCM_6348_ENETDMA_BASE (0xfffe7000)
  358. #define BCM_6348_ENETDMAC_BASE (0xfffe7100)
  359. #define BCM_6348_ENETDMAS_BASE (0xfffe7200)
  360. #define BCM_6348_ENETSW_BASE (0xdeadbeef)
  361. #define BCM_6348_EHCI0_BASE (0xdeadbeef)
  362. #define BCM_6348_SDRAM_BASE (0xfffe2300)
  363. #define BCM_6348_MEMC_BASE (0xdeadbeef)
  364. #define BCM_6348_DDR_BASE (0xdeadbeef)
  365. #define BCM_6348_ATM_BASE (0xfffe4000)
  366. #define BCM_6348_XTM_BASE (0xdeadbeef)
  367. #define BCM_6348_XTMDMA_BASE (0xdeadbeef)
  368. #define BCM_6348_XTMDMAC_BASE (0xdeadbeef)
  369. #define BCM_6348_XTMDMAS_BASE (0xdeadbeef)
  370. #define BCM_6348_PCM_BASE (0xdeadbeef)
  371. #define BCM_6348_PCMDMA_BASE (0xdeadbeef)
  372. #define BCM_6348_PCMDMAC_BASE (0xdeadbeef)
  373. #define BCM_6348_PCMDMAS_BASE (0xdeadbeef)
  374. #define BCM_6348_RNG_BASE (0xdeadbeef)
  375. #define BCM_6348_MISC_BASE (0xdeadbeef)
  376. /*
  377. * 6358 register sets base address
  378. */
  379. #define BCM_6358_DSL_LMEM_BASE (0xfff00000)
  380. #define BCM_6358_PERF_BASE (0xfffe0000)
  381. #define BCM_6358_TIMER_BASE (0xfffe0040)
  382. #define BCM_6358_WDT_BASE (0xfffe005c)
  383. #define BCM_6358_UART0_BASE (0xfffe0100)
  384. #define BCM_6358_UART1_BASE (0xfffe0120)
  385. #define BCM_6358_GPIO_BASE (0xfffe0080)
  386. #define BCM_6358_SPI_BASE (0xfffe0800)
  387. #define BCM_6358_HSSPI_BASE (0xdeadbeef)
  388. #define BCM_6358_UDC0_BASE (0xfffe0800)
  389. #define BCM_6358_USBDMA_BASE (0xdeadbeef)
  390. #define BCM_6358_OHCI0_BASE (0xfffe1400)
  391. #define BCM_6358_OHCI_PRIV_BASE (0xdeadbeef)
  392. #define BCM_6358_USBH_PRIV_BASE (0xfffe1500)
  393. #define BCM_6358_USBD_BASE (0xdeadbeef)
  394. #define BCM_6358_MPI_BASE (0xfffe1000)
  395. #define BCM_6358_PCMCIA_BASE (0xfffe1054)
  396. #define BCM_6358_PCIE_BASE (0xdeadbeef)
  397. #define BCM_6358_SDRAM_REGS_BASE (0xfffe2300)
  398. #define BCM_6358_M2M_BASE (0xdeadbeef)
  399. #define BCM_6358_DSL_BASE (0xfffe3000)
  400. #define BCM_6358_ENET0_BASE (0xfffe4000)
  401. #define BCM_6358_ENET1_BASE (0xfffe4800)
  402. #define BCM_6358_ENETDMA_BASE (0xfffe5000)
  403. #define BCM_6358_ENETDMAC_BASE (0xfffe5100)
  404. #define BCM_6358_ENETDMAS_BASE (0xfffe5200)
  405. #define BCM_6358_ENETSW_BASE (0xdeadbeef)
  406. #define BCM_6358_EHCI0_BASE (0xfffe1300)
  407. #define BCM_6358_SDRAM_BASE (0xdeadbeef)
  408. #define BCM_6358_MEMC_BASE (0xfffe1200)
  409. #define BCM_6358_DDR_BASE (0xfffe12a0)
  410. #define BCM_6358_ATM_BASE (0xfffe2000)
  411. #define BCM_6358_XTM_BASE (0xdeadbeef)
  412. #define BCM_6358_XTMDMA_BASE (0xdeadbeef)
  413. #define BCM_6358_XTMDMAC_BASE (0xdeadbeef)
  414. #define BCM_6358_XTMDMAS_BASE (0xdeadbeef)
  415. #define BCM_6358_PCM_BASE (0xfffe1600)
  416. #define BCM_6358_PCMDMA_BASE (0xfffe1800)
  417. #define BCM_6358_PCMDMAC_BASE (0xfffe1900)
  418. #define BCM_6358_PCMDMAS_BASE (0xfffe1a00)
  419. #define BCM_6358_RNG_BASE (0xdeadbeef)
  420. #define BCM_6358_MISC_BASE (0xdeadbeef)
  421. /*
  422. * 6362 register sets base address
  423. */
  424. #define BCM_6362_DSL_LMEM_BASE (0xdeadbeef)
  425. #define BCM_6362_PERF_BASE (0xb0000000)
  426. #define BCM_6362_TIMER_BASE (0xb0000040)
  427. #define BCM_6362_WDT_BASE (0xb000005c)
  428. #define BCM_6362_UART0_BASE (0xb0000100)
  429. #define BCM_6362_UART1_BASE (0xb0000120)
  430. #define BCM_6362_GPIO_BASE (0xb0000080)
  431. #define BCM_6362_SPI_BASE (0xb0000800)
  432. #define BCM_6362_HSSPI_BASE (0xb0001000)
  433. #define BCM_6362_UDC0_BASE (0xdeadbeef)
  434. #define BCM_6362_USBDMA_BASE (0xb000c000)
  435. #define BCM_6362_OHCI0_BASE (0xb0002600)
  436. #define BCM_6362_OHCI_PRIV_BASE (0xdeadbeef)
  437. #define BCM_6362_USBH_PRIV_BASE (0xb0002700)
  438. #define BCM_6362_USBD_BASE (0xb0002400)
  439. #define BCM_6362_MPI_BASE (0xdeadbeef)
  440. #define BCM_6362_PCMCIA_BASE (0xdeadbeef)
  441. #define BCM_6362_PCIE_BASE (0xb0e40000)
  442. #define BCM_6362_SDRAM_REGS_BASE (0xdeadbeef)
  443. #define BCM_6362_DSL_BASE (0xdeadbeef)
  444. #define BCM_6362_UBUS_BASE (0xdeadbeef)
  445. #define BCM_6362_ENET0_BASE (0xdeadbeef)
  446. #define BCM_6362_ENET1_BASE (0xdeadbeef)
  447. #define BCM_6362_ENETDMA_BASE (0xb000d800)
  448. #define BCM_6362_ENETDMAC_BASE (0xb000da00)
  449. #define BCM_6362_ENETDMAS_BASE (0xb000dc00)
  450. #define BCM_6362_ENETSW_BASE (0xb0e00000)
  451. #define BCM_6362_EHCI0_BASE (0xb0002500)
  452. #define BCM_6362_SDRAM_BASE (0xdeadbeef)
  453. #define BCM_6362_MEMC_BASE (0xdeadbeef)
  454. #define BCM_6362_DDR_BASE (0xb0003000)
  455. #define BCM_6362_M2M_BASE (0xdeadbeef)
  456. #define BCM_6362_ATM_BASE (0xdeadbeef)
  457. #define BCM_6362_XTM_BASE (0xb0007800)
  458. #define BCM_6362_XTMDMA_BASE (0xb000b800)
  459. #define BCM_6362_XTMDMAC_BASE (0xdeadbeef)
  460. #define BCM_6362_XTMDMAS_BASE (0xdeadbeef)
  461. #define BCM_6362_PCM_BASE (0xb000a800)
  462. #define BCM_6362_PCMDMA_BASE (0xdeadbeef)
  463. #define BCM_6362_PCMDMAC_BASE (0xdeadbeef)
  464. #define BCM_6362_PCMDMAS_BASE (0xdeadbeef)
  465. #define BCM_6362_RNG_BASE (0xdeadbeef)
  466. #define BCM_6362_MISC_BASE (0xb0001800)
  467. #define BCM_6362_NAND_REG_BASE (0xb0000200)
  468. #define BCM_6362_NAND_CACHE_BASE (0xb0000600)
  469. #define BCM_6362_LED_BASE (0xb0001900)
  470. #define BCM_6362_IPSEC_BASE (0xb0002800)
  471. #define BCM_6362_IPSEC_DMA_BASE (0xb000d000)
  472. #define BCM_6362_WLAN_CHIPCOMMON_BASE (0xb0004000)
  473. #define BCM_6362_WLAN_D11_BASE (0xb0005000)
  474. #define BCM_6362_WLAN_SHIM_BASE (0xb0007000)
  475. /*
  476. * 6368 register sets base address
  477. */
  478. #define BCM_6368_DSL_LMEM_BASE (0xdeadbeef)
  479. #define BCM_6368_PERF_BASE (0xb0000000)
  480. #define BCM_6368_TIMER_BASE (0xb0000040)
  481. #define BCM_6368_WDT_BASE (0xb000005c)
  482. #define BCM_6368_UART0_BASE (0xb0000100)
  483. #define BCM_6368_UART1_BASE (0xb0000120)
  484. #define BCM_6368_GPIO_BASE (0xb0000080)
  485. #define BCM_6368_SPI_BASE (0xb0000800)
  486. #define BCM_6368_HSSPI_BASE (0xdeadbeef)
  487. #define BCM_6368_UDC0_BASE (0xdeadbeef)
  488. #define BCM_6368_USBDMA_BASE (0xb0004800)
  489. #define BCM_6368_OHCI0_BASE (0xb0001600)
  490. #define BCM_6368_OHCI_PRIV_BASE (0xdeadbeef)
  491. #define BCM_6368_USBH_PRIV_BASE (0xb0001700)
  492. #define BCM_6368_USBD_BASE (0xb0001400)
  493. #define BCM_6368_MPI_BASE (0xb0001000)
  494. #define BCM_6368_PCMCIA_BASE (0xb0001054)
  495. #define BCM_6368_PCIE_BASE (0xdeadbeef)
  496. #define BCM_6368_SDRAM_REGS_BASE (0xdeadbeef)
  497. #define BCM_6368_M2M_BASE (0xdeadbeef)
  498. #define BCM_6368_DSL_BASE (0xdeadbeef)
  499. #define BCM_6368_ENET0_BASE (0xdeadbeef)
  500. #define BCM_6368_ENET1_BASE (0xdeadbeef)
  501. #define BCM_6368_ENETDMA_BASE (0xb0006800)
  502. #define BCM_6368_ENETDMAC_BASE (0xb0006a00)
  503. #define BCM_6368_ENETDMAS_BASE (0xb0006c00)
  504. #define BCM_6368_ENETSW_BASE (0xb0f00000)
  505. #define BCM_6368_EHCI0_BASE (0xb0001500)
  506. #define BCM_6368_SDRAM_BASE (0xdeadbeef)
  507. #define BCM_6368_MEMC_BASE (0xb0001200)
  508. #define BCM_6368_DDR_BASE (0xb0001280)
  509. #define BCM_6368_ATM_BASE (0xdeadbeef)
  510. #define BCM_6368_XTM_BASE (0xb0001800)
  511. #define BCM_6368_XTMDMA_BASE (0xb0005000)
  512. #define BCM_6368_XTMDMAC_BASE (0xb0005200)
  513. #define BCM_6368_XTMDMAS_BASE (0xb0005400)
  514. #define BCM_6368_PCM_BASE (0xb0004000)
  515. #define BCM_6368_PCMDMA_BASE (0xb0005800)
  516. #define BCM_6368_PCMDMAC_BASE (0xb0005a00)
  517. #define BCM_6368_PCMDMAS_BASE (0xb0005c00)
  518. #define BCM_6368_RNG_BASE (0xb0004180)
  519. #define BCM_6368_MISC_BASE (0xdeadbeef)
  520. extern const unsigned long *bcm63xx_regs_base;
  521. #define __GEN_CPU_REGS_TABLE(__cpu) \
  522. [RSET_DSL_LMEM] = BCM_## __cpu ##_DSL_LMEM_BASE, \
  523. [RSET_PERF] = BCM_## __cpu ##_PERF_BASE, \
  524. [RSET_TIMER] = BCM_## __cpu ##_TIMER_BASE, \
  525. [RSET_WDT] = BCM_## __cpu ##_WDT_BASE, \
  526. [RSET_UART0] = BCM_## __cpu ##_UART0_BASE, \
  527. [RSET_UART1] = BCM_## __cpu ##_UART1_BASE, \
  528. [RSET_GPIO] = BCM_## __cpu ##_GPIO_BASE, \
  529. [RSET_SPI] = BCM_## __cpu ##_SPI_BASE, \
  530. [RSET_HSSPI] = BCM_## __cpu ##_HSSPI_BASE, \
  531. [RSET_UDC0] = BCM_## __cpu ##_UDC0_BASE, \
  532. [RSET_OHCI0] = BCM_## __cpu ##_OHCI0_BASE, \
  533. [RSET_OHCI_PRIV] = BCM_## __cpu ##_OHCI_PRIV_BASE, \
  534. [RSET_USBH_PRIV] = BCM_## __cpu ##_USBH_PRIV_BASE, \
  535. [RSET_USBD] = BCM_## __cpu ##_USBD_BASE, \
  536. [RSET_USBDMA] = BCM_## __cpu ##_USBDMA_BASE, \
  537. [RSET_MPI] = BCM_## __cpu ##_MPI_BASE, \
  538. [RSET_PCMCIA] = BCM_## __cpu ##_PCMCIA_BASE, \
  539. [RSET_PCIE] = BCM_## __cpu ##_PCIE_BASE, \
  540. [RSET_DSL] = BCM_## __cpu ##_DSL_BASE, \
  541. [RSET_ENET0] = BCM_## __cpu ##_ENET0_BASE, \
  542. [RSET_ENET1] = BCM_## __cpu ##_ENET1_BASE, \
  543. [RSET_ENETDMA] = BCM_## __cpu ##_ENETDMA_BASE, \
  544. [RSET_ENETDMAC] = BCM_## __cpu ##_ENETDMAC_BASE, \
  545. [RSET_ENETDMAS] = BCM_## __cpu ##_ENETDMAS_BASE, \
  546. [RSET_ENETSW] = BCM_## __cpu ##_ENETSW_BASE, \
  547. [RSET_EHCI0] = BCM_## __cpu ##_EHCI0_BASE, \
  548. [RSET_SDRAM] = BCM_## __cpu ##_SDRAM_BASE, \
  549. [RSET_MEMC] = BCM_## __cpu ##_MEMC_BASE, \
  550. [RSET_DDR] = BCM_## __cpu ##_DDR_BASE, \
  551. [RSET_M2M] = BCM_## __cpu ##_M2M_BASE, \
  552. [RSET_ATM] = BCM_## __cpu ##_ATM_BASE, \
  553. [RSET_XTM] = BCM_## __cpu ##_XTM_BASE, \
  554. [RSET_XTMDMA] = BCM_## __cpu ##_XTMDMA_BASE, \
  555. [RSET_XTMDMAC] = BCM_## __cpu ##_XTMDMAC_BASE, \
  556. [RSET_XTMDMAS] = BCM_## __cpu ##_XTMDMAS_BASE, \
  557. [RSET_PCM] = BCM_## __cpu ##_PCM_BASE, \
  558. [RSET_PCMDMA] = BCM_## __cpu ##_PCMDMA_BASE, \
  559. [RSET_PCMDMAC] = BCM_## __cpu ##_PCMDMAC_BASE, \
  560. [RSET_PCMDMAS] = BCM_## __cpu ##_PCMDMAS_BASE, \
  561. [RSET_RNG] = BCM_## __cpu ##_RNG_BASE, \
  562. [RSET_MISC] = BCM_## __cpu ##_MISC_BASE, \
  563. static inline unsigned long bcm63xx_regset_address(enum bcm63xx_regs_set set)
  564. {
  565. return bcm63xx_regs_base[set];
  566. }
  567. /*
  568. * IRQ number changes across CPU too
  569. */
  570. enum bcm63xx_irq {
  571. IRQ_TIMER = 0,
  572. IRQ_SPI,
  573. IRQ_UART0,
  574. IRQ_UART1,
  575. IRQ_DSL,
  576. IRQ_ENET0,
  577. IRQ_ENET1,
  578. IRQ_ENET_PHY,
  579. IRQ_HSSPI,
  580. IRQ_OHCI0,
  581. IRQ_EHCI0,
  582. IRQ_USBD,
  583. IRQ_USBD_RXDMA0,
  584. IRQ_USBD_TXDMA0,
  585. IRQ_USBD_RXDMA1,
  586. IRQ_USBD_TXDMA1,
  587. IRQ_USBD_RXDMA2,
  588. IRQ_USBD_TXDMA2,
  589. IRQ_ENET0_RXDMA,
  590. IRQ_ENET0_TXDMA,
  591. IRQ_ENET1_RXDMA,
  592. IRQ_ENET1_TXDMA,
  593. IRQ_PCI,
  594. IRQ_PCMCIA,
  595. IRQ_ATM,
  596. IRQ_ENETSW_RXDMA0,
  597. IRQ_ENETSW_RXDMA1,
  598. IRQ_ENETSW_RXDMA2,
  599. IRQ_ENETSW_RXDMA3,
  600. IRQ_ENETSW_TXDMA0,
  601. IRQ_ENETSW_TXDMA1,
  602. IRQ_ENETSW_TXDMA2,
  603. IRQ_ENETSW_TXDMA3,
  604. IRQ_XTM,
  605. IRQ_XTM_DMA0,
  606. };
  607. /*
  608. * 3368 irqs
  609. */
  610. #define BCM_3368_TIMER_IRQ (IRQ_INTERNAL_BASE + 0)
  611. #define BCM_3368_SPI_IRQ (IRQ_INTERNAL_BASE + 1)
  612. #define BCM_3368_UART0_IRQ (IRQ_INTERNAL_BASE + 2)
  613. #define BCM_3368_UART1_IRQ (IRQ_INTERNAL_BASE + 3)
  614. #define BCM_3368_DSL_IRQ 0
  615. #define BCM_3368_UDC0_IRQ 0
  616. #define BCM_3368_OHCI0_IRQ 0
  617. #define BCM_3368_ENET0_IRQ (IRQ_INTERNAL_BASE + 8)
  618. #define BCM_3368_ENET1_IRQ (IRQ_INTERNAL_BASE + 6)
  619. #define BCM_3368_ENET_PHY_IRQ (IRQ_INTERNAL_BASE + 9)
  620. #define BCM_3368_ENET0_RXDMA_IRQ (IRQ_INTERNAL_BASE + 15)
  621. #define BCM_3368_ENET0_TXDMA_IRQ (IRQ_INTERNAL_BASE + 16)
  622. #define BCM_3368_HSSPI_IRQ 0
  623. #define BCM_3368_EHCI0_IRQ 0
  624. #define BCM_3368_USBD_IRQ 0
  625. #define BCM_3368_USBD_RXDMA0_IRQ 0
  626. #define BCM_3368_USBD_TXDMA0_IRQ 0
  627. #define BCM_3368_USBD_RXDMA1_IRQ 0
  628. #define BCM_3368_USBD_TXDMA1_IRQ 0
  629. #define BCM_3368_USBD_RXDMA2_IRQ 0
  630. #define BCM_3368_USBD_TXDMA2_IRQ 0
  631. #define BCM_3368_ENET1_RXDMA_IRQ (IRQ_INTERNAL_BASE + 17)
  632. #define BCM_3368_ENET1_TXDMA_IRQ (IRQ_INTERNAL_BASE + 18)
  633. #define BCM_3368_PCI_IRQ (IRQ_INTERNAL_BASE + 31)
  634. #define BCM_3368_PCMCIA_IRQ 0
  635. #define BCM_3368_ATM_IRQ 0
  636. #define BCM_3368_ENETSW_RXDMA0_IRQ 0
  637. #define BCM_3368_ENETSW_RXDMA1_IRQ 0
  638. #define BCM_3368_ENETSW_RXDMA2_IRQ 0
  639. #define BCM_3368_ENETSW_RXDMA3_IRQ 0
  640. #define BCM_3368_ENETSW_TXDMA0_IRQ 0
  641. #define BCM_3368_ENETSW_TXDMA1_IRQ 0
  642. #define BCM_3368_ENETSW_TXDMA2_IRQ 0
  643. #define BCM_3368_ENETSW_TXDMA3_IRQ 0
  644. #define BCM_3368_XTM_IRQ 0
  645. #define BCM_3368_XTM_DMA0_IRQ 0
  646. #define BCM_3368_EXT_IRQ0 (IRQ_INTERNAL_BASE + 25)
  647. #define BCM_3368_EXT_IRQ1 (IRQ_INTERNAL_BASE + 26)
  648. #define BCM_3368_EXT_IRQ2 (IRQ_INTERNAL_BASE + 27)
  649. #define BCM_3368_EXT_IRQ3 (IRQ_INTERNAL_BASE + 28)
  650. /*
  651. * 6328 irqs
  652. */
  653. #define BCM_6328_HIGH_IRQ_BASE (IRQ_INTERNAL_BASE + 32)
  654. #define BCM_6328_TIMER_IRQ (IRQ_INTERNAL_BASE + 31)
  655. #define BCM_6328_SPI_IRQ 0
  656. #define BCM_6328_UART0_IRQ (IRQ_INTERNAL_BASE + 28)
  657. #define BCM_6328_UART1_IRQ (BCM_6328_HIGH_IRQ_BASE + 7)
  658. #define BCM_6328_DSL_IRQ (IRQ_INTERNAL_BASE + 4)
  659. #define BCM_6328_UDC0_IRQ 0
  660. #define BCM_6328_ENET0_IRQ 0
  661. #define BCM_6328_ENET1_IRQ 0
  662. #define BCM_6328_ENET_PHY_IRQ (IRQ_INTERNAL_BASE + 12)
  663. #define BCM_6328_HSSPI_IRQ (IRQ_INTERNAL_BASE + 29)
  664. #define BCM_6328_OHCI0_IRQ (BCM_6328_HIGH_IRQ_BASE + 9)
  665. #define BCM_6328_EHCI0_IRQ (BCM_6328_HIGH_IRQ_BASE + 10)
  666. #define BCM_6328_USBD_IRQ (IRQ_INTERNAL_BASE + 4)
  667. #define BCM_6328_USBD_RXDMA0_IRQ (IRQ_INTERNAL_BASE + 5)
  668. #define BCM_6328_USBD_TXDMA0_IRQ (IRQ_INTERNAL_BASE + 6)
  669. #define BCM_6328_USBD_RXDMA1_IRQ (IRQ_INTERNAL_BASE + 7)
  670. #define BCM_6328_USBD_TXDMA1_IRQ (IRQ_INTERNAL_BASE + 8)
  671. #define BCM_6328_USBD_RXDMA2_IRQ (IRQ_INTERNAL_BASE + 9)
  672. #define BCM_6328_USBD_TXDMA2_IRQ (IRQ_INTERNAL_BASE + 10)
  673. #define BCM_6328_PCMCIA_IRQ 0
  674. #define BCM_6328_ENET0_RXDMA_IRQ 0
  675. #define BCM_6328_ENET0_TXDMA_IRQ 0
  676. #define BCM_6328_ENET1_RXDMA_IRQ 0
  677. #define BCM_6328_ENET1_TXDMA_IRQ 0
  678. #define BCM_6328_PCI_IRQ (IRQ_INTERNAL_BASE + 23)
  679. #define BCM_6328_ATM_IRQ 0
  680. #define BCM_6328_ENETSW_RXDMA0_IRQ (BCM_6328_HIGH_IRQ_BASE + 0)
  681. #define BCM_6328_ENETSW_RXDMA1_IRQ (BCM_6328_HIGH_IRQ_BASE + 1)
  682. #define BCM_6328_ENETSW_RXDMA2_IRQ (BCM_6328_HIGH_IRQ_BASE + 2)
  683. #define BCM_6328_ENETSW_RXDMA3_IRQ (BCM_6328_HIGH_IRQ_BASE + 3)
  684. #define BCM_6328_ENETSW_TXDMA0_IRQ 0
  685. #define BCM_6328_ENETSW_TXDMA1_IRQ 0
  686. #define BCM_6328_ENETSW_TXDMA2_IRQ 0
  687. #define BCM_6328_ENETSW_TXDMA3_IRQ 0
  688. #define BCM_6328_XTM_IRQ (BCM_6328_HIGH_IRQ_BASE + 31)
  689. #define BCM_6328_XTM_DMA0_IRQ (BCM_6328_HIGH_IRQ_BASE + 11)
  690. #define BCM_6328_PCM_DMA0_IRQ (IRQ_INTERNAL_BASE + 2)
  691. #define BCM_6328_PCM_DMA1_IRQ (IRQ_INTERNAL_BASE + 3)
  692. #define BCM_6328_EXT_IRQ0 (IRQ_INTERNAL_BASE + 24)
  693. #define BCM_6328_EXT_IRQ1 (IRQ_INTERNAL_BASE + 25)
  694. #define BCM_6328_EXT_IRQ2 (IRQ_INTERNAL_BASE + 26)
  695. #define BCM_6328_EXT_IRQ3 (IRQ_INTERNAL_BASE + 27)
  696. /*
  697. * 6338 irqs
  698. */
  699. #define BCM_6338_TIMER_IRQ (IRQ_INTERNAL_BASE + 0)
  700. #define BCM_6338_SPI_IRQ (IRQ_INTERNAL_BASE + 1)
  701. #define BCM_6338_UART0_IRQ (IRQ_INTERNAL_BASE + 2)
  702. #define BCM_6338_UART1_IRQ 0
  703. #define BCM_6338_DSL_IRQ (IRQ_INTERNAL_BASE + 5)
  704. #define BCM_6338_ENET0_IRQ (IRQ_INTERNAL_BASE + 8)
  705. #define BCM_6338_ENET1_IRQ 0
  706. #define BCM_6338_ENET_PHY_IRQ (IRQ_INTERNAL_BASE + 9)
  707. #define BCM_6338_HSSPI_IRQ 0
  708. #define BCM_6338_OHCI0_IRQ 0
  709. #define BCM_6338_EHCI0_IRQ 0
  710. #define BCM_6338_USBD_IRQ 0
  711. #define BCM_6338_USBD_RXDMA0_IRQ 0
  712. #define BCM_6338_USBD_TXDMA0_IRQ 0
  713. #define BCM_6338_USBD_RXDMA1_IRQ 0
  714. #define BCM_6338_USBD_TXDMA1_IRQ 0
  715. #define BCM_6338_USBD_RXDMA2_IRQ 0
  716. #define BCM_6338_USBD_TXDMA2_IRQ 0
  717. #define BCM_6338_ENET0_RXDMA_IRQ (IRQ_INTERNAL_BASE + 15)
  718. #define BCM_6338_ENET0_TXDMA_IRQ (IRQ_INTERNAL_BASE + 16)
  719. #define BCM_6338_ENET1_RXDMA_IRQ 0
  720. #define BCM_6338_ENET1_TXDMA_IRQ 0
  721. #define BCM_6338_PCI_IRQ 0
  722. #define BCM_6338_PCMCIA_IRQ 0
  723. #define BCM_6338_ATM_IRQ 0
  724. #define BCM_6338_ENETSW_RXDMA0_IRQ 0
  725. #define BCM_6338_ENETSW_RXDMA1_IRQ 0
  726. #define BCM_6338_ENETSW_RXDMA2_IRQ 0
  727. #define BCM_6338_ENETSW_RXDMA3_IRQ 0
  728. #define BCM_6338_ENETSW_TXDMA0_IRQ 0
  729. #define BCM_6338_ENETSW_TXDMA1_IRQ 0
  730. #define BCM_6338_ENETSW_TXDMA2_IRQ 0
  731. #define BCM_6338_ENETSW_TXDMA3_IRQ 0
  732. #define BCM_6338_XTM_IRQ 0
  733. #define BCM_6338_XTM_DMA0_IRQ 0
  734. /*
  735. * 6345 irqs
  736. */
  737. #define BCM_6345_TIMER_IRQ (IRQ_INTERNAL_BASE + 0)
  738. #define BCM_6345_SPI_IRQ 0
  739. #define BCM_6345_UART0_IRQ (IRQ_INTERNAL_BASE + 2)
  740. #define BCM_6345_UART1_IRQ 0
  741. #define BCM_6345_DSL_IRQ (IRQ_INTERNAL_BASE + 3)
  742. #define BCM_6345_ENET0_IRQ (IRQ_INTERNAL_BASE + 8)
  743. #define BCM_6345_ENET1_IRQ 0
  744. #define BCM_6345_ENET_PHY_IRQ (IRQ_INTERNAL_BASE + 12)
  745. #define BCM_6345_HSSPI_IRQ 0
  746. #define BCM_6345_OHCI0_IRQ 0
  747. #define BCM_6345_EHCI0_IRQ 0
  748. #define BCM_6345_USBD_IRQ 0
  749. #define BCM_6345_USBD_RXDMA0_IRQ 0
  750. #define BCM_6345_USBD_TXDMA0_IRQ 0
  751. #define BCM_6345_USBD_RXDMA1_IRQ 0
  752. #define BCM_6345_USBD_TXDMA1_IRQ 0
  753. #define BCM_6345_USBD_RXDMA2_IRQ 0
  754. #define BCM_6345_USBD_TXDMA2_IRQ 0
  755. #define BCM_6345_ENET0_RXDMA_IRQ (IRQ_INTERNAL_BASE + 13 + 1)
  756. #define BCM_6345_ENET0_TXDMA_IRQ (IRQ_INTERNAL_BASE + 13 + 2)
  757. #define BCM_6345_ENET1_RXDMA_IRQ 0
  758. #define BCM_6345_ENET1_TXDMA_IRQ 0
  759. #define BCM_6345_PCI_IRQ 0
  760. #define BCM_6345_PCMCIA_IRQ 0
  761. #define BCM_6345_ATM_IRQ 0
  762. #define BCM_6345_ENETSW_RXDMA0_IRQ 0
  763. #define BCM_6345_ENETSW_RXDMA1_IRQ 0
  764. #define BCM_6345_ENETSW_RXDMA2_IRQ 0
  765. #define BCM_6345_ENETSW_RXDMA3_IRQ 0
  766. #define BCM_6345_ENETSW_TXDMA0_IRQ 0
  767. #define BCM_6345_ENETSW_TXDMA1_IRQ 0
  768. #define BCM_6345_ENETSW_TXDMA2_IRQ 0
  769. #define BCM_6345_ENETSW_TXDMA3_IRQ 0
  770. #define BCM_6345_XTM_IRQ 0
  771. #define BCM_6345_XTM_DMA0_IRQ 0
  772. /*
  773. * 6348 irqs
  774. */
  775. #define BCM_6348_TIMER_IRQ (IRQ_INTERNAL_BASE + 0)
  776. #define BCM_6348_SPI_IRQ (IRQ_INTERNAL_BASE + 1)
  777. #define BCM_6348_UART0_IRQ (IRQ_INTERNAL_BASE + 2)
  778. #define BCM_6348_UART1_IRQ 0
  779. #define BCM_6348_DSL_IRQ (IRQ_INTERNAL_BASE + 4)
  780. #define BCM_6348_ENET0_IRQ (IRQ_INTERNAL_BASE + 8)
  781. #define BCM_6348_ENET1_IRQ (IRQ_INTERNAL_BASE + 7)
  782. #define BCM_6348_ENET_PHY_IRQ (IRQ_INTERNAL_BASE + 9)
  783. #define BCM_6348_HSSPI_IRQ 0
  784. #define BCM_6348_OHCI0_IRQ (IRQ_INTERNAL_BASE + 12)
  785. #define BCM_6348_EHCI0_IRQ 0
  786. #define BCM_6348_USBD_IRQ 0
  787. #define BCM_6348_USBD_RXDMA0_IRQ 0
  788. #define BCM_6348_USBD_TXDMA0_IRQ 0
  789. #define BCM_6348_USBD_RXDMA1_IRQ 0
  790. #define BCM_6348_USBD_TXDMA1_IRQ 0
  791. #define BCM_6348_USBD_RXDMA2_IRQ 0
  792. #define BCM_6348_USBD_TXDMA2_IRQ 0
  793. #define BCM_6348_ENET0_RXDMA_IRQ (IRQ_INTERNAL_BASE + 20)
  794. #define BCM_6348_ENET0_TXDMA_IRQ (IRQ_INTERNAL_BASE + 21)
  795. #define BCM_6348_ENET1_RXDMA_IRQ (IRQ_INTERNAL_BASE + 22)
  796. #define BCM_6348_ENET1_TXDMA_IRQ (IRQ_INTERNAL_BASE + 23)
  797. #define BCM_6348_PCI_IRQ (IRQ_INTERNAL_BASE + 24)
  798. #define BCM_6348_PCMCIA_IRQ (IRQ_INTERNAL_BASE + 24)
  799. #define BCM_6348_ATM_IRQ (IRQ_INTERNAL_BASE + 5)
  800. #define BCM_6348_ENETSW_RXDMA0_IRQ 0
  801. #define BCM_6348_ENETSW_RXDMA1_IRQ 0
  802. #define BCM_6348_ENETSW_RXDMA2_IRQ 0
  803. #define BCM_6348_ENETSW_RXDMA3_IRQ 0
  804. #define BCM_6348_ENETSW_TXDMA0_IRQ 0
  805. #define BCM_6348_ENETSW_TXDMA1_IRQ 0
  806. #define BCM_6348_ENETSW_TXDMA2_IRQ 0
  807. #define BCM_6348_ENETSW_TXDMA3_IRQ 0
  808. #define BCM_6348_XTM_IRQ 0
  809. #define BCM_6348_XTM_DMA0_IRQ 0
  810. /*
  811. * 6358 irqs
  812. */
  813. #define BCM_6358_TIMER_IRQ (IRQ_INTERNAL_BASE + 0)
  814. #define BCM_6358_SPI_IRQ (IRQ_INTERNAL_BASE + 1)
  815. #define BCM_6358_UART0_IRQ (IRQ_INTERNAL_BASE + 2)
  816. #define BCM_6358_UART1_IRQ (IRQ_INTERNAL_BASE + 3)
  817. #define BCM_6358_DSL_IRQ (IRQ_INTERNAL_BASE + 29)
  818. #define BCM_6358_ENET0_IRQ (IRQ_INTERNAL_BASE + 8)
  819. #define BCM_6358_ENET1_IRQ (IRQ_INTERNAL_BASE + 6)
  820. #define BCM_6358_ENET_PHY_IRQ (IRQ_INTERNAL_BASE + 9)
  821. #define BCM_6358_HSSPI_IRQ 0
  822. #define BCM_6358_OHCI0_IRQ (IRQ_INTERNAL_BASE + 5)
  823. #define BCM_6358_EHCI0_IRQ (IRQ_INTERNAL_BASE + 10)
  824. #define BCM_6358_USBD_IRQ 0
  825. #define BCM_6358_USBD_RXDMA0_IRQ 0
  826. #define BCM_6358_USBD_TXDMA0_IRQ 0
  827. #define BCM_6358_USBD_RXDMA1_IRQ 0
  828. #define BCM_6358_USBD_TXDMA1_IRQ 0
  829. #define BCM_6358_USBD_RXDMA2_IRQ 0
  830. #define BCM_6358_USBD_TXDMA2_IRQ 0
  831. #define BCM_6358_ENET0_RXDMA_IRQ (IRQ_INTERNAL_BASE + 15)
  832. #define BCM_6358_ENET0_TXDMA_IRQ (IRQ_INTERNAL_BASE + 16)
  833. #define BCM_6358_ENET1_RXDMA_IRQ (IRQ_INTERNAL_BASE + 17)
  834. #define BCM_6358_ENET1_TXDMA_IRQ (IRQ_INTERNAL_BASE + 18)
  835. #define BCM_6358_PCI_IRQ (IRQ_INTERNAL_BASE + 31)
  836. #define BCM_6358_PCMCIA_IRQ (IRQ_INTERNAL_BASE + 24)
  837. #define BCM_6358_ATM_IRQ (IRQ_INTERNAL_BASE + 19)
  838. #define BCM_6358_ENETSW_RXDMA0_IRQ 0
  839. #define BCM_6358_ENETSW_RXDMA1_IRQ 0
  840. #define BCM_6358_ENETSW_RXDMA2_IRQ 0
  841. #define BCM_6358_ENETSW_RXDMA3_IRQ 0
  842. #define BCM_6358_ENETSW_TXDMA0_IRQ 0
  843. #define BCM_6358_ENETSW_TXDMA1_IRQ 0
  844. #define BCM_6358_ENETSW_TXDMA2_IRQ 0
  845. #define BCM_6358_ENETSW_TXDMA3_IRQ 0
  846. #define BCM_6358_XTM_IRQ 0
  847. #define BCM_6358_XTM_DMA0_IRQ 0
  848. #define BCM_6358_PCM_DMA0_IRQ (IRQ_INTERNAL_BASE + 23)
  849. #define BCM_6358_PCM_DMA1_IRQ (IRQ_INTERNAL_BASE + 24)
  850. #define BCM_6358_EXT_IRQ0 (IRQ_INTERNAL_BASE + 25)
  851. #define BCM_6358_EXT_IRQ1 (IRQ_INTERNAL_BASE + 26)
  852. #define BCM_6358_EXT_IRQ2 (IRQ_INTERNAL_BASE + 27)
  853. #define BCM_6358_EXT_IRQ3 (IRQ_INTERNAL_BASE + 28)
  854. /*
  855. * 6362 irqs
  856. */
  857. #define BCM_6362_HIGH_IRQ_BASE (IRQ_INTERNAL_BASE + 32)
  858. #define BCM_6362_TIMER_IRQ (IRQ_INTERNAL_BASE + 0)
  859. #define BCM_6362_SPI_IRQ (IRQ_INTERNAL_BASE + 2)
  860. #define BCM_6362_UART0_IRQ (IRQ_INTERNAL_BASE + 3)
  861. #define BCM_6362_UART1_IRQ (IRQ_INTERNAL_BASE + 4)
  862. #define BCM_6362_DSL_IRQ (IRQ_INTERNAL_BASE + 28)
  863. #define BCM_6362_UDC0_IRQ 0
  864. #define BCM_6362_ENET0_IRQ 0
  865. #define BCM_6362_ENET1_IRQ 0
  866. #define BCM_6362_ENET_PHY_IRQ (IRQ_INTERNAL_BASE + 14)
  867. #define BCM_6362_HSSPI_IRQ (IRQ_INTERNAL_BASE + 5)
  868. #define BCM_6362_OHCI0_IRQ (IRQ_INTERNAL_BASE + 9)
  869. #define BCM_6362_EHCI0_IRQ (IRQ_INTERNAL_BASE + 10)
  870. #define BCM_6362_USBD_IRQ (IRQ_INTERNAL_BASE + 11)
  871. #define BCM_6362_USBD_RXDMA0_IRQ (IRQ_INTERNAL_BASE + 20)
  872. #define BCM_6362_USBD_TXDMA0_IRQ (IRQ_INTERNAL_BASE + 21)
  873. #define BCM_6362_USBD_RXDMA1_IRQ (IRQ_INTERNAL_BASE + 22)
  874. #define BCM_6362_USBD_TXDMA1_IRQ (IRQ_INTERNAL_BASE + 23)
  875. #define BCM_6362_USBD_RXDMA2_IRQ (IRQ_INTERNAL_BASE + 24)
  876. #define BCM_6362_USBD_TXDMA2_IRQ (IRQ_INTERNAL_BASE + 25)
  877. #define BCM_6362_PCMCIA_IRQ 0
  878. #define BCM_6362_ENET0_RXDMA_IRQ 0
  879. #define BCM_6362_ENET0_TXDMA_IRQ 0
  880. #define BCM_6362_ENET1_RXDMA_IRQ 0
  881. #define BCM_6362_ENET1_TXDMA_IRQ 0
  882. #define BCM_6362_PCI_IRQ (IRQ_INTERNAL_BASE + 30)
  883. #define BCM_6362_ATM_IRQ 0
  884. #define BCM_6362_ENETSW_RXDMA0_IRQ (BCM_6362_HIGH_IRQ_BASE + 0)
  885. #define BCM_6362_ENETSW_RXDMA1_IRQ (BCM_6362_HIGH_IRQ_BASE + 1)
  886. #define BCM_6362_ENETSW_RXDMA2_IRQ (BCM_6362_HIGH_IRQ_BASE + 2)
  887. #define BCM_6362_ENETSW_RXDMA3_IRQ (BCM_6362_HIGH_IRQ_BASE + 3)
  888. #define BCM_6362_ENETSW_TXDMA0_IRQ 0
  889. #define BCM_6362_ENETSW_TXDMA1_IRQ 0
  890. #define BCM_6362_ENETSW_TXDMA2_IRQ 0
  891. #define BCM_6362_ENETSW_TXDMA3_IRQ 0
  892. #define BCM_6362_XTM_IRQ 0
  893. #define BCM_6362_XTM_DMA0_IRQ (BCM_6362_HIGH_IRQ_BASE + 12)
  894. #define BCM_6362_RING_OSC_IRQ (IRQ_INTERNAL_BASE + 1)
  895. #define BCM_6362_WLAN_GPIO_IRQ (IRQ_INTERNAL_BASE + 6)
  896. #define BCM_6362_WLAN_IRQ (IRQ_INTERNAL_BASE + 7)
  897. #define BCM_6362_IPSEC_IRQ (IRQ_INTERNAL_BASE + 8)
  898. #define BCM_6362_NAND_IRQ (IRQ_INTERNAL_BASE + 12)
  899. #define BCM_6362_PCM_IRQ (IRQ_INTERNAL_BASE + 13)
  900. #define BCM_6362_DG_IRQ (IRQ_INTERNAL_BASE + 15)
  901. #define BCM_6362_EPHY_ENERGY0_IRQ (IRQ_INTERNAL_BASE + 16)
  902. #define BCM_6362_EPHY_ENERGY1_IRQ (IRQ_INTERNAL_BASE + 17)
  903. #define BCM_6362_EPHY_ENERGY2_IRQ (IRQ_INTERNAL_BASE + 18)
  904. #define BCM_6362_EPHY_ENERGY3_IRQ (IRQ_INTERNAL_BASE + 19)
  905. #define BCM_6362_IPSEC_DMA0_IRQ (IRQ_INTERNAL_BASE + 26)
  906. #define BCM_6362_IPSEC_DMA1_IRQ (IRQ_INTERNAL_BASE + 27)
  907. #define BCM_6362_FAP0_IRQ (IRQ_INTERNAL_BASE + 29)
  908. #define BCM_6362_PCM_DMA0_IRQ (BCM_6362_HIGH_IRQ_BASE + 4)
  909. #define BCM_6362_PCM_DMA1_IRQ (BCM_6362_HIGH_IRQ_BASE + 5)
  910. #define BCM_6362_DECT0_IRQ (BCM_6362_HIGH_IRQ_BASE + 6)
  911. #define BCM_6362_DECT1_IRQ (BCM_6362_HIGH_IRQ_BASE + 7)
  912. #define BCM_6362_EXT_IRQ0 (BCM_6362_HIGH_IRQ_BASE + 8)
  913. #define BCM_6362_EXT_IRQ1 (BCM_6362_HIGH_IRQ_BASE + 9)
  914. #define BCM_6362_EXT_IRQ2 (BCM_6362_HIGH_IRQ_BASE + 10)
  915. #define BCM_6362_EXT_IRQ3 (BCM_6362_HIGH_IRQ_BASE + 11)
  916. /*
  917. * 6368 irqs
  918. */
  919. #define BCM_6368_HIGH_IRQ_BASE (IRQ_INTERNAL_BASE + 32)
  920. #define BCM_6368_TIMER_IRQ (IRQ_INTERNAL_BASE + 0)
  921. #define BCM_6368_SPI_IRQ (IRQ_INTERNAL_BASE + 1)
  922. #define BCM_6368_UART0_IRQ (IRQ_INTERNAL_BASE + 2)
  923. #define BCM_6368_UART1_IRQ (IRQ_INTERNAL_BASE + 3)
  924. #define BCM_6368_DSL_IRQ (IRQ_INTERNAL_BASE + 4)
  925. #define BCM_6368_ENET0_IRQ 0
  926. #define BCM_6368_ENET1_IRQ 0
  927. #define BCM_6368_ENET_PHY_IRQ (IRQ_INTERNAL_BASE + 15)
  928. #define BCM_6368_HSSPI_IRQ 0
  929. #define BCM_6368_OHCI0_IRQ (IRQ_INTERNAL_BASE + 5)
  930. #define BCM_6368_EHCI0_IRQ (IRQ_INTERNAL_BASE + 7)
  931. #define BCM_6368_USBD_IRQ (IRQ_INTERNAL_BASE + 8)
  932. #define BCM_6368_USBD_RXDMA0_IRQ (IRQ_INTERNAL_BASE + 26)
  933. #define BCM_6368_USBD_TXDMA0_IRQ (IRQ_INTERNAL_BASE + 27)
  934. #define BCM_6368_USBD_RXDMA1_IRQ (IRQ_INTERNAL_BASE + 28)
  935. #define BCM_6368_USBD_TXDMA1_IRQ (IRQ_INTERNAL_BASE + 29)
  936. #define BCM_6368_USBD_RXDMA2_IRQ (IRQ_INTERNAL_BASE + 30)
  937. #define BCM_6368_USBD_TXDMA2_IRQ (IRQ_INTERNAL_BASE + 31)
  938. #define BCM_6368_PCMCIA_IRQ 0
  939. #define BCM_6368_ENET0_RXDMA_IRQ 0
  940. #define BCM_6368_ENET0_TXDMA_IRQ 0
  941. #define BCM_6368_ENET1_RXDMA_IRQ 0
  942. #define BCM_6368_ENET1_TXDMA_IRQ 0
  943. #define BCM_6368_PCI_IRQ (IRQ_INTERNAL_BASE + 13)
  944. #define BCM_6368_ATM_IRQ 0
  945. #define BCM_6368_ENETSW_RXDMA0_IRQ (BCM_6368_HIGH_IRQ_BASE + 0)
  946. #define BCM_6368_ENETSW_RXDMA1_IRQ (BCM_6368_HIGH_IRQ_BASE + 1)
  947. #define BCM_6368_ENETSW_RXDMA2_IRQ (BCM_6368_HIGH_IRQ_BASE + 2)
  948. #define BCM_6368_ENETSW_RXDMA3_IRQ (BCM_6368_HIGH_IRQ_BASE + 3)
  949. #define BCM_6368_ENETSW_TXDMA0_IRQ (BCM_6368_HIGH_IRQ_BASE + 4)
  950. #define BCM_6368_ENETSW_TXDMA1_IRQ (BCM_6368_HIGH_IRQ_BASE + 5)
  951. #define BCM_6368_ENETSW_TXDMA2_IRQ (BCM_6368_HIGH_IRQ_BASE + 6)
  952. #define BCM_6368_ENETSW_TXDMA3_IRQ (BCM_6368_HIGH_IRQ_BASE + 7)
  953. #define BCM_6368_XTM_IRQ (IRQ_INTERNAL_BASE + 11)
  954. #define BCM_6368_XTM_DMA0_IRQ (BCM_6368_HIGH_IRQ_BASE + 8)
  955. #define BCM_6368_PCM_DMA0_IRQ (BCM_6368_HIGH_IRQ_BASE + 30)
  956. #define BCM_6368_PCM_DMA1_IRQ (BCM_6368_HIGH_IRQ_BASE + 31)
  957. #define BCM_6368_EXT_IRQ0 (IRQ_INTERNAL_BASE + 20)
  958. #define BCM_6368_EXT_IRQ1 (IRQ_INTERNAL_BASE + 21)
  959. #define BCM_6368_EXT_IRQ2 (IRQ_INTERNAL_BASE + 22)
  960. #define BCM_6368_EXT_IRQ3 (IRQ_INTERNAL_BASE + 23)
  961. #define BCM_6368_EXT_IRQ4 (IRQ_INTERNAL_BASE + 24)
  962. #define BCM_6368_EXT_IRQ5 (IRQ_INTERNAL_BASE + 25)
  963. extern const int *bcm63xx_irqs;
  964. #define __GEN_CPU_IRQ_TABLE(__cpu) \
  965. [IRQ_TIMER] = BCM_## __cpu ##_TIMER_IRQ, \
  966. [IRQ_SPI] = BCM_## __cpu ##_SPI_IRQ, \
  967. [IRQ_UART0] = BCM_## __cpu ##_UART0_IRQ, \
  968. [IRQ_UART1] = BCM_## __cpu ##_UART1_IRQ, \
  969. [IRQ_DSL] = BCM_## __cpu ##_DSL_IRQ, \
  970. [IRQ_ENET0] = BCM_## __cpu ##_ENET0_IRQ, \
  971. [IRQ_ENET1] = BCM_## __cpu ##_ENET1_IRQ, \
  972. [IRQ_ENET_PHY] = BCM_## __cpu ##_ENET_PHY_IRQ, \
  973. [IRQ_HSSPI] = BCM_## __cpu ##_HSSPI_IRQ, \
  974. [IRQ_OHCI0] = BCM_## __cpu ##_OHCI0_IRQ, \
  975. [IRQ_EHCI0] = BCM_## __cpu ##_EHCI0_IRQ, \
  976. [IRQ_USBD] = BCM_## __cpu ##_USBD_IRQ, \
  977. [IRQ_USBD_RXDMA0] = BCM_## __cpu ##_USBD_RXDMA0_IRQ, \
  978. [IRQ_USBD_TXDMA0] = BCM_## __cpu ##_USBD_TXDMA0_IRQ, \
  979. [IRQ_USBD_RXDMA1] = BCM_## __cpu ##_USBD_RXDMA1_IRQ, \
  980. [IRQ_USBD_TXDMA1] = BCM_## __cpu ##_USBD_TXDMA1_IRQ, \
  981. [IRQ_USBD_RXDMA2] = BCM_## __cpu ##_USBD_RXDMA2_IRQ, \
  982. [IRQ_USBD_TXDMA2] = BCM_## __cpu ##_USBD_TXDMA2_IRQ, \
  983. [IRQ_ENET0_RXDMA] = BCM_## __cpu ##_ENET0_RXDMA_IRQ, \
  984. [IRQ_ENET0_TXDMA] = BCM_## __cpu ##_ENET0_TXDMA_IRQ, \
  985. [IRQ_ENET1_RXDMA] = BCM_## __cpu ##_ENET1_RXDMA_IRQ, \
  986. [IRQ_ENET1_TXDMA] = BCM_## __cpu ##_ENET1_TXDMA_IRQ, \
  987. [IRQ_PCI] = BCM_## __cpu ##_PCI_IRQ, \
  988. [IRQ_PCMCIA] = BCM_## __cpu ##_PCMCIA_IRQ, \
  989. [IRQ_ATM] = BCM_## __cpu ##_ATM_IRQ, \
  990. [IRQ_ENETSW_RXDMA0] = BCM_## __cpu ##_ENETSW_RXDMA0_IRQ, \
  991. [IRQ_ENETSW_RXDMA1] = BCM_## __cpu ##_ENETSW_RXDMA1_IRQ, \
  992. [IRQ_ENETSW_RXDMA2] = BCM_## __cpu ##_ENETSW_RXDMA2_IRQ, \
  993. [IRQ_ENETSW_RXDMA3] = BCM_## __cpu ##_ENETSW_RXDMA3_IRQ, \
  994. [IRQ_ENETSW_TXDMA0] = BCM_## __cpu ##_ENETSW_TXDMA0_IRQ, \
  995. [IRQ_ENETSW_TXDMA1] = BCM_## __cpu ##_ENETSW_TXDMA1_IRQ, \
  996. [IRQ_ENETSW_TXDMA2] = BCM_## __cpu ##_ENETSW_TXDMA2_IRQ, \
  997. [IRQ_ENETSW_TXDMA3] = BCM_## __cpu ##_ENETSW_TXDMA3_IRQ, \
  998. [IRQ_XTM] = BCM_## __cpu ##_XTM_IRQ, \
  999. [IRQ_XTM_DMA0] = BCM_## __cpu ##_XTM_DMA0_IRQ, \
  1000. static inline int bcm63xx_get_irq_number(enum bcm63xx_irq irq)
  1001. {
  1002. return bcm63xx_irqs[irq];
  1003. }
  1004. /*
  1005. * return installed memory size
  1006. */
  1007. unsigned int bcm63xx_get_memory_size(void);
  1008. void bcm63xx_machine_halt(void);
  1009. void bcm63xx_machine_reboot(void);
  1010. #endif /* !BCM63XX_CPU_H_ */