static void __init yf255_init_irq(void) { int irq; pxa25x_init_irq(); #if 1 /* setup extra yf255 irqs */ for (irq = YF255_IRQ(0); irq <= YF255_LAST_IRQ; irq++) { set_irq_chip(irq, &yf255_irq_chip); set_irq_handler(irq, handle_level_irq); set_irq_flags(irq, IRQF_VALID | IRQF_PROBE); } #endif /*For Ethernet_INT*/ set_irq_type(IRQ_GPIO(0), IRQ_TYPE_EDGE_RISING); /*For RTC_INT*/ set_irq_type(IRQ_GPIO(1), IRQ_TYPE_EDGE_RISING); /*For AC97_IRQ*/ // set_irq_type(IRQ_GPIO(3), IRQ_TYPE_EDGE_RISING); /*For PCMCIA_DECT*/ set_irq_type(IRQ_GPIO(4), IRQ_TYPE_EDGE_RISING); /*For PCMCIA_RDY*/ set_irq_type(IRQ_GPIO(5), IRQ_TYPE_EDGE_RISING); /*For MMC*/ set_irq_type(IRQ_GPIO(12), IRQ_TYPE_LEVEL_LOW);// IRQ_TYPE_EDGE_FALLING);//zkj }
static void __init cmx2xx_init_irq(void) { if (cpu_is_pxa25x()) { pxa25x_init_irq(); cmx2xx_pci_init_irq(CMX255_GPIO_IT8152_IRQ); } else { pxa27x_init_irq(); cmx2xx_pci_init_irq(CMX270_GPIO_IT8152_IRQ); } }
static void __init lubbock_init_irq(void) { int irq; pxa25x_init_irq(); /* setup extra lubbock irqs */ for (irq = LUBBOCK_IRQ(0); irq <= LUBBOCK_LAST_IRQ; irq++) { irq_set_chip_and_handler(irq, &lubbock_irq_chip, handle_level_irq); set_irq_flags(irq, IRQF_VALID | IRQF_PROBE); } irq_set_chained_handler(IRQ_GPIO(0), lubbock_irq_handler); irq_set_irq_type(IRQ_GPIO(0), IRQ_TYPE_EDGE_FALLING); }