aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-pxa/gpio.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-pxa/gpio.c')
-rw-r--r--arch/arm/mach-pxa/gpio.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/arch/arm/mach-pxa/gpio.c b/arch/arm/mach-pxa/gpio.c
index c9d9c702c7d5..9a33eb07fe0a 100644
--- a/arch/arm/mach-pxa/gpio.c
+++ b/arch/arm/mach-pxa/gpio.c
@@ -18,16 +18,12 @@
18#include <linux/sysdev.h> 18#include <linux/sysdev.h>
19#include <linux/io.h> 19#include <linux/io.h>
20 20
21#include <asm/gpio.h> 21#include <mach/gpio.h>
22#include <mach/hardware.h>
23#include <mach/pxa-regs.h>
24 22
25#include "generic.h" 23#define GPIO0_BASE (GPIO_REGS_VIRT + 0x0000)
26 24#define GPIO1_BASE (GPIO_REGS_VIRT + 0x0004)
27#define GPIO0_BASE ((void __iomem *)io_p2v(0x40E00000)) 25#define GPIO2_BASE (GPIO_REGS_VIRT + 0x0008)
28#define GPIO1_BASE ((void __iomem *)io_p2v(0x40E00004)) 26#define GPIO3_BASE (GPIO_REGS_VIRT + 0x0100)
29#define GPIO2_BASE ((void __iomem *)io_p2v(0x40E00008))
30#define GPIO3_BASE ((void __iomem *)io_p2v(0x40E00100))
31 27
32#define GPLR_OFFSET 0x00 28#define GPLR_OFFSET 0x00
33#define GPDR_OFFSET 0x0C 29#define GPDR_OFFSET 0x0C