aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/sh/boards/renesas/rts7751r2d/irq.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/sh/boards/renesas/rts7751r2d/irq.c b/arch/sh/boards/renesas/rts7751r2d/irq.c
index dadc4aa5ae82..7cc2813adfe4 100644
--- a/arch/sh/boards/renesas/rts7751r2d/irq.c
+++ b/arch/sh/boards/renesas/rts7751r2d/irq.c
@@ -130,7 +130,7 @@ void __init init_rts7751r2d_IRQ(void)
130{ 130{
131 struct intc_desc *d; 131 struct intc_desc *d;
132 132
133 switch (ctrl_inw(PA_BVERREG)) { 133 switch (ctrl_inw(PA_VERREG) & 0xf0) {
134#ifdef CONFIG_RTS7751R2D_PLUS 134#ifdef CONFIG_RTS7751R2D_PLUS
135 case 0x10: 135 case 0x10:
136 printk(KERN_INFO "Using R2D-PLUS interrupt controller.\n"); 136 printk(KERN_INFO "Using R2D-PLUS interrupt controller.\n");
@@ -139,13 +139,16 @@ void __init init_rts7751r2d_IRQ(void)
139 break; 139 break;
140#endif 140#endif
141#ifdef CONFIG_RTS7751R2D_1 141#ifdef CONFIG_RTS7751R2D_1
142 case 0x11: 142 case 0x00: /* according to manual */
143 case 0x30: /* in reality */
143 printk(KERN_INFO "Using R2D-1 interrupt controller.\n"); 144 printk(KERN_INFO "Using R2D-1 interrupt controller.\n");
144 d = &intc_desc_r2d_1; 145 d = &intc_desc_r2d_1;
145 memcpy(irl2irq, irl2irq_r2d_1, R2D_NR_IRL); 146 memcpy(irl2irq, irl2irq_r2d_1, R2D_NR_IRL);
146 break; 147 break;
147#endif 148#endif
148 default: 149 default:
150 printk(KERN_INFO "Unknown R2D interrupt controller 0x%04x\n",
151 ctrl_inw(PA_VERREG));
149 return; 152 return;
150 } 153 }
151 154