diff options
author | Eric Miao <eric.miao@marvell.com> | 2009-01-06 05:29:01 -0500 |
---|---|---|
committer | Eric Miao <eric.miao@marvell.com> | 2009-03-09 09:22:37 -0400 |
commit | da065a0b3611751feefeb0f0e277cd5830056dad (patch) | |
tree | b54bc53e988afa4f114fbfe50f65bfcf99172140 /arch/arm/mach-pxa/gpio.c | |
parent | 0d9f768fce67a53b9c2296789129d4dfb3f4996b (diff) |
[ARM] pxa: move GPIO register definitions into <mach/gpio.h>
This makes gpio.c fully independent of pxa-regs.h (except for the
virtual address of the registers).
Signed-off-by: Mike Rapoport <mike@compulab.co.il>
Signed-off-by: Eric Miao <eric.miao@marvell.com>
Diffstat (limited to 'arch/arm/mach-pxa/gpio.c')
-rw-r--r-- | arch/arm/mach-pxa/gpio.c | 14 |
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 |