Skip to content

Commit

Permalink
MIPS: Alchemy: update core interrupt code.
Browse files Browse the repository at this point in the history
This patch attempts to modernize core Alchemy interrupt handling code.

- add irq_chips for irq controllers instead of irq type,
- add a set_type() hook to change irq trigger type during runtime,
- add a set_wake() hook to control GPIO0..7 based wakeup,
- use linux' IRQF_TRIGGER_ constants instead of homebrew ones,
- enable GENERIC_HARDIRQS_NO__DO_IRQ.
- simplify plat_irq_dispatch
- merge au1xxx_irqmap into irq.c file, the only place where its
  contents are referenced.
- board_init_irq() is now mandatory for every board; use it to register
  the remaining (gpio-based) interrupt sources; update all boards
  accordingly.

Run-tested on Db1200 and other Au1200 based platforms.

Signed-off-by: Manuel Lauss <mano@roarinelk.homelinux.net>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

 delete mode 100644 arch/mips/alchemy/common/au1xxx_irqmap.c
  • Loading branch information
Manuel Lauss authored and Ralf Baechle committed Jan 11, 2009
1 parent 7179380 commit 785e326
Show file tree
Hide file tree
Showing 15 changed files with 514 additions and 644 deletions.
1 change: 1 addition & 0 deletions arch/mips/alchemy/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -134,3 +134,4 @@ config SOC_AU1X00
select SYS_HAS_CPU_MIPS32_R1
select SYS_SUPPORTS_32BIT_KERNEL
select SYS_SUPPORTS_APM_EMULATION
select GENERIC_HARDIRQS_NO__DO_IRQ
2 changes: 1 addition & 1 deletion arch/mips/alchemy/common/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#

obj-y += prom.o irq.o puts.o time.o reset.o \
au1xxx_irqmap.o clocks.o platform.o power.o setup.o \
clocks.o platform.o power.o setup.o \
sleeper.o cputable.o dma.o dbdma.o gpio.o

obj-$(CONFIG_PCI) += pci.o
Expand Down
205 changes: 0 additions & 205 deletions arch/mips/alchemy/common/au1xxx_irqmap.c

This file was deleted.

Loading

0 comments on commit 785e326

Please sign in to comment.