Skip to content

Commit b00c2c7

Browse files
shimodaypmundt
authored andcommitted
sh: fix the INTC vector for IRQ and IRL in setup-sh7757
Signed-off-by: Yoshihiro Shimoda <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
1 parent 6935d13 commit b00c2c7

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

arch/sh/kernel/cpu/sh4a/setup-sh7757.c

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1089,13 +1089,13 @@ static DECLARE_INTC_DESC(intc_desc, "sh7757", vectors, groups,
10891089

10901090
/* Support for external interrupt pins in IRQ mode */
10911091
static struct intc_vect vectors_irq0123[] __initdata = {
1092-
INTC_VECT(IRQ0, 0x240), INTC_VECT(IRQ1, 0x280),
1093-
INTC_VECT(IRQ2, 0x2c0), INTC_VECT(IRQ3, 0x300),
1092+
INTC_VECT(IRQ0, 0x200), INTC_VECT(IRQ1, 0x240),
1093+
INTC_VECT(IRQ2, 0x280), INTC_VECT(IRQ3, 0x2c0),
10941094
};
10951095

10961096
static struct intc_vect vectors_irq4567[] __initdata = {
1097-
INTC_VECT(IRQ4, 0x340), INTC_VECT(IRQ5, 0x380),
1098-
INTC_VECT(IRQ6, 0x3c0), INTC_VECT(IRQ7, 0x200),
1097+
INTC_VECT(IRQ4, 0x300), INTC_VECT(IRQ5, 0x340),
1098+
INTC_VECT(IRQ6, 0x380), INTC_VECT(IRQ7, 0x3c0),
10991099
};
11001100

11011101
static struct intc_sense_reg sense_registers[] __initdata = {
@@ -1129,14 +1129,14 @@ static struct intc_vect vectors_irl0123[] __initdata = {
11291129
};
11301130

11311131
static struct intc_vect vectors_irl4567[] __initdata = {
1132-
INTC_VECT(IRL4_LLLL, 0xb00), INTC_VECT(IRL4_LLLH, 0xb20),
1133-
INTC_VECT(IRL4_LLHL, 0xb40), INTC_VECT(IRL4_LLHH, 0xb60),
1134-
INTC_VECT(IRL4_LHLL, 0xb80), INTC_VECT(IRL4_LHLH, 0xba0),
1135-
INTC_VECT(IRL4_LHHL, 0xbc0), INTC_VECT(IRL4_LHHH, 0xbe0),
1136-
INTC_VECT(IRL4_HLLL, 0xc00), INTC_VECT(IRL4_HLLH, 0xc20),
1137-
INTC_VECT(IRL4_HLHL, 0xc40), INTC_VECT(IRL4_HLHH, 0xc60),
1138-
INTC_VECT(IRL4_HHLL, 0xc80), INTC_VECT(IRL4_HHLH, 0xca0),
1139-
INTC_VECT(IRL4_HHHL, 0xcc0),
1132+
INTC_VECT(IRL4_LLLL, 0x200), INTC_VECT(IRL4_LLLH, 0x220),
1133+
INTC_VECT(IRL4_LLHL, 0x240), INTC_VECT(IRL4_LLHH, 0x260),
1134+
INTC_VECT(IRL4_LHLL, 0x280), INTC_VECT(IRL4_LHLH, 0x2a0),
1135+
INTC_VECT(IRL4_LHHL, 0x2c0), INTC_VECT(IRL4_LHHH, 0x2e0),
1136+
INTC_VECT(IRL4_HLLL, 0x300), INTC_VECT(IRL4_HLLH, 0x320),
1137+
INTC_VECT(IRL4_HLHL, 0x340), INTC_VECT(IRL4_HLHH, 0x360),
1138+
INTC_VECT(IRL4_HHLL, 0x380), INTC_VECT(IRL4_HHLH, 0x3a0),
1139+
INTC_VECT(IRL4_HHHL, 0x3c0),
11401140
};
11411141

11421142
static DECLARE_INTC_DESC(intc_desc_irl0123, "sh7757-irl0123", vectors_irl0123,

0 commit comments

Comments
 (0)