Skip to content

Commit c55b552

Browse files
zeargregkh
authored andcommitted
sh: hd64461: Handle virq offset for offchip IRQ base and HD64461 IRQ
commit 7c28a35 upstream. A recent change to start counting SuperH IRQ #s from 16 breaks support for the Hitachi HD64461 companion chip. Move the offchip IRQ base and HD64461 IRQ # by 16 in order to accommodate for the new virq numbering rules. Fixes: a8ac296 ("sh: Avoid using IRQ0 on SH3 and SH4") Signed-off-by: Artur Rojek <[email protected]> Reviewed-by: Geert Uytterhoeven <[email protected]> Reviewed-by: John Paul Adrian Glaubitz <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: John Paul Adrian Glaubitz <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 0ff5d21 commit c55b552

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

arch/sh/cchips/Kconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ endchoice
2929
config HD64461_IRQ
3030
int "HD64461 IRQ"
3131
depends on HD64461
32-
default "36"
32+
default "52"
3333
help
34-
The default setting of the HD64461 IRQ is 36.
34+
The default setting of the HD64461 IRQ is 52.
3535

3636
Do not change this unless you know what you are doing.
3737

arch/sh/include/asm/hd64461.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@
229229
#define HD64461_NIMR HD64461_IO_OFFSET(0x5002)
230230

231231
#define HD64461_IRQBASE OFFCHIP_IRQ_BASE
232-
#define OFFCHIP_IRQ_BASE 64
232+
#define OFFCHIP_IRQ_BASE (64 + 16)
233233
#define HD64461_IRQ_NUM 16
234234

235235
#define HD64461_IRQ_UART (HD64461_IRQBASE+5)

0 commit comments

Comments
 (0)