/* * linux/arch/arm/common/sa1111.c * * SA1111 support * * Original code by John Dorsey * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * * This file contains all generic SA1111 support. * * All initialization functions provided here are intended to be called * from machine specific code with proper arguments when required. */#include<linux/module.h>#include<linux/gpio/driver.h>#include<linux/init.h>#include<linux/irq.h>#include<linux/kernel.h>#include<linux/delay.h>#include<linux/errno.h>#include<linux/ioport.h>#include<linux/platform_device.h>#include<linux/slab.h>#include<linux/spinlock.h>#include<linux/dma-mapping.h>#include<linux/clk.h>#include<linux/io.h>#include<mach/hardware.h>#include<asm/mach/irq.h>#include<asm/mach-types.h>#include<asm/sizes.h>#include<asm/hardware/sa1111.h>/* SA1111 IRQs */#define IRQ_GPAIN0 (0)#define IRQ_GPAIN1 (1)#define IRQ_GPAIN2 (2)#define IRQ_GPAIN3 (3)#define IRQ_GPBIN0 (4)#define IRQ_GPBIN1 (5)#define