This source file includes following definitions.
- init_se7780_IRQ
1
2
3
4
5
6
7
8
9 #include <linux/init.h>
10 #include <linux/irq.h>
11 #include <linux/interrupt.h>
12 #include <linux/io.h>
13 #include <mach-se/mach/se7780.h>
14
15 #define INTC_BASE 0xffd00000
16 #define INTC_ICR1 (INTC_BASE+0x1c)
17
18
19
20
21 void __init init_se7780_IRQ(void)
22 {
23
24 __raw_writew(0, FPGA_INTMSK1);
25
26 __raw_writew((__raw_readw(FPGA_INTMSK1) | 0x0002), FPGA_INTMSK1);
27
28 __raw_writew(0, FPGA_INTMSK2);
29
30
31
32 __raw_writew( ((IRQPIN_SM501 << IRQPOS_SM501) |
33 (IRQPIN_SMC91CX << IRQPOS_SMC91CX)), FPGA_INTSEL1);
34
35
36 __raw_writew(((IRQPIN_EXTINT4 << IRQPOS_EXTINT4) |
37 (IRQPIN_EXTINT3 << IRQPOS_EXTINT3) |
38 (IRQPIN_EXTINT2 << IRQPOS_EXTINT2) |
39 (IRQPIN_EXTINT1 << IRQPOS_EXTINT1)), FPGA_INTSEL2);
40
41
42 __raw_writew((IRQPIN_PCCPW << IRQPOS_PCCPW), FPGA_INTSEL3);
43
44 plat_irq_setup_pins(IRQ_MODE_IRQ);
45
46
47 __raw_writel(0xAAAA0000, INTC_ICR1);
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63 __raw_writew(0x0013, FPGA_PCI_INTSEL1);
64 __raw_writew(0xE402, FPGA_PCI_INTSEL2);
65 }