setup-sh7786.c 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407
  1. /*
  2. * SH7786 Setup
  3. *
  4. * Copyright (C) 2009 Renesas Solutions Corp.
  5. * Kuninori Morimoto <morimoto.kuninori@renesas.com>
  6. *
  7. * Based on SH7785 Setup
  8. *
  9. * Copyright (C) 2007 Paul Mundt
  10. *
  11. * This file is subject to the terms and conditions of the GNU General Public
  12. * License. See the file "COPYING" in the main directory of this archive
  13. * for more details.
  14. */
  15. #include <linux/platform_device.h>
  16. #include <linux/init.h>
  17. #include <linux/serial.h>
  18. #include <linux/serial_sci.h>
  19. #include <linux/io.h>
  20. #include <linux/mm.h>
  21. #include <asm/mmzone.h>
  22. static struct plat_sci_port sci_platform_data[] = {
  23. {
  24. .mapbase = 0xffea0000,
  25. .flags = UPF_BOOT_AUTOCONF,
  26. .type = PORT_SCIF,
  27. .irqs = { 40, 41, 43, 42 },
  28. },
  29. /*
  30. * The rest of these all have multiplexed IRQs
  31. */
  32. {
  33. .mapbase = 0xffeb0000,
  34. .flags = UPF_BOOT_AUTOCONF,
  35. .type = PORT_SCIF,
  36. .irqs = { 44, 44, 44, 44 },
  37. }, {
  38. .mapbase = 0xffec0000,
  39. .flags = UPF_BOOT_AUTOCONF,
  40. .type = PORT_SCIF,
  41. .irqs = { 50, 50, 50, 50 },
  42. }, {
  43. .mapbase = 0xffed0000,
  44. .flags = UPF_BOOT_AUTOCONF,
  45. .type = PORT_SCIF,
  46. .irqs = { 51, 51, 51, 51 },
  47. }, {
  48. .mapbase = 0xffee0000,
  49. .flags = UPF_BOOT_AUTOCONF,
  50. .type = PORT_SCIF,
  51. .irqs = { 52, 52, 52, 52 },
  52. }, {
  53. .mapbase = 0xffef0000,
  54. .flags = UPF_BOOT_AUTOCONF,
  55. .type = PORT_SCIF,
  56. .irqs = { 53, 53, 53, 53 },
  57. }, {
  58. .flags = 0,
  59. }
  60. };
  61. static struct platform_device sci_device = {
  62. .name = "sh-sci",
  63. .id = -1,
  64. .dev = {
  65. .platform_data = sci_platform_data,
  66. },
  67. };
  68. static struct platform_device *sh7786_devices[] __initdata = {
  69. &sci_device,
  70. };
  71. static int __init sh7786_devices_setup(void)
  72. {
  73. return platform_add_devices(sh7786_devices,
  74. ARRAY_SIZE(sh7786_devices));
  75. }
  76. device_initcall(sh7786_devices_setup);
  77. enum {
  78. UNUSED = 0,
  79. /* interrupt sources */
  80. IRL0_LLLL, IRL0_LLLH, IRL0_LLHL, IRL0_LLHH,
  81. IRL0_LHLL, IRL0_LHLH, IRL0_LHHL, IRL0_LHHH,
  82. IRL0_HLLL, IRL0_HLLH, IRL0_HLHL, IRL0_HLHH,
  83. IRL0_HHLL, IRL0_HHLH, IRL0_HHHL,
  84. IRL4_LLLL, IRL4_LLLH, IRL4_LLHL, IRL4_LLHH,
  85. IRL4_LHLL, IRL4_LHLH, IRL4_LHHL, IRL4_LHHH,
  86. IRL4_HLLL, IRL4_HLLH, IRL4_HLHL, IRL4_HLHH,
  87. IRL4_HHLL, IRL4_HHLH, IRL4_HHHL,
  88. IRQ0, IRQ1, IRQ2, IRQ3, IRQ4, IRQ5, IRQ6, IRQ7,
  89. WDT,
  90. TMU0_0, TMU0_1, TMU0_2, TMU0_3,
  91. TMU1_0, TMU1_1, TMU1_2,
  92. DMAC0_0, DMAC0_1, DMAC0_2, DMAC0_3, DMAC0_4, DMAC0_5, DMAC0_6,
  93. HUDI1, HUDI0,
  94. DMAC1_0, DMAC1_1, DMAC1_2, DMAC1_3,
  95. HPB_0, HPB_1, HPB_2,
  96. SCIF0_0, SCIF0_1, SCIF0_2, SCIF0_3,
  97. SCIF1,
  98. TMU2, TMU3,
  99. SCIF2, SCIF3, SCIF4, SCIF5,
  100. Eth_0, Eth_1,
  101. PCIeC0_0, PCIeC0_1, PCIeC0_2,
  102. PCIeC1_0, PCIeC1_1, PCIeC1_2,
  103. USB,
  104. I2C0, I2C1,
  105. DU,
  106. SSI0, SSI1, SSI2, SSI3,
  107. PCIeC2_0, PCIeC2_1, PCIeC2_2,
  108. HAC0, HAC1,
  109. FLCTL,
  110. HSPI,
  111. GPIO0, GPIO1,
  112. Thermal,
  113. INTC0, INTC1, INTC2, INTC3, INTC4, INTC5, INTC6, INTC7,
  114. /* interrupt groups */
  115. };
  116. static struct intc_vect vectors[] __initdata = {
  117. INTC_VECT(WDT, 0x3e0),
  118. INTC_VECT(TMU0_0, 0x400), INTC_VECT(TMU0_1, 0x420),
  119. INTC_VECT(TMU0_2, 0x440), INTC_VECT(TMU0_3, 0x460),
  120. INTC_VECT(TMU1_0, 0x480), INTC_VECT(TMU1_1, 0x4a0),
  121. INTC_VECT(TMU1_2, 0x4c0),
  122. INTC_VECT(DMAC0_0, 0x500), INTC_VECT(DMAC0_1, 0x520),
  123. INTC_VECT(DMAC0_2, 0x540), INTC_VECT(DMAC0_3, 0x560),
  124. INTC_VECT(DMAC0_4, 0x580), INTC_VECT(DMAC0_5, 0x5a0),
  125. INTC_VECT(DMAC0_6, 0x5c0),
  126. INTC_VECT(HUDI1, 0x5e0), INTC_VECT(HUDI0, 0x600),
  127. INTC_VECT(DMAC1_0, 0x620), INTC_VECT(DMAC1_1, 0x640),
  128. INTC_VECT(DMAC1_2, 0x660), INTC_VECT(DMAC1_3, 0x680),
  129. INTC_VECT(HPB_0, 0x6a0), INTC_VECT(HPB_1, 0x6c0),
  130. INTC_VECT(HPB_2, 0x6e0),
  131. INTC_VECT(SCIF0_0, 0x700), INTC_VECT(SCIF0_1, 0x720),
  132. INTC_VECT(SCIF0_2, 0x740), INTC_VECT(SCIF0_3, 0x760),
  133. INTC_VECT(SCIF1, 0x780),
  134. INTC_VECT(TMU2, 0x7a0), INTC_VECT(TMU3, 0x7c0),
  135. INTC_VECT(SCIF2, 0x840), INTC_VECT(SCIF3, 0x860),
  136. INTC_VECT(SCIF4, 0x880), INTC_VECT(SCIF5, 0x8a0),
  137. INTC_VECT(Eth_0, 0x8c0), INTC_VECT(Eth_1, 0x8e0),
  138. INTC_VECT(PCIeC0_0, 0xae0), INTC_VECT(PCIeC0_1, 0xb00),
  139. INTC_VECT(PCIeC0_2, 0xb20),
  140. INTC_VECT(PCIeC1_0, 0xb40), INTC_VECT(PCIeC1_1, 0xb60),
  141. INTC_VECT(PCIeC1_2, 0xb80),
  142. INTC_VECT(USB, 0xba0),
  143. INTC_VECT(I2C0, 0xcc0), INTC_VECT(I2C1, 0xce0),
  144. INTC_VECT(DU, 0xd00),
  145. INTC_VECT(SSI0, 0xd20), INTC_VECT(SSI1, 0xd40),
  146. INTC_VECT(SSI2, 0xd60), INTC_VECT(SSI3, 0xd80),
  147. INTC_VECT(PCIeC2_0, 0xda0), INTC_VECT(PCIeC2_1, 0xdc0),
  148. INTC_VECT(PCIeC2_2, 0xde0),
  149. INTC_VECT(HAC0, 0xe00), INTC_VECT(HAC1, 0xe20),
  150. INTC_VECT(FLCTL, 0xe40),
  151. INTC_VECT(HSPI, 0xe80),
  152. INTC_VECT(GPIO0, 0xea0), INTC_VECT(GPIO1, 0xec0),
  153. INTC_VECT(Thermal, 0xee0),
  154. };
  155. /* FIXME: Main CPU support only now */
  156. #if 1 /* Main CPU */
  157. #define CnINTMSK0 0xfe410030
  158. #define CnINTMSK1 0xfe410040
  159. #define CnINTMSKCLR0 0xfe410050
  160. #define CnINTMSKCLR1 0xfe410060
  161. #define CnINT2MSKR0 0xfe410a20
  162. #define CnINT2MSKR1 0xfe410a24
  163. #define CnINT2MSKR2 0xfe410a28
  164. #define CnINT2MSKR3 0xfe410a2c
  165. #define CnINT2MSKCR0 0xfe410a30
  166. #define CnINT2MSKCR1 0xfe410a34
  167. #define CnINT2MSKCR2 0xfe410a38
  168. #define CnINT2MSKCR3 0xfe410a3c
  169. #else /* Sub CPU */
  170. #define CnINTMSK0 0xfe410034
  171. #define CnINTMSK1 0xfe410044
  172. #define CnINTMSKCLR0 0xfe410054
  173. #define CnINTMSKCLR1 0xfe410064
  174. #define CnINT2MSKR0 0xfe410b20
  175. #define CnINT2MSKR1 0xfe410b24
  176. #define CnINT2MSKR2 0xfe410b28
  177. #define CnINT2MSKR3 0xfe410b2c
  178. #define CnINT2MSKCR0 0xfe410b30
  179. #define CnINT2MSKCR1 0xfe410b34
  180. #define CnINT2MSKCR2 0xfe410b38
  181. #define CnINT2MSKCR3 0xfe410b3c
  182. #endif
  183. #define INTMSK2 0xfe410068
  184. #define INTMSKCLR2 0xfe41006c
  185. static struct intc_mask_reg mask_registers[] __initdata = {
  186. { CnINTMSK0, CnINTMSKCLR0, 32,
  187. { IRQ0, IRQ1, IRQ2, IRQ3, IRQ4, IRQ5, IRQ6, IRQ7 } },
  188. { INTMSK2, INTMSKCLR2, 32,
  189. { IRL0_LLLL, IRL0_LLLH, IRL0_LLHL, IRL0_LLHH,
  190. IRL0_LHLL, IRL0_LHLH, IRL0_LHHL, IRL0_LHHH,
  191. IRL0_HLLL, IRL0_HLLH, IRL0_HLHL, IRL0_HLHH,
  192. IRL0_HHLL, IRL0_HHLH, IRL0_HHHL, 0,
  193. IRL4_LLLL, IRL4_LLLH, IRL4_LLHL, IRL4_LLHH,
  194. IRL4_LHLL, IRL4_LHLH, IRL4_LHHL, IRL4_LHHH,
  195. IRL4_HLLL, IRL4_HLLH, IRL4_HLHL, IRL4_HLHH,
  196. IRL4_HHLL, IRL4_HHLH, IRL4_HHHL, 0, } },
  197. { CnINT2MSKR0, CnINT2MSKCR0 , 32,
  198. { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  199. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, WDT } },
  200. { CnINT2MSKR1, CnINT2MSKCR1, 32,
  201. { TMU0_0, TMU0_1, TMU0_2, TMU0_3, TMU1_0, TMU1_1, TMU1_2, 0,
  202. DMAC0_0, DMAC0_1, DMAC0_2, DMAC0_3, DMAC0_4, DMAC0_5, DMAC0_6,
  203. HUDI1, HUDI0,
  204. DMAC1_0, DMAC1_1, DMAC1_2, DMAC1_3,
  205. HPB_0, HPB_1, HPB_2,
  206. SCIF0_0, SCIF0_1, SCIF0_2, SCIF0_3,
  207. SCIF1,
  208. TMU2, TMU3, 0, } },
  209. { CnINT2MSKR2, CnINT2MSKCR2, 32,
  210. { 0, 0, SCIF2, SCIF3, SCIF4, SCIF5,
  211. Eth_0, Eth_1,
  212. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  213. PCIeC0_0, PCIeC0_1, PCIeC0_2,
  214. PCIeC1_0, PCIeC1_1, PCIeC1_2,
  215. USB, 0, 0 } },
  216. { CnINT2MSKR3, CnINT2MSKCR3, 32,
  217. { 0, 0, 0, 0, 0, 0,
  218. I2C0, I2C1,
  219. DU, SSI0, SSI1, SSI2, SSI3,
  220. PCIeC2_0, PCIeC2_1, PCIeC2_2,
  221. HAC0, HAC1,
  222. FLCTL, 0,
  223. HSPI, GPIO0, GPIO1, Thermal,
  224. 0, 0, 0, 0, 0, 0, 0, 0 } },
  225. };
  226. static struct intc_prio_reg prio_registers[] __initdata = {
  227. { 0xfe410010, 0, 32, 4, /* INTPRI */ { IRQ0, IRQ1, IRQ2, IRQ3,
  228. IRQ4, IRQ5, IRQ6, IRQ7 } },
  229. { 0xfe410800, 0, 32, 8, /* INT2PRI0 */ { 0, 0, 0, WDT } },
  230. { 0xfe410804, 0, 32, 8, /* INT2PRI1 */ { TMU0_0, TMU0_1,
  231. TMU0_2, TMU0_3 } },
  232. { 0xfe410808, 0, 32, 8, /* INT2PRI2 */ { TMU1_0, TMU1_1,
  233. TMU1_2, 0 } },
  234. { 0xfe41080c, 0, 32, 8, /* INT2PRI3 */ { DMAC0_0, DMAC0_1,
  235. DMAC0_2, DMAC0_3 } },
  236. { 0xfe410810, 0, 32, 8, /* INT2PRI4 */ { DMAC0_4, DMAC0_5,
  237. DMAC0_6, HUDI1 } },
  238. { 0xfe410814, 0, 32, 8, /* INT2PRI5 */ { HUDI0, DMAC1_0,
  239. DMAC1_1, DMAC1_2 } },
  240. { 0xfe410818, 0, 32, 8, /* INT2PRI6 */ { DMAC1_3, HPB_0,
  241. HPB_1, HPB_2 } },
  242. { 0xfe41081c, 0, 32, 8, /* INT2PRI7 */ { SCIF0_0, SCIF0_1,
  243. SCIF0_2, SCIF0_3 } },
  244. { 0xfe410820, 0, 32, 8, /* INT2PRI8 */ { SCIF1, TMU2, TMU3, 0 } },
  245. { 0xfe410824, 0, 32, 8, /* INT2PRI9 */ { 0, 0, SCIF2, SCIF3 } },
  246. { 0xfe410828, 0, 32, 8, /* INT2PRI10 */ { SCIF4, SCIF5,
  247. Eth_0, Eth_1 } },
  248. { 0xfe41082c, 0, 32, 8, /* INT2PRI11 */ { 0, 0, 0, 0 } },
  249. { 0xfe410830, 0, 32, 8, /* INT2PRI12 */ { 0, 0, 0, 0 } },
  250. { 0xfe410834, 0, 32, 8, /* INT2PRI13 */ { 0, 0, 0, 0 } },
  251. { 0xfe410838, 0, 32, 8, /* INT2PRI14 */ { 0, 0, 0, PCIeC0_0 } },
  252. { 0xfe41083c, 0, 32, 8, /* INT2PRI15 */ { PCIeC0_1, PCIeC0_2,
  253. PCIeC1_0, PCIeC1_1 } },
  254. { 0xfe410840, 0, 32, 8, /* INT2PRI16 */ { PCIeC1_2, USB, 0, 0 } },
  255. { 0xfe410844, 0, 32, 8, /* INT2PRI17 */ { 0, 0, 0, 0 } },
  256. { 0xfe410848, 0, 32, 8, /* INT2PRI18 */ { 0, 0, I2C0, I2C1 } },
  257. { 0xfe41084c, 0, 32, 8, /* INT2PRI19 */ { DU, SSI0, SSI1, SSI2 } },
  258. { 0xfe410850, 0, 32, 8, /* INT2PRI20 */ { SSI3, PCIeC2_0,
  259. PCIeC2_1, PCIeC2_2 } },
  260. { 0xfe410854, 0, 32, 8, /* INT2PRI21 */ { HAC0, HAC1, FLCTL, 0 } },
  261. { 0xfe410858, 0, 32, 8, /* INT2PRI22 */ { HSPI, GPIO0,
  262. GPIO1, Thermal } },
  263. { 0xfe41085c, 0, 32, 8, /* INT2PRI23 */ { 0, 0, 0, 0 } },
  264. { 0xfe410860, 0, 32, 8, /* INT2PRI24 */ { 0, 0, 0, 0 } },
  265. };
  266. static DECLARE_INTC_DESC(intc_desc, "sh7786", vectors, NULL,
  267. mask_registers, prio_registers, NULL);
  268. /* Support for external interrupt pins in IRQ mode */
  269. static struct intc_vect vectors_irq0123[] __initdata = {
  270. INTC_VECT(IRQ0, 0x200), INTC_VECT(IRQ1, 0x240),
  271. INTC_VECT(IRQ2, 0x280), INTC_VECT(IRQ3, 0x2c0),
  272. };
  273. static struct intc_vect vectors_irq4567[] __initdata = {
  274. INTC_VECT(IRQ4, 0x300), INTC_VECT(IRQ5, 0x340),
  275. INTC_VECT(IRQ6, 0x380), INTC_VECT(IRQ7, 0x3c0),
  276. };
  277. static struct intc_sense_reg sense_registers[] __initdata = {
  278. { 0xfe41001c, 32, 2, /* ICR1 */ { IRQ0, IRQ1, IRQ2, IRQ3,
  279. IRQ4, IRQ5, IRQ6, IRQ7 } },
  280. };
  281. static struct intc_mask_reg ack_registers[] __initdata = {
  282. { 0xfe410024, 0, 32, /* INTREQ */
  283. { IRQ0, IRQ1, IRQ2, IRQ3, IRQ4, IRQ5, IRQ6, IRQ7 } },
  284. };
  285. static DECLARE_INTC_DESC_ACK(intc_desc_irq0123, "sh7786-irq0123",
  286. vectors_irq0123, NULL, mask_registers,
  287. prio_registers, sense_registers, ack_registers);
  288. static DECLARE_INTC_DESC_ACK(intc_desc_irq4567, "sh7786-irq4567",
  289. vectors_irq4567, NULL, mask_registers,
  290. prio_registers, sense_registers, ack_registers);
  291. /* External interrupt pins in IRL mode */
  292. static struct intc_vect vectors_irl0123[] __initdata = {
  293. INTC_VECT(IRL0_LLLL, 0x200), INTC_VECT(IRL0_LLLH, 0x220),
  294. INTC_VECT(IRL0_LLHL, 0x240), INTC_VECT(IRL0_LLHH, 0x260),
  295. INTC_VECT(IRL0_LHLL, 0x280), INTC_VECT(IRL0_LHLH, 0x2a0),
  296. INTC_VECT(IRL0_LHHL, 0x2c0), INTC_VECT(IRL0_LHHH, 0x2e0),
  297. INTC_VECT(IRL0_HLLL, 0x300), INTC_VECT(IRL0_HLLH, 0x320),
  298. INTC_VECT(IRL0_HLHL, 0x340), INTC_VECT(IRL0_HLHH, 0x360),
  299. INTC_VECT(IRL0_HHLL, 0x380), INTC_VECT(IRL0_HHLH, 0x3a0),
  300. INTC_VECT(IRL0_HHHL, 0x3c0),
  301. };
  302. static struct intc_vect vectors_irl4567[] __initdata = {
  303. INTC_VECT(IRL4_LLLL, 0x900), INTC_VECT(IRL4_LLLH, 0x920),
  304. INTC_VECT(IRL4_LLHL, 0x940), INTC_VECT(IRL4_LLHH, 0x960),
  305. INTC_VECT(IRL4_LHLL, 0x980), INTC_VECT(IRL4_LHLH, 0x9a0),
  306. INTC_VECT(IRL4_LHHL, 0x9c0), INTC_VECT(IRL4_LHHH, 0x9e0),
  307. INTC_VECT(IRL4_HLLL, 0xa00), INTC_VECT(IRL4_HLLH, 0xa20),
  308. INTC_VECT(IRL4_HLHL, 0xa40), INTC_VECT(IRL4_HLHH, 0xa60),
  309. INTC_VECT(IRL4_HHLL, 0xa80), INTC_VECT(IRL4_HHLH, 0xaa0),
  310. INTC_VECT(IRL4_HHHL, 0xac0),
  311. };
  312. static DECLARE_INTC_DESC(intc_desc_irl0123, "sh7786-irl0123", vectors_irl0123,
  313. NULL, mask_registers, NULL, NULL);
  314. static DECLARE_INTC_DESC(intc_desc_irl4567, "sh7786-irl4567", vectors_irl4567,
  315. NULL, mask_registers, NULL, NULL);
  316. #define INTC_ICR0 0xfe410000
  317. #define INTC_INTMSK0 CnINTMSK0
  318. #define INTC_INTMSK1 CnINTMSK1
  319. #define INTC_INTMSK2 INTMSK2
  320. #define INTC_INTMSKCLR1 CnINTMSKCLR1
  321. #define INTC_INTMSKCLR2 INTMSKCLR2
  322. void __init plat_irq_setup(void)
  323. {
  324. /* disable IRQ3-0 + IRQ7-4 */
  325. ctrl_outl(0xff000000, INTC_INTMSK0);
  326. /* disable IRL3-0 + IRL7-4 */
  327. ctrl_outl(0xc0000000, INTC_INTMSK1);
  328. ctrl_outl(0xfffefffe, INTC_INTMSK2);
  329. /* select IRL mode for IRL3-0 + IRL7-4 */
  330. ctrl_outl(ctrl_inl(INTC_ICR0) & ~0x00c00000, INTC_ICR0);
  331. register_intc_controller(&intc_desc);
  332. }
  333. void __init plat_irq_setup_pins(int mode)
  334. {
  335. switch (mode) {
  336. case IRQ_MODE_IRQ7654:
  337. /* select IRQ mode for IRL7-4 */
  338. ctrl_outl(ctrl_inl(INTC_ICR0) | 0x00400000, INTC_ICR0);
  339. register_intc_controller(&intc_desc_irq4567);
  340. break;
  341. case IRQ_MODE_IRQ3210:
  342. /* select IRQ mode for IRL3-0 */
  343. ctrl_outl(ctrl_inl(INTC_ICR0) | 0x00800000, INTC_ICR0);
  344. register_intc_controller(&intc_desc_irq0123);
  345. break;
  346. case IRQ_MODE_IRL7654:
  347. /* enable IRL7-4 but don't provide any masking */
  348. ctrl_outl(0x40000000, INTC_INTMSKCLR1);
  349. ctrl_outl(0x0000fffe, INTC_INTMSKCLR2);
  350. break;
  351. case IRQ_MODE_IRL3210:
  352. /* enable IRL0-3 but don't provide any masking */
  353. ctrl_outl(0x80000000, INTC_INTMSKCLR1);
  354. ctrl_outl(0xfffe0000, INTC_INTMSKCLR2);
  355. break;
  356. case IRQ_MODE_IRL7654_MASK:
  357. /* enable IRL7-4 and mask using cpu intc controller */
  358. ctrl_outl(0x40000000, INTC_INTMSKCLR1);
  359. register_intc_controller(&intc_desc_irl4567);
  360. break;
  361. case IRQ_MODE_IRL3210_MASK:
  362. /* enable IRL0-3 and mask using cpu intc controller */
  363. ctrl_outl(0x80000000, INTC_INTMSKCLR1);
  364. register_intc_controller(&intc_desc_irl0123);
  365. break;
  366. default:
  367. BUG();
  368. }
  369. }
  370. void __init plat_mem_setup(void)
  371. {
  372. }