Path: blob/master/arch/sh/kernel/cpu/sh4a/setup-sh7770.c
26498 views
// SPDX-License-Identifier: GPL-2.01/*2* SH7770 Setup3*4* Copyright (C) 2006 - 2008 Paul Mundt5*/6#include <linux/platform_device.h>7#include <linux/init.h>8#include <linux/serial.h>9#include <linux/serial_sci.h>10#include <linux/sh_timer.h>11#include <linux/sh_intc.h>12#include <linux/io.h>13#include <asm/platform_early.h>1415static struct plat_sci_port scif0_platform_data = {16.scscr = SCSCR_REIE | SCSCR_TOIE,17.type = PORT_SCIF,18};1920static struct resource scif0_resources[] = {21DEFINE_RES_MEM(0xff923000, 0x100),22DEFINE_RES_IRQ(evt2irq(0x9a0)),23};2425static struct platform_device scif0_device = {26.name = "sh-sci",27.id = 0,28.resource = scif0_resources,29.num_resources = ARRAY_SIZE(scif0_resources),30.dev = {31.platform_data = &scif0_platform_data,32},33};3435static struct plat_sci_port scif1_platform_data = {36.scscr = SCSCR_REIE | SCSCR_TOIE,37.type = PORT_SCIF,38};3940static struct resource scif1_resources[] = {41DEFINE_RES_MEM(0xff924000, 0x100),42DEFINE_RES_IRQ(evt2irq(0x9c0)),43};4445static struct platform_device scif1_device = {46.name = "sh-sci",47.id = 1,48.resource = scif1_resources,49.num_resources = ARRAY_SIZE(scif1_resources),50.dev = {51.platform_data = &scif1_platform_data,52},53};5455static struct plat_sci_port scif2_platform_data = {56.scscr = SCSCR_REIE | SCSCR_TOIE,57.type = PORT_SCIF,58};5960static struct resource scif2_resources[] = {61DEFINE_RES_MEM(0xff925000, 0x100),62DEFINE_RES_IRQ(evt2irq(0x9e0)),63};6465static struct platform_device scif2_device = {66.name = "sh-sci",67.id = 2,68.resource = scif2_resources,69.num_resources = ARRAY_SIZE(scif2_resources),70.dev = {71.platform_data = &scif2_platform_data,72},73};7475static struct plat_sci_port scif3_platform_data = {76.scscr = SCSCR_REIE | SCSCR_TOIE,77.type = PORT_SCIF,78};7980static struct resource scif3_resources[] = {81DEFINE_RES_MEM(0xff926000, 0x100),82DEFINE_RES_IRQ(evt2irq(0xa00)),83};8485static struct platform_device scif3_device = {86.name = "sh-sci",87.id = 3,88.resource = scif3_resources,89.num_resources = ARRAY_SIZE(scif3_resources),90.dev = {91.platform_data = &scif3_platform_data,92},93};9495static struct plat_sci_port scif4_platform_data = {96.scscr = SCSCR_REIE | SCSCR_TOIE,97.type = PORT_SCIF,98};99100static struct resource scif4_resources[] = {101DEFINE_RES_MEM(0xff927000, 0x100),102DEFINE_RES_IRQ(evt2irq(0xa20)),103};104105static struct platform_device scif4_device = {106.name = "sh-sci",107.id = 4,108.resource = scif4_resources,109.num_resources = ARRAY_SIZE(scif4_resources),110.dev = {111.platform_data = &scif4_platform_data,112},113};114115static struct plat_sci_port scif5_platform_data = {116.scscr = SCSCR_REIE | SCSCR_TOIE,117.type = PORT_SCIF,118};119120static struct resource scif5_resources[] = {121DEFINE_RES_MEM(0xff928000, 0x100),122DEFINE_RES_IRQ(evt2irq(0xa40)),123};124125static struct platform_device scif5_device = {126.name = "sh-sci",127.id = 5,128.resource = scif5_resources,129.num_resources = ARRAY_SIZE(scif5_resources),130.dev = {131.platform_data = &scif5_platform_data,132},133};134135static struct plat_sci_port scif6_platform_data = {136.scscr = SCSCR_REIE | SCSCR_TOIE,137.type = PORT_SCIF,138};139140static struct resource scif6_resources[] = {141DEFINE_RES_MEM(0xff929000, 0x100),142DEFINE_RES_IRQ(evt2irq(0xa60)),143};144145static struct platform_device scif6_device = {146.name = "sh-sci",147.id = 6,148.resource = scif6_resources,149.num_resources = ARRAY_SIZE(scif6_resources),150.dev = {151.platform_data = &scif6_platform_data,152},153};154155static struct plat_sci_port scif7_platform_data = {156.scscr = SCSCR_REIE | SCSCR_TOIE,157.type = PORT_SCIF,158};159160static struct resource scif7_resources[] = {161DEFINE_RES_MEM(0xff92a000, 0x100),162DEFINE_RES_IRQ(evt2irq(0xa80)),163};164165static struct platform_device scif7_device = {166.name = "sh-sci",167.id = 7,168.resource = scif7_resources,169.num_resources = ARRAY_SIZE(scif7_resources),170.dev = {171.platform_data = &scif7_platform_data,172},173};174175static struct plat_sci_port scif8_platform_data = {176.scscr = SCSCR_REIE | SCSCR_TOIE,177.type = PORT_SCIF,178};179180static struct resource scif8_resources[] = {181DEFINE_RES_MEM(0xff92b000, 0x100),182DEFINE_RES_IRQ(evt2irq(0xaa0)),183};184185static struct platform_device scif8_device = {186.name = "sh-sci",187.id = 8,188.resource = scif8_resources,189.num_resources = ARRAY_SIZE(scif8_resources),190.dev = {191.platform_data = &scif8_platform_data,192},193};194195static struct plat_sci_port scif9_platform_data = {196.scscr = SCSCR_REIE | SCSCR_TOIE,197.type = PORT_SCIF,198};199200static struct resource scif9_resources[] = {201DEFINE_RES_MEM(0xff92c000, 0x100),202DEFINE_RES_IRQ(evt2irq(0xac0)),203};204205static struct platform_device scif9_device = {206.name = "sh-sci",207.id = 9,208.resource = scif9_resources,209.num_resources = ARRAY_SIZE(scif9_resources),210.dev = {211.platform_data = &scif9_platform_data,212},213};214215static struct sh_timer_config tmu0_platform_data = {216.channels_mask = 7,217};218219static struct resource tmu0_resources[] = {220DEFINE_RES_MEM(0xffd80000, 0x30),221DEFINE_RES_IRQ(evt2irq(0x400)),222DEFINE_RES_IRQ(evt2irq(0x420)),223DEFINE_RES_IRQ(evt2irq(0x440)),224};225226static struct platform_device tmu0_device = {227.name = "sh-tmu",228.id = 0,229.dev = {230.platform_data = &tmu0_platform_data,231},232.resource = tmu0_resources,233.num_resources = ARRAY_SIZE(tmu0_resources),234};235236static struct sh_timer_config tmu1_platform_data = {237.channels_mask = 7,238};239240static struct resource tmu1_resources[] = {241DEFINE_RES_MEM(0xffd81000, 0x30),242DEFINE_RES_IRQ(evt2irq(0x460)),243DEFINE_RES_IRQ(evt2irq(0x480)),244DEFINE_RES_IRQ(evt2irq(0x4a0)),245};246247static struct platform_device tmu1_device = {248.name = "sh-tmu",249.id = 1,250.dev = {251.platform_data = &tmu1_platform_data,252},253.resource = tmu1_resources,254.num_resources = ARRAY_SIZE(tmu1_resources),255};256257static struct sh_timer_config tmu2_platform_data = {258.channels_mask = 7,259};260261static struct resource tmu2_resources[] = {262DEFINE_RES_MEM(0xffd82000, 0x2c),263DEFINE_RES_IRQ(evt2irq(0x4c0)),264DEFINE_RES_IRQ(evt2irq(0x4e0)),265DEFINE_RES_IRQ(evt2irq(0x500)),266};267268static struct platform_device tmu2_device = {269.name = "sh-tmu",270.id = 2,271.dev = {272.platform_data = &tmu2_platform_data,273},274.resource = tmu2_resources,275.num_resources = ARRAY_SIZE(tmu2_resources),276};277278static struct platform_device *sh7770_devices[] __initdata = {279&scif0_device,280&scif1_device,281&scif2_device,282&scif3_device,283&scif4_device,284&scif5_device,285&scif6_device,286&scif7_device,287&scif8_device,288&scif9_device,289&tmu0_device,290&tmu1_device,291&tmu2_device,292};293294static int __init sh7770_devices_setup(void)295{296return platform_add_devices(sh7770_devices,297ARRAY_SIZE(sh7770_devices));298}299arch_initcall(sh7770_devices_setup);300301static struct platform_device *sh7770_early_devices[] __initdata = {302&scif0_device,303&scif1_device,304&scif2_device,305&scif3_device,306&scif4_device,307&scif5_device,308&scif6_device,309&scif7_device,310&scif8_device,311&scif9_device,312&tmu0_device,313&tmu1_device,314&tmu2_device,315};316317void __init plat_early_device_setup(void)318{319sh_early_platform_add_devices(sh7770_early_devices,320ARRAY_SIZE(sh7770_early_devices));321}322323enum {324UNUSED = 0,325326/* interrupt sources */327IRL_LLLL, IRL_LLLH, IRL_LLHL, IRL_LLHH,328IRL_LHLL, IRL_LHLH, IRL_LHHL, IRL_LHHH,329IRL_HLLL, IRL_HLLH, IRL_HLHL, IRL_HLHH,330IRL_HHLL, IRL_HHLH, IRL_HHHL,331332IRQ0, IRQ1, IRQ2, IRQ3, IRQ4, IRQ5,333334GPIO,335TMU0, TMU1, TMU2, TMU2_TICPI,336TMU3, TMU4, TMU5, TMU5_TICPI,337TMU6, TMU7, TMU8,338HAC, IPI, SPDIF, HUDI, I2C,339DMAC0_DMINT0, DMAC0_DMINT1, DMAC0_DMINT2,340I2S0, I2S1, I2S2, I2S3,341SRC_RX, SRC_TX, SRC_SPDIF,342DU, VIDEO_IN, REMOTE, YUV, USB, ATAPI, CAN, GPS, GFX2D,343GFX3D_MBX, GFX3D_DMAC,344EXBUS_ATA,345SPI0, SPI1,346SCIF089, SCIF1234, SCIF567,347ADC,348BBDMAC_0_3, BBDMAC_4_7, BBDMAC_8_10, BBDMAC_11_14,349BBDMAC_15_18, BBDMAC_19_22, BBDMAC_23_26, BBDMAC_27,350BBDMAC_28, BBDMAC_29, BBDMAC_30, BBDMAC_31,351352/* interrupt groups */353TMU, DMAC, I2S, SRC, GFX3D, SPI, SCIF, BBDMAC,354};355356static struct intc_vect vectors[] __initdata = {357INTC_VECT(GPIO, 0x3e0),358INTC_VECT(TMU0, 0x400), INTC_VECT(TMU1, 0x420),359INTC_VECT(TMU2, 0x440), INTC_VECT(TMU2_TICPI, 0x460),360INTC_VECT(TMU3, 0x480), INTC_VECT(TMU4, 0x4a0),361INTC_VECT(TMU5, 0x4c0), INTC_VECT(TMU5_TICPI, 0x4e0),362INTC_VECT(TMU6, 0x500), INTC_VECT(TMU7, 0x520),363INTC_VECT(TMU8, 0x540),364INTC_VECT(HAC, 0x580), INTC_VECT(IPI, 0x5c0),365INTC_VECT(SPDIF, 0x5e0),366INTC_VECT(HUDI, 0x600), INTC_VECT(I2C, 0x620),367INTC_VECT(DMAC0_DMINT0, 0x640), INTC_VECT(DMAC0_DMINT1, 0x660),368INTC_VECT(DMAC0_DMINT2, 0x680),369INTC_VECT(I2S0, 0x6a0), INTC_VECT(I2S1, 0x6c0),370INTC_VECT(I2S2, 0x6e0), INTC_VECT(I2S3, 0x700),371INTC_VECT(SRC_RX, 0x720), INTC_VECT(SRC_TX, 0x740),372INTC_VECT(SRC_SPDIF, 0x760),373INTC_VECT(DU, 0x780), INTC_VECT(VIDEO_IN, 0x7a0),374INTC_VECT(REMOTE, 0x7c0), INTC_VECT(YUV, 0x7e0),375INTC_VECT(USB, 0x840), INTC_VECT(ATAPI, 0x860),376INTC_VECT(CAN, 0x880), INTC_VECT(GPS, 0x8a0),377INTC_VECT(GFX2D, 0x8c0),378INTC_VECT(GFX3D_MBX, 0x900), INTC_VECT(GFX3D_DMAC, 0x920),379INTC_VECT(EXBUS_ATA, 0x940),380INTC_VECT(SPI0, 0x960), INTC_VECT(SPI1, 0x980),381INTC_VECT(SCIF089, 0x9a0), INTC_VECT(SCIF1234, 0x9c0),382INTC_VECT(SCIF1234, 0x9e0), INTC_VECT(SCIF1234, 0xa00),383INTC_VECT(SCIF1234, 0xa20), INTC_VECT(SCIF567, 0xa40),384INTC_VECT(SCIF567, 0xa60), INTC_VECT(SCIF567, 0xa80),385INTC_VECT(SCIF089, 0xaa0), INTC_VECT(SCIF089, 0xac0),386INTC_VECT(ADC, 0xb20),387INTC_VECT(BBDMAC_0_3, 0xba0), INTC_VECT(BBDMAC_0_3, 0xbc0),388INTC_VECT(BBDMAC_0_3, 0xbe0), INTC_VECT(BBDMAC_0_3, 0xc00),389INTC_VECT(BBDMAC_4_7, 0xc20), INTC_VECT(BBDMAC_4_7, 0xc40),390INTC_VECT(BBDMAC_4_7, 0xc60), INTC_VECT(BBDMAC_4_7, 0xc80),391INTC_VECT(BBDMAC_8_10, 0xca0), INTC_VECT(BBDMAC_8_10, 0xcc0),392INTC_VECT(BBDMAC_8_10, 0xce0), INTC_VECT(BBDMAC_11_14, 0xd00),393INTC_VECT(BBDMAC_11_14, 0xd20), INTC_VECT(BBDMAC_11_14, 0xd40),394INTC_VECT(BBDMAC_11_14, 0xd60), INTC_VECT(BBDMAC_15_18, 0xd80),395INTC_VECT(BBDMAC_15_18, 0xda0), INTC_VECT(BBDMAC_15_18, 0xdc0),396INTC_VECT(BBDMAC_15_18, 0xde0), INTC_VECT(BBDMAC_19_22, 0xe00),397INTC_VECT(BBDMAC_19_22, 0xe20), INTC_VECT(BBDMAC_19_22, 0xe40),398INTC_VECT(BBDMAC_19_22, 0xe60), INTC_VECT(BBDMAC_23_26, 0xe80),399INTC_VECT(BBDMAC_23_26, 0xea0), INTC_VECT(BBDMAC_23_26, 0xec0),400INTC_VECT(BBDMAC_23_26, 0xee0), INTC_VECT(BBDMAC_27, 0xf00),401INTC_VECT(BBDMAC_28, 0xf20), INTC_VECT(BBDMAC_29, 0xf40),402INTC_VECT(BBDMAC_30, 0xf60), INTC_VECT(BBDMAC_31, 0xf80),403};404405static struct intc_group groups[] __initdata = {406INTC_GROUP(TMU, TMU0, TMU1, TMU2, TMU2_TICPI, TMU3, TMU4, TMU5,407TMU5_TICPI, TMU6, TMU7, TMU8),408INTC_GROUP(DMAC, DMAC0_DMINT0, DMAC0_DMINT1, DMAC0_DMINT2),409INTC_GROUP(I2S, I2S0, I2S1, I2S2, I2S3),410INTC_GROUP(SRC, SRC_RX, SRC_TX, SRC_SPDIF),411INTC_GROUP(GFX3D, GFX3D_MBX, GFX3D_DMAC),412INTC_GROUP(SPI, SPI0, SPI1),413INTC_GROUP(SCIF, SCIF089, SCIF1234, SCIF567),414INTC_GROUP(BBDMAC,415BBDMAC_0_3, BBDMAC_4_7, BBDMAC_8_10, BBDMAC_11_14,416BBDMAC_15_18, BBDMAC_19_22, BBDMAC_23_26, BBDMAC_27,417BBDMAC_28, BBDMAC_29, BBDMAC_30, BBDMAC_31),418};419420static struct intc_mask_reg mask_registers[] __initdata = {421{ 0xffe00040, 0xffe00044, 32, /* INT2MSKR / INT2MSKCR */422{ 0, BBDMAC, ADC, SCIF, SPI, EXBUS_ATA, GFX3D, GFX2D,423GPS, CAN, ATAPI, USB, YUV, REMOTE, VIDEO_IN, DU, SRC, I2S,424DMAC, I2C, HUDI, SPDIF, IPI, HAC, TMU, GPIO } },425};426427static struct intc_prio_reg prio_registers[] __initdata = {428{ 0xffe00000, 0, 32, 8, /* INT2PRI0 */ { GPIO, TMU0, 0, HAC } },429{ 0xffe00004, 0, 32, 8, /* INT2PRI1 */ { IPI, SPDIF, HUDI, I2C } },430{ 0xffe00008, 0, 32, 8, /* INT2PRI2 */ { DMAC, I2S, SRC, DU } },431{ 0xffe0000c, 0, 32, 8, /* INT2PRI3 */ { VIDEO_IN, REMOTE, YUV, USB } },432{ 0xffe00010, 0, 32, 8, /* INT2PRI4 */ { ATAPI, CAN, GPS, GFX2D } },433{ 0xffe00014, 0, 32, 8, /* INT2PRI5 */ { 0, GFX3D, EXBUS_ATA, SPI } },434{ 0xffe00018, 0, 32, 8, /* INT2PRI6 */ { SCIF1234, SCIF567, SCIF089 } },435{ 0xffe0001c, 0, 32, 8, /* INT2PRI7 */ { ADC, 0, 0, BBDMAC_0_3 } },436{ 0xffe00020, 0, 32, 8, /* INT2PRI8 */437{ BBDMAC_4_7, BBDMAC_8_10, BBDMAC_11_14, BBDMAC_15_18 } },438{ 0xffe00024, 0, 32, 8, /* INT2PRI9 */439{ BBDMAC_19_22, BBDMAC_23_26, BBDMAC_27, BBDMAC_28 } },440{ 0xffe00028, 0, 32, 8, /* INT2PRI10 */441{ BBDMAC_29, BBDMAC_30, BBDMAC_31 } },442{ 0xffe0002c, 0, 32, 8, /* INT2PRI11 */443{ TMU1, TMU2, TMU2_TICPI, TMU3 } },444{ 0xffe00030, 0, 32, 8, /* INT2PRI12 */445{ TMU4, TMU5, TMU5_TICPI, TMU6 } },446{ 0xffe00034, 0, 32, 8, /* INT2PRI13 */447{ TMU7, TMU8 } },448};449450static DECLARE_INTC_DESC(intc_desc, "sh7770", vectors, groups,451mask_registers, prio_registers, NULL);452453/* Support for external interrupt pins in IRQ mode */454static struct intc_vect irq_vectors[] __initdata = {455INTC_VECT(IRQ0, 0x240), INTC_VECT(IRQ1, 0x280),456INTC_VECT(IRQ2, 0x2c0), INTC_VECT(IRQ3, 0x300),457INTC_VECT(IRQ4, 0x340), INTC_VECT(IRQ5, 0x380),458};459460static struct intc_mask_reg irq_mask_registers[] __initdata = {461{ 0xffd00044, 0xffd00064, 32, /* INTMSK0 / INTMSKCLR0 */462{ IRQ0, IRQ1, IRQ2, IRQ3, IRQ4, IRQ5, } },463};464465static struct intc_prio_reg irq_prio_registers[] __initdata = {466{ 0xffd00010, 0, 32, 4, /* INTPRI */ { IRQ0, IRQ1, IRQ2, IRQ3,467IRQ4, IRQ5, } },468};469470static struct intc_sense_reg irq_sense_registers[] __initdata = {471{ 0xffd0001c, 32, 2, /* ICR1 */ { IRQ0, IRQ1, IRQ2, IRQ3,472IRQ4, IRQ5, } },473};474475static DECLARE_INTC_DESC(intc_irq_desc, "sh7770-irq", irq_vectors,476NULL, irq_mask_registers, irq_prio_registers,477irq_sense_registers);478479/* External interrupt pins in IRL mode */480static struct intc_vect irl_vectors[] __initdata = {481INTC_VECT(IRL_LLLL, 0x200), INTC_VECT(IRL_LLLH, 0x220),482INTC_VECT(IRL_LLHL, 0x240), INTC_VECT(IRL_LLHH, 0x260),483INTC_VECT(IRL_LHLL, 0x280), INTC_VECT(IRL_LHLH, 0x2a0),484INTC_VECT(IRL_LHHL, 0x2c0), INTC_VECT(IRL_LHHH, 0x2e0),485INTC_VECT(IRL_HLLL, 0x300), INTC_VECT(IRL_HLLH, 0x320),486INTC_VECT(IRL_HLHL, 0x340), INTC_VECT(IRL_HLHH, 0x360),487INTC_VECT(IRL_HHLL, 0x380), INTC_VECT(IRL_HHLH, 0x3a0),488INTC_VECT(IRL_HHHL, 0x3c0),489};490491static struct intc_mask_reg irl3210_mask_registers[] __initdata = {492{ 0xffd40080, 0xffd40084, 32, /* INTMSK2 / INTMSKCLR2 */493{ IRL_LLLL, IRL_LLLH, IRL_LLHL, IRL_LLHH,494IRL_LHLL, IRL_LHLH, IRL_LHHL, IRL_LHHH,495IRL_HLLL, IRL_HLLH, IRL_HLHL, IRL_HLHH,496IRL_HHLL, IRL_HHLH, IRL_HHHL, } },497};498499static struct intc_mask_reg irl7654_mask_registers[] __initdata = {500{ 0xffd40080, 0xffd40084, 32, /* INTMSK2 / INTMSKCLR2 */501{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,502IRL_LLLL, IRL_LLLH, IRL_LLHL, IRL_LLHH,503IRL_LHLL, IRL_LHLH, IRL_LHHL, IRL_LHHH,504IRL_HLLL, IRL_HLLH, IRL_HLHL, IRL_HLHH,505IRL_HHLL, IRL_HHLH, IRL_HHHL, } },506};507508static DECLARE_INTC_DESC(intc_irl7654_desc, "sh7780-irl7654", irl_vectors,509NULL, irl7654_mask_registers, NULL, NULL);510511static DECLARE_INTC_DESC(intc_irl3210_desc, "sh7780-irl3210", irl_vectors,512NULL, irl3210_mask_registers, NULL, NULL);513514#define INTC_ICR0 0xffd00000515#define INTC_INTMSK0 0xffd00044516#define INTC_INTMSK1 0xffd00048517#define INTC_INTMSK2 0xffd40080518#define INTC_INTMSKCLR1 0xffd00068519#define INTC_INTMSKCLR2 0xffd40084520521void __init plat_irq_setup(void)522{523/* disable IRQ7-0 */524__raw_writel(0xff000000, INTC_INTMSK0);525526/* disable IRL3-0 + IRL7-4 */527__raw_writel(0xc0000000, INTC_INTMSK1);528__raw_writel(0xfffefffe, INTC_INTMSK2);529530/* select IRL mode for IRL3-0 + IRL7-4 */531__raw_writel(__raw_readl(INTC_ICR0) & ~0x00c00000, INTC_ICR0);532533/* disable holding function, ie enable "SH-4 Mode" */534__raw_writel(__raw_readl(INTC_ICR0) | 0x00200000, INTC_ICR0);535536register_intc_controller(&intc_desc);537}538539void __init plat_irq_setup_pins(int mode)540{541switch (mode) {542case IRQ_MODE_IRQ:543/* select IRQ mode for IRL3-0 + IRL7-4 */544__raw_writel(__raw_readl(INTC_ICR0) | 0x00c00000, INTC_ICR0);545register_intc_controller(&intc_irq_desc);546break;547case IRQ_MODE_IRL7654:548/* enable IRL7-4 but don't provide any masking */549__raw_writel(0x40000000, INTC_INTMSKCLR1);550__raw_writel(0x0000fffe, INTC_INTMSKCLR2);551break;552case IRQ_MODE_IRL3210:553/* enable IRL0-3 but don't provide any masking */554__raw_writel(0x80000000, INTC_INTMSKCLR1);555__raw_writel(0xfffe0000, INTC_INTMSKCLR2);556break;557case IRQ_MODE_IRL7654_MASK:558/* enable IRL7-4 and mask using cpu intc controller */559__raw_writel(0x40000000, INTC_INTMSKCLR1);560register_intc_controller(&intc_irl7654_desc);561break;562case IRQ_MODE_IRL3210_MASK:563/* enable IRL0-3 and mask using cpu intc controller */564__raw_writel(0x80000000, INTC_INTMSKCLR1);565register_intc_controller(&intc_irl3210_desc);566break;567default:568BUG();569}570}571572573