diff options
-rw-r--r-- | arch/mips/cavium-octeon/octeon-irq.c | 43 | ||||
-rw-r--r-- | arch/mips/include/asm/mach-cavium-octeon/irq.h | 40 |
2 files changed, 2 insertions, 81 deletions
diff --git a/arch/mips/cavium-octeon/octeon-irq.c b/arch/mips/cavium-octeon/octeon-irq.c index 168b4891d7a..bccbda90f7b 100644 --- a/arch/mips/cavium-octeon/octeon-irq.c +++ b/arch/mips/cavium-octeon/octeon-irq.c | |||
@@ -1045,23 +1045,11 @@ static void __init octeon_irq_init_ciu(void) | |||
1045 | 1045 | ||
1046 | octeon_irq_set_ciu_mapping(OCTEON_IRQ_TWSI, 0, 45, chip, handle_level_irq); | 1046 | octeon_irq_set_ciu_mapping(OCTEON_IRQ_TWSI, 0, 45, chip, handle_level_irq); |
1047 | octeon_irq_set_ciu_mapping(OCTEON_IRQ_RML, 0, 46, chip, handle_level_irq); | 1047 | octeon_irq_set_ciu_mapping(OCTEON_IRQ_RML, 0, 46, chip, handle_level_irq); |
1048 | octeon_irq_set_ciu_mapping(OCTEON_IRQ_TRACE0, 0, 47, chip, handle_level_irq); | ||
1049 | |||
1050 | for (i = 0; i < 2; i++) | ||
1051 | octeon_irq_set_ciu_mapping(i + OCTEON_IRQ_GMX_DRP0, 0, i + 48, chip_edge, handle_edge_irq); | ||
1052 | |||
1053 | octeon_irq_set_ciu_mapping(OCTEON_IRQ_IPD_DRP, 0, 50, chip_edge, handle_edge_irq); | ||
1054 | octeon_irq_set_ciu_mapping(OCTEON_IRQ_KEY_ZERO, 0, 51, chip_edge, handle_edge_irq); | ||
1055 | |||
1056 | for (i = 0; i < 4; i++) | 1048 | for (i = 0; i < 4; i++) |
1057 | octeon_irq_set_ciu_mapping(i + OCTEON_IRQ_TIMER0, 0, i + 52, chip_edge, handle_edge_irq); | 1049 | octeon_irq_set_ciu_mapping(i + OCTEON_IRQ_TIMER0, 0, i + 52, chip_edge, handle_edge_irq); |
1058 | 1050 | ||
1059 | octeon_irq_set_ciu_mapping(OCTEON_IRQ_USB0, 0, 56, chip, handle_level_irq); | 1051 | octeon_irq_set_ciu_mapping(OCTEON_IRQ_USB0, 0, 56, chip, handle_level_irq); |
1060 | octeon_irq_set_ciu_mapping(OCTEON_IRQ_PCM, 0, 57, chip, handle_level_irq); | ||
1061 | octeon_irq_set_ciu_mapping(OCTEON_IRQ_MPI, 0, 58, chip, handle_level_irq); | ||
1062 | octeon_irq_set_ciu_mapping(OCTEON_IRQ_TWSI2, 0, 59, chip, handle_level_irq); | 1052 | octeon_irq_set_ciu_mapping(OCTEON_IRQ_TWSI2, 0, 59, chip, handle_level_irq); |
1063 | octeon_irq_set_ciu_mapping(OCTEON_IRQ_POWIQ, 0, 60, chip, handle_level_irq); | ||
1064 | octeon_irq_set_ciu_mapping(OCTEON_IRQ_IPDPPTHR, 0, 61, chip, handle_level_irq); | ||
1065 | octeon_irq_set_ciu_mapping(OCTEON_IRQ_MII0, 0, 62, chip, handle_level_irq); | 1053 | octeon_irq_set_ciu_mapping(OCTEON_IRQ_MII0, 0, 62, chip, handle_level_irq); |
1066 | octeon_irq_set_ciu_mapping(OCTEON_IRQ_BOOTDMA, 0, 63, chip, handle_level_irq); | 1054 | octeon_irq_set_ciu_mapping(OCTEON_IRQ_BOOTDMA, 0, 63, chip, handle_level_irq); |
1067 | 1055 | ||
@@ -1072,37 +1060,6 @@ static void __init octeon_irq_init_ciu(void) | |||
1072 | octeon_irq_set_ciu_mapping(OCTEON_IRQ_UART2, 1, 16, chip, handle_level_irq); | 1060 | octeon_irq_set_ciu_mapping(OCTEON_IRQ_UART2, 1, 16, chip, handle_level_irq); |
1073 | octeon_irq_set_ciu_mapping(OCTEON_IRQ_USB1, 1, 17, chip, handle_level_irq); | 1061 | octeon_irq_set_ciu_mapping(OCTEON_IRQ_USB1, 1, 17, chip, handle_level_irq); |
1074 | octeon_irq_set_ciu_mapping(OCTEON_IRQ_MII1, 1, 18, chip, handle_level_irq); | 1062 | octeon_irq_set_ciu_mapping(OCTEON_IRQ_MII1, 1, 18, chip, handle_level_irq); |
1075 | octeon_irq_set_ciu_mapping(OCTEON_IRQ_NAND, 1, 19, chip, handle_level_irq); | ||
1076 | octeon_irq_set_ciu_mapping(OCTEON_IRQ_MIO, 1, 20, chip, handle_level_irq); | ||
1077 | octeon_irq_set_ciu_mapping(OCTEON_IRQ_IOB, 1, 21, chip, handle_level_irq); | ||
1078 | octeon_irq_set_ciu_mapping(OCTEON_IRQ_FPA, 1, 22, chip, handle_level_irq); | ||
1079 | octeon_irq_set_ciu_mapping(OCTEON_IRQ_POW, 1, 23, chip, handle_level_irq); | ||
1080 | octeon_irq_set_ciu_mapping(OCTEON_IRQ_L2C, 1, 24, chip, handle_level_irq); | ||
1081 | octeon_irq_set_ciu_mapping(OCTEON_IRQ_IPD, 1, 25, chip, handle_level_irq); | ||
1082 | octeon_irq_set_ciu_mapping(OCTEON_IRQ_PIP, 1, 26, chip, handle_level_irq); | ||
1083 | octeon_irq_set_ciu_mapping(OCTEON_IRQ_PKO, 1, 27, chip, handle_level_irq); | ||
1084 | octeon_irq_set_ciu_mapping(OCTEON_IRQ_ZIP, 1, 28, chip, handle_level_irq); | ||
1085 | octeon_irq_set_ciu_mapping(OCTEON_IRQ_TIM, 1, 29, chip, handle_level_irq); | ||
1086 | octeon_irq_set_ciu_mapping(OCTEON_IRQ_RAD, 1, 30, chip, handle_level_irq); | ||
1087 | octeon_irq_set_ciu_mapping(OCTEON_IRQ_KEY, 1, 31, chip, handle_level_irq); | ||
1088 | octeon_irq_set_ciu_mapping(OCTEON_IRQ_DFA, 1, 32, chip, handle_level_irq); | ||
1089 | octeon_irq_set_ciu_mapping(OCTEON_IRQ_USBCTL, 1, 33, chip, handle_level_irq); | ||
1090 | octeon_irq_set_ciu_mapping(OCTEON_IRQ_SLI, 1, 34, chip, handle_level_irq); | ||
1091 | octeon_irq_set_ciu_mapping(OCTEON_IRQ_DPI, 1, 35, chip, handle_level_irq); | ||
1092 | |||
1093 | octeon_irq_set_ciu_mapping(OCTEON_IRQ_AGX0, 1, 36, chip, handle_level_irq); | ||
1094 | |||
1095 | octeon_irq_set_ciu_mapping(OCTEON_IRQ_AGL, 1, 46, chip, handle_level_irq); | ||
1096 | |||
1097 | octeon_irq_set_ciu_mapping(OCTEON_IRQ_PTP, 1, 47, chip_edge, handle_edge_irq); | ||
1098 | |||
1099 | octeon_irq_set_ciu_mapping(OCTEON_IRQ_PEM0, 1, 48, chip, handle_level_irq); | ||
1100 | octeon_irq_set_ciu_mapping(OCTEON_IRQ_PEM1, 1, 49, chip, handle_level_irq); | ||
1101 | octeon_irq_set_ciu_mapping(OCTEON_IRQ_SRIO0, 1, 50, chip, handle_level_irq); | ||
1102 | octeon_irq_set_ciu_mapping(OCTEON_IRQ_SRIO1, 1, 51, chip, handle_level_irq); | ||
1103 | octeon_irq_set_ciu_mapping(OCTEON_IRQ_LMC0, 1, 52, chip, handle_level_irq); | ||
1104 | octeon_irq_set_ciu_mapping(OCTEON_IRQ_DFM, 1, 56, chip, handle_level_irq); | ||
1105 | octeon_irq_set_ciu_mapping(OCTEON_IRQ_RST, 1, 63, chip, handle_level_irq); | ||
1106 | 1063 | ||
1107 | /* Enable the CIU lines */ | 1064 | /* Enable the CIU lines */ |
1108 | set_c0_status(STATUSF_IP3 | STATUSF_IP2); | 1065 | set_c0_status(STATUSF_IP3 | STATUSF_IP2); |
diff --git a/arch/mips/include/asm/mach-cavium-octeon/irq.h b/arch/mips/include/asm/mach-cavium-octeon/irq.h index 81a032490b9..418992042f6 100644 --- a/arch/mips/include/asm/mach-cavium-octeon/irq.h +++ b/arch/mips/include/asm/mach-cavium-octeon/irq.h | |||
@@ -41,59 +41,23 @@ enum octeon_irq { | |||
41 | OCTEON_IRQ_TWSI, | 41 | OCTEON_IRQ_TWSI, |
42 | OCTEON_IRQ_TWSI2, | 42 | OCTEON_IRQ_TWSI2, |
43 | OCTEON_IRQ_RML, | 43 | OCTEON_IRQ_RML, |
44 | OCTEON_IRQ_TRACE0, | ||
45 | OCTEON_IRQ_GMX_DRP0 = OCTEON_IRQ_TRACE0 + 4, | ||
46 | OCTEON_IRQ_IPD_DRP = OCTEON_IRQ_GMX_DRP0 + 5, | ||
47 | OCTEON_IRQ_KEY_ZERO, | ||
48 | OCTEON_IRQ_TIMER0, | 44 | OCTEON_IRQ_TIMER0, |
49 | OCTEON_IRQ_TIMER1, | 45 | OCTEON_IRQ_TIMER1, |
50 | OCTEON_IRQ_TIMER2, | 46 | OCTEON_IRQ_TIMER2, |
51 | OCTEON_IRQ_TIMER3, | 47 | OCTEON_IRQ_TIMER3, |
52 | OCTEON_IRQ_USB0, | 48 | OCTEON_IRQ_USB0, |
53 | OCTEON_IRQ_USB1, | 49 | OCTEON_IRQ_USB1, |
54 | OCTEON_IRQ_PCM, | ||
55 | OCTEON_IRQ_MPI, | ||
56 | OCTEON_IRQ_POWIQ, | ||
57 | OCTEON_IRQ_IPDPPTHR, | ||
58 | OCTEON_IRQ_MII0, | 50 | OCTEON_IRQ_MII0, |
59 | OCTEON_IRQ_MII1, | 51 | OCTEON_IRQ_MII1, |
60 | OCTEON_IRQ_BOOTDMA, | 52 | OCTEON_IRQ_BOOTDMA, |
61 | |||
62 | OCTEON_IRQ_NAND, | ||
63 | OCTEON_IRQ_MIO, /* Summary of MIO_BOOT_ERR */ | ||
64 | OCTEON_IRQ_IOB, /* Summary of IOB_INT_SUM */ | ||
65 | OCTEON_IRQ_FPA, /* Summary of FPA_INT_SUM */ | ||
66 | OCTEON_IRQ_POW, /* Summary of POW_ECC_ERR */ | ||
67 | OCTEON_IRQ_L2C, /* Summary of L2C_INT_STAT */ | ||
68 | OCTEON_IRQ_IPD, /* Summary of IPD_INT_SUM */ | ||
69 | OCTEON_IRQ_PIP, /* Summary of PIP_INT_REG */ | ||
70 | OCTEON_IRQ_PKO, /* Summary of PKO_REG_ERROR */ | ||
71 | OCTEON_IRQ_ZIP, /* Summary of ZIP_ERROR */ | ||
72 | OCTEON_IRQ_TIM, /* Summary of TIM_REG_ERROR */ | ||
73 | OCTEON_IRQ_RAD, /* Summary of RAD_REG_ERROR */ | ||
74 | OCTEON_IRQ_KEY, /* Summary of KEY_INT_SUM */ | ||
75 | OCTEON_IRQ_DFA, /* Summary of DFA */ | ||
76 | OCTEON_IRQ_USBCTL, /* Summary of USBN0_INT_SUM */ | ||
77 | OCTEON_IRQ_SLI, /* Summary of SLI_INT_SUM */ | ||
78 | OCTEON_IRQ_DPI, /* Summary of DPI_INT_SUM */ | ||
79 | OCTEON_IRQ_AGX0, /* Summary of GMX0*+PCS0_INT*_REG */ | ||
80 | OCTEON_IRQ_AGL = OCTEON_IRQ_AGX0 + 5, | ||
81 | OCTEON_IRQ_PTP, | ||
82 | OCTEON_IRQ_PEM0, | ||
83 | OCTEON_IRQ_PEM1, | ||
84 | OCTEON_IRQ_SRIO0, | ||
85 | OCTEON_IRQ_SRIO1, | ||
86 | OCTEON_IRQ_LMC0, | ||
87 | OCTEON_IRQ_DFM = OCTEON_IRQ_LMC0 + 4, /* Summary of DFM */ | ||
88 | OCTEON_IRQ_RST, | ||
89 | #ifndef CONFIG_PCI_MSI | 53 | #ifndef CONFIG_PCI_MSI |
90 | OCTEON_IRQ_LAST = 127 | 54 | OCTEON_IRQ_LAST = 127 |
91 | #endif | 55 | #endif |
92 | }; | 56 | }; |
93 | 57 | ||
94 | #ifdef CONFIG_PCI_MSI | 58 | #ifdef CONFIG_PCI_MSI |
95 | /* 152 - 407 represent the MSI interrupts 0-255 */ | 59 | /* 256 - 511 represent the MSI interrupts 0-255 */ |
96 | #define OCTEON_IRQ_MSI_BIT0 (OCTEON_IRQ_RST + 1) | 60 | #define OCTEON_IRQ_MSI_BIT0 (256) |
97 | 61 | ||
98 | #define OCTEON_IRQ_MSI_LAST (OCTEON_IRQ_MSI_BIT0 + 255) | 62 | #define OCTEON_IRQ_MSI_LAST (OCTEON_IRQ_MSI_BIT0 + 255) |
99 | #define OCTEON_IRQ_LAST (OCTEON_IRQ_MSI_LAST + 1) | 63 | #define OCTEON_IRQ_LAST (OCTEON_IRQ_MSI_LAST + 1) |