diff options
author | Takashi YOSHII <takasi-y@ops.dti.ne.jp> | 2006-12-25 10:35:24 +0100 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2007-02-13 02:54:44 +0100 |
commit | f725b5ee1e392ab1299c9317236cf736af1183ab (patch) | |
tree | abb49db7adde9ba9ccf3fbb77348d9826134aa8c /arch/sh/boards | |
parent | sh: Fixup R7780RP iVDR clock enable. (diff) | |
download | linux-f725b5ee1e392ab1299c9317236cf736af1183ab.tar.xz linux-f725b5ee1e392ab1299c9317236cf736af1183ab.zip |
sh: shmin updates.
This fixes up shmin (and SH7706/SH7708) IPR support for some of the
recent API changes.
Signed-off-by: Takashi YOSHII <takasi-y@ops.dti.ne.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/boards')
-rw-r--r-- | arch/sh/boards/shmin/setup.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/arch/sh/boards/shmin/setup.c b/arch/sh/boards/shmin/setup.c index a31a1d1e2681..bed9ca653d3a 100644 --- a/arch/sh/boards/shmin/setup.c +++ b/arch/sh/boards/shmin/setup.c @@ -12,12 +12,22 @@ #include <asm/irq.h> #include <asm/io.h> -#define PFC_PHCR 0xa400010e +#define PFC_PHCR 0xa400010eUL +#define INTC_ICR1 0xffd00000UL +#define INTC_IPRC 0xa4000016UL + +static struct ipr_data shmin_ipr_map[] = { + { .irq=32, .addr=INTC_IPRC, .shift= 0, .priority=0 }, + { .irq=33, .addr=INTC_IPRC, .shift= 4, .priority=0 }, + { .irq=34, .addr=INTC_IPRC, .shift= 8, .priority=8 }, + { .irq=35, .addr=INTC_IPRC, .shift=12, .priority=0 }, +}; static void __init init_shmin_irq(void) { ctrl_outw(0x2a00, PFC_PHCR); // IRQ0-3=IRQ ctrl_outw(0x0aaa, INTC_ICR1); // IRQ0-3=IRQ-mode,Low-active. + make_ipr_irq(shmin_ipr_map, ARRAY_SIZE(shmin_ipr_map)); } static void __iomem *shmin_ioport_map(unsigned long port, unsigned int size) |