irq.c (b2315372eac9cd9f622c32a93e323cf6f0f03462) irq.c (30f0b40844e5add7ad879e2f5939ff498f72f3e6)
1/*
2 * linux/arch/arm/mach-pxa/irq.c
3 *
4 * Generic PXA IRQ handling, GPIO IRQ demultiplexing, etc.
5 *
6 * Author: Nicolas Pitre
7 * Created: Jun 15, 2001
8 * Copyright: MontaVista Software Inc.

--- 335 unchanged lines hidden (view full) ---

344 .set_type = pxa_gpio_irq_type,
345 .set_wake = pxa_set_gpio_wake,
346};
347
348void __init pxa_init_irq_gpio(int gpio_nr)
349{
350 int irq, i;
351
1/*
2 * linux/arch/arm/mach-pxa/irq.c
3 *
4 * Generic PXA IRQ handling, GPIO IRQ demultiplexing, etc.
5 *
6 * Author: Nicolas Pitre
7 * Created: Jun 15, 2001
8 * Copyright: MontaVista Software Inc.

--- 335 unchanged lines hidden (view full) ---

344 .set_type = pxa_gpio_irq_type,
345 .set_wake = pxa_set_gpio_wake,
346};
347
348void __init pxa_init_irq_gpio(int gpio_nr)
349{
350 int irq, i;
351
352 pxa_last_gpio = gpio_nr - 1;
353
352 /* clear all GPIO edge detects */
353 for (i = 0; i < gpio_nr; i += 32) {
354 GFER(i) = 0;
355 GRER(i) = 0;
356 GEDR(i) = GEDR(i);
357 }
358
359 /* GPIO 0 and 1 must have their mask bit always set */

--- 18 unchanged lines hidden ---
354 /* clear all GPIO edge detects */
355 for (i = 0; i < gpio_nr; i += 32) {
356 GFER(i) = 0;
357 GRER(i) = 0;
358 GEDR(i) = GEDR(i);
359 }
360
361 /* GPIO 0 and 1 must have their mask bit always set */

--- 18 unchanged lines hidden ---