diff options
author | Atsushi Nemoto <anemo@mba.ocn.ne.jp> | 2008-08-19 15:55:05 +0200 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2008-10-11 17:18:41 +0200 |
commit | f96a3383cfede841cdf80a5927f14478981ed78c (patch) | |
tree | 8d6da93bbf355c2f95a2591d116b18b8b6e42b1f /arch/mips/txx9/rbtx4927/irq.c | |
parent | MIPS: PMC MSP71XX gpio drivers (diff) | |
download | linux-f96a3383cfede841cdf80a5927f14478981ed78c.tar.xz linux-f96a3383cfede841cdf80a5927f14478981ed78c.zip |
MIPS: RBTX4927: More explicit initialization
* Make sure all interrupts cleared on startup
* Initialize some GPIOs
Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/txx9/rbtx4927/irq.c')
-rw-r--r-- | arch/mips/txx9/rbtx4927/irq.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/mips/txx9/rbtx4927/irq.c b/arch/mips/txx9/rbtx4927/irq.c index 00cd5231da30..22076e3f03a8 100644 --- a/arch/mips/txx9/rbtx4927/irq.c +++ b/arch/mips/txx9/rbtx4927/irq.c @@ -142,6 +142,11 @@ static void __init toshiba_rbtx4927_irq_ioc_init(void) { int i; + /* mask all IOC interrupts */ + writeb(0, rbtx4927_imask_addr); + /* clear SoftInt interrupts */ + writeb(0, rbtx4927_softint_addr); + for (i = RBTX4927_IRQ_IOC; i < RBTX4927_IRQ_IOC + RBTX4927_NR_IRQ_IOC; i++) set_irq_chip_and_handler(i, &toshiba_rbtx4927_irq_ioc_type, |