diff options
Diffstat (limited to 'arch/m32r/kernel/setup_mappi3.c')
-rw-r--r-- | arch/m32r/kernel/setup_mappi3.c | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/arch/m32r/kernel/setup_mappi3.c b/arch/m32r/kernel/setup_mappi3.c index 9c79341a7b45..f6ecdf7f555c 100644 --- a/arch/m32r/kernel/setup_mappi3.c +++ b/arch/m32r/kernel/setup_mappi3.c | |||
@@ -151,7 +151,7 @@ void __init init_IRQ(void) | |||
151 | disable_mappi3_irq(M32R_IRQ_INT1); | 151 | disable_mappi3_irq(M32R_IRQ_INT1); |
152 | #endif /* CONFIG_USB */ | 152 | #endif /* CONFIG_USB */ |
153 | 153 | ||
154 | /* ICUCR40: CFC IREQ */ | 154 | /* CFC IREQ */ |
155 | irq_desc[PLD_IRQ_CFIREQ].status = IRQ_DISABLED; | 155 | irq_desc[PLD_IRQ_CFIREQ].status = IRQ_DISABLED; |
156 | irq_desc[PLD_IRQ_CFIREQ].handler = &mappi3_irq_type; | 156 | irq_desc[PLD_IRQ_CFIREQ].handler = &mappi3_irq_type; |
157 | irq_desc[PLD_IRQ_CFIREQ].action = 0; | 157 | irq_desc[PLD_IRQ_CFIREQ].action = 0; |
@@ -160,7 +160,7 @@ void __init init_IRQ(void) | |||
160 | disable_mappi3_irq(PLD_IRQ_CFIREQ); | 160 | disable_mappi3_irq(PLD_IRQ_CFIREQ); |
161 | 161 | ||
162 | #if defined(CONFIG_M32R_CFC) | 162 | #if defined(CONFIG_M32R_CFC) |
163 | /* ICUCR41: CFC Insert */ | 163 | /* ICUCR41: CFC Insert & eject */ |
164 | irq_desc[PLD_IRQ_CFC_INSERT].status = IRQ_DISABLED; | 164 | irq_desc[PLD_IRQ_CFC_INSERT].status = IRQ_DISABLED; |
165 | irq_desc[PLD_IRQ_CFC_INSERT].handler = &mappi3_irq_type; | 165 | irq_desc[PLD_IRQ_CFC_INSERT].handler = &mappi3_irq_type; |
166 | irq_desc[PLD_IRQ_CFC_INSERT].action = 0; | 166 | irq_desc[PLD_IRQ_CFC_INSERT].action = 0; |
@@ -168,14 +168,16 @@ void __init init_IRQ(void) | |||
168 | icu_data[PLD_IRQ_CFC_INSERT].icucr = M32R_ICUCR_IEN|M32R_ICUCR_ISMOD00; | 168 | icu_data[PLD_IRQ_CFC_INSERT].icucr = M32R_ICUCR_IEN|M32R_ICUCR_ISMOD00; |
169 | disable_mappi3_irq(PLD_IRQ_CFC_INSERT); | 169 | disable_mappi3_irq(PLD_IRQ_CFC_INSERT); |
170 | 170 | ||
171 | /* ICUCR42: CFC Eject */ | ||
172 | irq_desc[PLD_IRQ_CFC_EJECT].status = IRQ_DISABLED; | ||
173 | irq_desc[PLD_IRQ_CFC_EJECT].handler = &mappi3_irq_type; | ||
174 | irq_desc[PLD_IRQ_CFC_EJECT].action = 0; | ||
175 | irq_desc[PLD_IRQ_CFC_EJECT].depth = 1; /* disable nested irq */ | ||
176 | icu_data[PLD_IRQ_CFC_EJECT].icucr = M32R_ICUCR_IEN|M32R_ICUCR_ISMOD10; | ||
177 | disable_mappi3_irq(PLD_IRQ_CFC_EJECT); | ||
178 | #endif /* CONFIG_M32R_CFC */ | 171 | #endif /* CONFIG_M32R_CFC */ |
172 | |||
173 | /* IDE IREQ */ | ||
174 | irq_desc[PLD_IRQ_IDEIREQ].status = IRQ_DISABLED; | ||
175 | irq_desc[PLD_IRQ_IDEIREQ].handler = &mappi3_irq_type; | ||
176 | irq_desc[PLD_IRQ_IDEIREQ].action = 0; | ||
177 | irq_desc[PLD_IRQ_IDEIREQ].depth = 1; /* disable nested irq */ | ||
178 | icu_data[PLD_IRQ_IDEIREQ].icucr = M32R_ICUCR_IEN|M32R_ICUCR_ISMOD10; | ||
179 | disable_mappi3_irq(PLD_IRQ_IDEIREQ); | ||
180 | |||
179 | } | 181 | } |
180 | 182 | ||
181 | #if defined(CONFIG_SMC91X) | 183 | #if defined(CONFIG_SMC91X) |