static void h720x_gpiob_demux_handler(unsigned int irq_unused, struct irq_desc *desc) { unsigned int mask, irq; mask = CPU_REG(GPIO_B_VIRT,GPIO_STAT); irq = IRQ_CHAINED_GPIOB(0); IRQDBG("%s mask: 0x%08x irq: %d\n", __func__, mask,irq); h720x_gpio_handler(mask, irq, desc); }
#include <asm/types.h> #include <asm/mach-types.h> #include <asm/page.h> #include <asm/pgtable.h> #include <asm/mach/arch.h> #include <mach/hardware.h> #include "common.h" static struct resource cirrus_resources[] = { [0] = { .start = ETH0_PHYS + 0x300, .end = ETH0_PHYS + 0x300 + 0x10, .flags = IORESOURCE_MEM, }, [1] = { .start = IRQ_CHAINED_GPIOB(8), .end = IRQ_CHAINED_GPIOB(8), .flags = IORESOURCE_IRQ, }, }; static struct platform_device cirrus_device = { .name = "cirrus-cs89x0", .id = -1, .num_resources = ARRAY_SIZE(cirrus_resources), .resource = cirrus_resources, }; static struct platform_device *devices[] __initdata = { &cirrus_device, };