forked from luck/tmp_suning_uos_patched
e7b3dc7ef1
smc91x is shared between many different platforms. Each platform needs to specify the interrupt type, and in some cases the irq type depends on more than just the build configuration - it depends on runtime checks. Rather than throwing this code into the SMC_IRQ_FLAGS definition, provide a way for these flags to be passed via the IRQ resource itself. Note that IRQF_TRIGGER_* constants are intentionally defined to correspond with the IORESOURCE_IRQ_* interrupt type flags, in much the same way that the low bits of PCI iomem resources correspond with the BAR flag bits. Also provide a way to configure smc91x to read the IRQ flags from the resource. Once all platforms have been converted over (signified by all definitions of SMC_IRQ_FLAGS being -1) SMC_IRQ_FLAGS should be removed. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> Acked-by: Nicolas Pitre <nico@cam.org> Acked-by: Jeff Garzik <jgarzik@redhat.com> |
||
---|---|---|
.. | ||
board-ams-delta.c | ||
board-fsample.c | ||
board-generic.c | ||
board-h2.c | ||
board-h3.c | ||
board-innovator.c | ||
board-nokia770.c | ||
board-osk.c | ||
board-palmte.c | ||
board-palmtt.c | ||
board-palmz71.c | ||
board-perseus2.c | ||
board-sx1.c | ||
board-voiceblue.c | ||
clock.c | ||
clock.h | ||
devices.c | ||
fpga.c | ||
id.c | ||
io.c | ||
irq.c | ||
Kconfig | ||
leds-h2p2-debug.c | ||
leds-innovator.c | ||
leds-osk.c | ||
leds.c | ||
leds.h | ||
mailbox.c | ||
Makefile | ||
Makefile.boot | ||
mux.c | ||
pm.c | ||
serial.c | ||
sleep.S | ||
time.c |