aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/arm/mach-pxa/clock.c1
-rw-r--r--arch/arm/mach-pxa/cm-x270-pci.c1
-rw-r--r--arch/arm/mach-pxa/cm-x270.c1
-rw-r--r--arch/arm/mach-pxa/colibri.c1
-rw-r--r--arch/arm/mach-pxa/corgi.c1
-rw-r--r--arch/arm/mach-pxa/corgi_pm.c1
-rw-r--r--arch/arm/mach-pxa/corgi_ssp.c1
-rw-r--r--arch/arm/mach-pxa/em-x270.c1
-rw-r--r--arch/arm/mach-pxa/gpio.c1
-rw-r--r--arch/arm/mach-pxa/idp.c1
-rw-r--r--arch/arm/mach-pxa/irq.c1
-rw-r--r--arch/arm/mach-pxa/leds-trizeps4.c1
-rw-r--r--arch/arm/mach-pxa/lpd270.c1
-rw-r--r--arch/arm/mach-pxa/lubbock.c1
-rw-r--r--arch/arm/mach-pxa/mainstone.c1
-rw-r--r--arch/arm/mach-pxa/pcm027.c1
-rw-r--r--arch/arm/mach-pxa/pcm990-baseboard.c1
-rw-r--r--arch/arm/mach-pxa/poodle.c1
-rw-r--r--arch/arm/mach-pxa/sharpsl_pm.c1
-rw-r--r--arch/arm/mach-pxa/spitz.c1
-rw-r--r--arch/arm/mach-pxa/spitz_pm.c1
-rw-r--r--arch/arm/mach-pxa/tosa.c1
-rw-r--r--arch/arm/mach-pxa/trizeps4.c1
-rw-r--r--drivers/i2c/busses/i2c-pxa.c1
-rw-r--r--drivers/input/keyboard/corgikbd.c1
-rw-r--r--drivers/input/keyboard/spitzkbd.c1
-rw-r--r--drivers/input/touchscreen/corgi_ts.c1
-rw-r--r--drivers/net/irda/pxaficp_ir.c1
-rw-r--r--drivers/pcmcia/pxa2xx_cm_x270.c1
-rw-r--r--drivers/video/pxafb.c1
-rw-r--r--include/asm-arm/arch-pxa/pxa-regs.h301
-rw-r--r--include/asm-arm/arch-pxa/pxa2xx-gpio.h304
-rw-r--r--sound/arm/pxa2xx-ac97.c1
-rw-r--r--sound/soc/pxa/pxa2xx-ac97.c1
-rw-r--r--sound/soc/pxa/pxa2xx-i2s.c1
35 files changed, 337 insertions, 301 deletions
diff --git a/arch/arm/mach-pxa/clock.c b/arch/arm/mach-pxa/clock.c
index df5ae2710ab1..e97dc59813c8 100644
--- a/arch/arm/mach-pxa/clock.c
+++ b/arch/arm/mach-pxa/clock.c
@@ -13,6 +13,7 @@
13#include <linux/delay.h> 13#include <linux/delay.h>
14 14
15#include <asm/arch/pxa-regs.h> 15#include <asm/arch/pxa-regs.h>
16#include <asm/arch/pxa2xx-gpio.h>
16#include <asm/hardware.h> 17#include <asm/hardware.h>
17 18
18#include "devices.h" 19#include "devices.h"
diff --git a/arch/arm/mach-pxa/cm-x270-pci.c b/arch/arm/mach-pxa/cm-x270-pci.c
index fcda7d5cb693..ac7f05f9f3eb 100644
--- a/arch/arm/mach-pxa/cm-x270-pci.c
+++ b/arch/arm/mach-pxa/cm-x270-pci.c
@@ -23,6 +23,7 @@
23#include <asm/mach/pci.h> 23#include <asm/mach/pci.h>
24#include <asm/arch/cm-x270.h> 24#include <asm/arch/cm-x270.h>
25#include <asm/arch/pxa-regs.h> 25#include <asm/arch/pxa-regs.h>
26#include <asm/arch/pxa2xx-gpio.h>
26#include <asm/mach-types.h> 27#include <asm/mach-types.h>
27 28
28#include <asm/hardware/it8152.h> 29#include <asm/hardware/it8152.h>
diff --git a/arch/arm/mach-pxa/cm-x270.c b/arch/arm/mach-pxa/cm-x270.c
index ecdbc96a4de1..6d4416a4f378 100644
--- a/arch/arm/mach-pxa/cm-x270.c
+++ b/arch/arm/mach-pxa/cm-x270.c
@@ -30,6 +30,7 @@
30 30
31#include <asm/arch/pxa-regs.h> 31#include <asm/arch/pxa-regs.h>
32#include <asm/arch/pxa2xx-regs.h> 32#include <asm/arch/pxa2xx-regs.h>
33#include <asm/arch/pxa2xx-gpio.h>
33#include <asm/arch/pxafb.h> 34#include <asm/arch/pxafb.h>
34#include <asm/arch/ohci.h> 35#include <asm/arch/ohci.h>
35#include <asm/arch/mmc.h> 36#include <asm/arch/mmc.h>
diff --git a/arch/arm/mach-pxa/colibri.c b/arch/arm/mach-pxa/colibri.c
index 6db54e31c397..43bf5a183e90 100644
--- a/arch/arm/mach-pxa/colibri.c
+++ b/arch/arm/mach-pxa/colibri.c
@@ -29,6 +29,7 @@
29#include <asm/mach/irq.h> 29#include <asm/mach/irq.h>
30#include <asm/mach/flash.h> 30#include <asm/mach/flash.h>
31#include <asm/arch/pxa-regs.h> 31#include <asm/arch/pxa-regs.h>
32#include <asm/arch/pxa2xx-gpio.h>
32#include <asm/arch/colibri.h> 33#include <asm/arch/colibri.h>
33 34
34#include "generic.h" 35#include "generic.h"
diff --git a/arch/arm/mach-pxa/corgi.c b/arch/arm/mach-pxa/corgi.c
index 9292576b83b3..259ca821e464 100644
--- a/arch/arm/mach-pxa/corgi.c
+++ b/arch/arm/mach-pxa/corgi.c
@@ -36,6 +36,7 @@
36#include <asm/mach/irq.h> 36#include <asm/mach/irq.h>
37 37
38#include <asm/arch/pxa-regs.h> 38#include <asm/arch/pxa-regs.h>
39#include <asm/arch/pxa2xx-gpio.h>
39#include <asm/arch/irda.h> 40#include <asm/arch/irda.h>
40#include <asm/arch/mmc.h> 41#include <asm/arch/mmc.h>
41#include <asm/arch/udc.h> 42#include <asm/arch/udc.h>
diff --git a/arch/arm/mach-pxa/corgi_pm.c b/arch/arm/mach-pxa/corgi_pm.c
index 392c38717362..0a85f706e887 100644
--- a/arch/arm/mach-pxa/corgi_pm.c
+++ b/arch/arm/mach-pxa/corgi_pm.c
@@ -26,6 +26,7 @@
26#include <asm/arch/sharpsl.h> 26#include <asm/arch/sharpsl.h>
27#include <asm/arch/corgi.h> 27#include <asm/arch/corgi.h>
28#include <asm/arch/pxa-regs.h> 28#include <asm/arch/pxa-regs.h>
29#include <asm/arch/pxa2xx-gpio.h>
29#include "sharpsl.h" 30#include "sharpsl.h"
30 31
31#define SHARPSL_CHARGE_ON_VOLT 0x99 /* 2.9V */ 32#define SHARPSL_CHARGE_ON_VOLT 0x99 /* 2.9V */
diff --git a/arch/arm/mach-pxa/corgi_ssp.c b/arch/arm/mach-pxa/corgi_ssp.c
index 31706224a04c..eccc45d21f75 100644
--- a/arch/arm/mach-pxa/corgi_ssp.c
+++ b/arch/arm/mach-pxa/corgi_ssp.c
@@ -21,6 +21,7 @@
21 21
22#include <asm/arch/ssp.h> 22#include <asm/arch/ssp.h>
23#include <asm/arch/pxa-regs.h> 23#include <asm/arch/pxa-regs.h>
24#include <asm/arch/pxa2xx-gpio.h>
24#include <asm/arch/regs-ssp.h> 25#include <asm/arch/regs-ssp.h>
25#include "sharpsl.h" 26#include "sharpsl.h"
26 27
diff --git a/arch/arm/mach-pxa/em-x270.c b/arch/arm/mach-pxa/em-x270.c
index 3bb31314429a..edc4f07a230d 100644
--- a/arch/arm/mach-pxa/em-x270.c
+++ b/arch/arm/mach-pxa/em-x270.c
@@ -23,6 +23,7 @@
23#include <asm/mach/arch.h> 23#include <asm/mach/arch.h>
24 24
25#include <asm/arch/pxa-regs.h> 25#include <asm/arch/pxa-regs.h>
26#include <asm/arch/pxa2xx-gpio.h>
26#include <asm/arch/pxafb.h> 27#include <asm/arch/pxafb.h>
27#include <asm/arch/ohci.h> 28#include <asm/arch/ohci.h>
28#include <asm/arch/mmc.h> 29#include <asm/arch/mmc.h>
diff --git a/arch/arm/mach-pxa/gpio.c b/arch/arm/mach-pxa/gpio.c
index f96cae04f6f5..1a7057991da6 100644
--- a/arch/arm/mach-pxa/gpio.c
+++ b/arch/arm/mach-pxa/gpio.c
@@ -21,6 +21,7 @@
21#include <asm/hardware.h> 21#include <asm/hardware.h>
22#include <asm/io.h> 22#include <asm/io.h>
23#include <asm/arch/pxa-regs.h> 23#include <asm/arch/pxa-regs.h>
24#include <asm/arch/pxa2xx-gpio.h>
24 25
25#include "generic.h" 26#include "generic.h"
26 27
diff --git a/arch/arm/mach-pxa/idp.c b/arch/arm/mach-pxa/idp.c
index 0a9434432c55..2637633f9166 100644
--- a/arch/arm/mach-pxa/idp.c
+++ b/arch/arm/mach-pxa/idp.c
@@ -32,6 +32,7 @@
32#include <asm/mach/map.h> 32#include <asm/mach/map.h>
33 33
34#include <asm/arch/pxa-regs.h> 34#include <asm/arch/pxa-regs.h>
35#include <asm/arch/pxa2xx-gpio.h>
35#include <asm/arch/idp.h> 36#include <asm/arch/idp.h>
36#include <asm/arch/pxafb.h> 37#include <asm/arch/pxafb.h>
37#include <asm/arch/bitfield.h> 38#include <asm/arch/bitfield.h>
diff --git a/arch/arm/mach-pxa/irq.c b/arch/arm/mach-pxa/irq.c
index fbff557bb225..a9a0c3fab159 100644
--- a/arch/arm/mach-pxa/irq.c
+++ b/arch/arm/mach-pxa/irq.c
@@ -21,6 +21,7 @@
21#include <asm/irq.h> 21#include <asm/irq.h>
22#include <asm/mach/irq.h> 22#include <asm/mach/irq.h>
23#include <asm/arch/pxa-regs.h> 23#include <asm/arch/pxa-regs.h>
24#include <asm/arch/pxa2xx-gpio.h>
24 25
25#include "generic.h" 26#include "generic.h"
26 27
diff --git a/arch/arm/mach-pxa/leds-trizeps4.c b/arch/arm/mach-pxa/leds-trizeps4.c
index 2271d20ffeda..21880daabafe 100644
--- a/arch/arm/mach-pxa/leds-trizeps4.c
+++ b/arch/arm/mach-pxa/leds-trizeps4.c
@@ -18,6 +18,7 @@
18#include <asm/leds.h> 18#include <asm/leds.h>
19 19
20#include <asm/arch/pxa-regs.h> 20#include <asm/arch/pxa-regs.h>
21#include <asm/arch/pxa2xx-gpio.h>
21#include <asm/arch/trizeps4.h> 22#include <asm/arch/trizeps4.h>
22 23
23#include "leds.h" 24#include "leds.h"
diff --git a/arch/arm/mach-pxa/lpd270.c b/arch/arm/mach-pxa/lpd270.c
index afa62ffe3ad5..a20e4b1649d6 100644
--- a/arch/arm/mach-pxa/lpd270.c
+++ b/arch/arm/mach-pxa/lpd270.c
@@ -39,6 +39,7 @@
39 39
40#include <asm/arch/pxa-regs.h> 40#include <asm/arch/pxa-regs.h>
41#include <asm/arch/pxa2xx-regs.h> 41#include <asm/arch/pxa2xx-regs.h>
42#include <asm/arch/pxa2xx-gpio.h>
42#include <asm/arch/lpd270.h> 43#include <asm/arch/lpd270.h>
43#include <asm/arch/audio.h> 44#include <asm/arch/audio.h>
44#include <asm/arch/pxafb.h> 45#include <asm/arch/pxafb.h>
diff --git a/arch/arm/mach-pxa/lubbock.c b/arch/arm/mach-pxa/lubbock.c
index e7ae4bb3e361..81567ec983a4 100644
--- a/arch/arm/mach-pxa/lubbock.c
+++ b/arch/arm/mach-pxa/lubbock.c
@@ -42,6 +42,7 @@
42 42
43#include <asm/arch/pxa-regs.h> 43#include <asm/arch/pxa-regs.h>
44#include <asm/arch/pxa2xx-regs.h> 44#include <asm/arch/pxa2xx-regs.h>
45#include <asm/arch/pxa2xx-gpio.h>
45#include <asm/arch/lubbock.h> 46#include <asm/arch/lubbock.h>
46#include <asm/arch/udc.h> 47#include <asm/arch/udc.h>
47#include <asm/arch/irda.h> 48#include <asm/arch/irda.h>
diff --git a/arch/arm/mach-pxa/mainstone.c b/arch/arm/mach-pxa/mainstone.c
index 72a436fb9a29..75be0c74a640 100644
--- a/arch/arm/mach-pxa/mainstone.c
+++ b/arch/arm/mach-pxa/mainstone.c
@@ -40,6 +40,7 @@
40 40
41#include <asm/arch/pxa-regs.h> 41#include <asm/arch/pxa-regs.h>
42#include <asm/arch/pxa2xx-regs.h> 42#include <asm/arch/pxa2xx-regs.h>
43#include <asm/arch/pxa2xx-gpio.h>
43#include <asm/arch/mainstone.h> 44#include <asm/arch/mainstone.h>
44#include <asm/arch/audio.h> 45#include <asm/arch/audio.h>
45#include <asm/arch/pxafb.h> 46#include <asm/arch/pxafb.h>
diff --git a/arch/arm/mach-pxa/pcm027.c b/arch/arm/mach-pxa/pcm027.c
index c14696b9979d..3b945eb0aee3 100644
--- a/arch/arm/mach-pxa/pcm027.c
+++ b/arch/arm/mach-pxa/pcm027.c
@@ -29,6 +29,7 @@
29#include <asm/mach/arch.h> 29#include <asm/mach/arch.h>
30#include <asm/arch/hardware.h> 30#include <asm/arch/hardware.h>
31#include <asm/arch/pxa-regs.h> 31#include <asm/arch/pxa-regs.h>
32#include <asm/arch/pxa2xx-gpio.h>
32#include <asm/arch/pxa2xx-regs.h> 33#include <asm/arch/pxa2xx-regs.h>
33#include <asm/arch/pxa2xx_spi.h> 34#include <asm/arch/pxa2xx_spi.h>
34#include <asm/arch/pcm027.h> 35#include <asm/arch/pcm027.h>
diff --git a/arch/arm/mach-pxa/pcm990-baseboard.c b/arch/arm/mach-pxa/pcm990-baseboard.c
index 3dda16a20049..20b2974e3960 100644
--- a/arch/arm/mach-pxa/pcm990-baseboard.c
+++ b/arch/arm/mach-pxa/pcm990-baseboard.c
@@ -25,6 +25,7 @@
25#include <linux/ide.h> 25#include <linux/ide.h>
26#include <asm/mach/map.h> 26#include <asm/mach/map.h>
27#include <asm/arch/pxa-regs.h> 27#include <asm/arch/pxa-regs.h>
28#include <asm/arch/pxa2xx-gpio.h>
28#include <asm/arch/mmc.h> 29#include <asm/arch/mmc.h>
29#include <asm/arch/ohci.h> 30#include <asm/arch/ohci.h>
30#include <asm/arch/pcm990_baseboard.h> 31#include <asm/arch/pcm990_baseboard.h>
diff --git a/arch/arm/mach-pxa/poodle.c b/arch/arm/mach-pxa/poodle.c
index 209eabf0ed3e..ca5ac196b47b 100644
--- a/arch/arm/mach-pxa/poodle.c
+++ b/arch/arm/mach-pxa/poodle.c
@@ -32,6 +32,7 @@
32#include <asm/mach/irq.h> 32#include <asm/mach/irq.h>
33 33
34#include <asm/arch/pxa-regs.h> 34#include <asm/arch/pxa-regs.h>
35#include <asm/arch/pxa2xx-gpio.h>
35#include <asm/arch/mmc.h> 36#include <asm/arch/mmc.h>
36#include <asm/arch/udc.h> 37#include <asm/arch/udc.h>
37#include <asm/arch/irda.h> 38#include <asm/arch/irda.h>
diff --git a/arch/arm/mach-pxa/sharpsl_pm.c b/arch/arm/mach-pxa/sharpsl_pm.c
index f9d1b61e1185..34cd585075b0 100644
--- a/arch/arm/mach-pxa/sharpsl_pm.c
+++ b/arch/arm/mach-pxa/sharpsl_pm.c
@@ -26,6 +26,7 @@
26#include <asm/mach-types.h> 26#include <asm/mach-types.h>
27#include <asm/arch/pm.h> 27#include <asm/arch/pm.h>
28#include <asm/arch/pxa-regs.h> 28#include <asm/arch/pxa-regs.h>
29#include <asm/arch/pxa2xx-gpio.h>
29#include <asm/arch/sharpsl.h> 30#include <asm/arch/sharpsl.h>
30#include "sharpsl.h" 31#include "sharpsl.h"
31 32
diff --git a/arch/arm/mach-pxa/spitz.c b/arch/arm/mach-pxa/spitz.c
index 9e7773fca01c..62a02c3927c5 100644
--- a/arch/arm/mach-pxa/spitz.c
+++ b/arch/arm/mach-pxa/spitz.c
@@ -37,6 +37,7 @@
37 37
38#include <asm/arch/pxa-regs.h> 38#include <asm/arch/pxa-regs.h>
39#include <asm/arch/pxa2xx-regs.h> 39#include <asm/arch/pxa2xx-regs.h>
40#include <asm/arch/pxa2xx-gpio.h>
40#include <asm/arch/irda.h> 41#include <asm/arch/irda.h>
41#include <asm/arch/mmc.h> 42#include <asm/arch/mmc.h>
42#include <asm/arch/ohci.h> 43#include <asm/arch/ohci.h>
diff --git a/arch/arm/mach-pxa/spitz_pm.c b/arch/arm/mach-pxa/spitz_pm.c
index 745a4dc7acdd..7a7f5f947cc5 100644
--- a/arch/arm/mach-pxa/spitz_pm.c
+++ b/arch/arm/mach-pxa/spitz_pm.c
@@ -26,6 +26,7 @@
26#include <asm/arch/sharpsl.h> 26#include <asm/arch/sharpsl.h>
27#include <asm/arch/spitz.h> 27#include <asm/arch/spitz.h>
28#include <asm/arch/pxa-regs.h> 28#include <asm/arch/pxa-regs.h>
29#include <asm/arch/pxa2xx-gpio.h>
29#include "sharpsl.h" 30#include "sharpsl.h"
30 31
31#define SHARPSL_CHARGE_ON_VOLT 0x99 /* 2.9V */ 32#define SHARPSL_CHARGE_ON_VOLT 0x99 /* 2.9V */
diff --git a/arch/arm/mach-pxa/tosa.c b/arch/arm/mach-pxa/tosa.c
index f99112d50b41..d427d87b4fe8 100644
--- a/arch/arm/mach-pxa/tosa.c
+++ b/arch/arm/mach-pxa/tosa.c
@@ -32,6 +32,7 @@
32#include <asm/system.h> 32#include <asm/system.h>
33#include <asm/arch/pxa-regs.h> 33#include <asm/arch/pxa-regs.h>
34#include <asm/arch/pxa2xx-regs.h> 34#include <asm/arch/pxa2xx-regs.h>
35#include <asm/arch/pxa2xx-gpio.h>
35#include <asm/arch/irda.h> 36#include <asm/arch/irda.h>
36#include <asm/arch/mmc.h> 37#include <asm/arch/mmc.h>
37#include <asm/arch/udc.h> 38#include <asm/arch/udc.h>
diff --git a/arch/arm/mach-pxa/trizeps4.c b/arch/arm/mach-pxa/trizeps4.c
index f207fcd30cd7..931885d86b91 100644
--- a/arch/arm/mach-pxa/trizeps4.c
+++ b/arch/arm/mach-pxa/trizeps4.c
@@ -41,6 +41,7 @@
41#include <asm/mach/flash.h> 41#include <asm/mach/flash.h>
42 42
43#include <asm/arch/pxa-regs.h> 43#include <asm/arch/pxa-regs.h>
44#include <asm/arch/pxa2xx-gpio.h>
44#include <asm/arch/trizeps4.h> 45#include <asm/arch/trizeps4.h>
45#include <asm/arch/audio.h> 46#include <asm/arch/audio.h>
46#include <asm/arch/pxafb.h> 47#include <asm/arch/pxafb.h>
diff --git a/drivers/i2c/busses/i2c-pxa.c b/drivers/i2c/busses/i2c-pxa.c
index 2d2087ad708f..6fd2d6a84eff 100644
--- a/drivers/i2c/busses/i2c-pxa.c
+++ b/drivers/i2c/busses/i2c-pxa.c
@@ -39,6 +39,7 @@
39#include <asm/io.h> 39#include <asm/io.h>
40#include <asm/arch/i2c.h> 40#include <asm/arch/i2c.h>
41#include <asm/arch/pxa-regs.h> 41#include <asm/arch/pxa-regs.h>
42#include <asm/arch/pxa2xx-gpio.h>
42 43
43struct pxa_i2c { 44struct pxa_i2c {
44 spinlock_t lock; 45 spinlock_t lock;
diff --git a/drivers/input/keyboard/corgikbd.c b/drivers/input/keyboard/corgikbd.c
index 790fed368aae..5d6cc7f1dc94 100644
--- a/drivers/input/keyboard/corgikbd.c
+++ b/drivers/input/keyboard/corgikbd.c
@@ -23,6 +23,7 @@
23#include <asm/arch/corgi.h> 23#include <asm/arch/corgi.h>
24#include <asm/arch/hardware.h> 24#include <asm/arch/hardware.h>
25#include <asm/arch/pxa-regs.h> 25#include <asm/arch/pxa-regs.h>
26#include <asm/arch/pxa2xx-gpio.h>
26#include <asm/hardware/scoop.h> 27#include <asm/hardware/scoop.h>
27 28
28#define KB_ROWS 8 29#define KB_ROWS 8
diff --git a/drivers/input/keyboard/spitzkbd.c b/drivers/input/keyboard/spitzkbd.c
index 1d59a2dc3c17..0be74bfc58fe 100644
--- a/drivers/input/keyboard/spitzkbd.c
+++ b/drivers/input/keyboard/spitzkbd.c
@@ -23,6 +23,7 @@
23#include <asm/arch/spitz.h> 23#include <asm/arch/spitz.h>
24#include <asm/arch/hardware.h> 24#include <asm/arch/hardware.h>
25#include <asm/arch/pxa-regs.h> 25#include <asm/arch/pxa-regs.h>
26#include <asm/arch/pxa2xx-gpio.h>
26 27
27#define KB_ROWS 7 28#define KB_ROWS 7
28#define KB_COLS 11 29#define KB_COLS 11
diff --git a/drivers/input/touchscreen/corgi_ts.c b/drivers/input/touchscreen/corgi_ts.c
index 99d92f5c93d6..a22576779acd 100644
--- a/drivers/input/touchscreen/corgi_ts.c
+++ b/drivers/input/touchscreen/corgi_ts.c
@@ -22,6 +22,7 @@
22#include <asm/arch/sharpsl.h> 22#include <asm/arch/sharpsl.h>
23#include <asm/arch/hardware.h> 23#include <asm/arch/hardware.h>
24#include <asm/arch/pxa-regs.h> 24#include <asm/arch/pxa-regs.h>
25#include <asm/arch/pxa2xx-gpio.h>
25 26
26 27
27#define PWR_MODE_ACTIVE 0 28#define PWR_MODE_ACTIVE 0
diff --git a/drivers/net/irda/pxaficp_ir.c b/drivers/net/irda/pxaficp_ir.c
index 8c09344f58dc..8239c520f1ef 100644
--- a/drivers/net/irda/pxaficp_ir.c
+++ b/drivers/net/irda/pxaficp_ir.c
@@ -36,6 +36,7 @@
36#include <asm/hardware.h> 36#include <asm/hardware.h>
37#include <asm/arch/irda.h> 37#include <asm/arch/irda.h>
38#include <asm/arch/pxa-regs.h> 38#include <asm/arch/pxa-regs.h>
39#include <asm/arch/pxa2xx-gpio.h>
39 40
40#ifdef CONFIG_MACH_MAINSTONE 41#ifdef CONFIG_MACH_MAINSTONE
41#include <asm/arch/mainstone.h> 42#include <asm/arch/mainstone.h>
diff --git a/drivers/pcmcia/pxa2xx_cm_x270.c b/drivers/pcmcia/pxa2xx_cm_x270.c
index fbf2f3a6984c..e7ab060ff118 100644
--- a/drivers/pcmcia/pxa2xx_cm_x270.c
+++ b/drivers/pcmcia/pxa2xx_cm_x270.c
@@ -20,6 +20,7 @@
20#include <asm/hardware.h> 20#include <asm/hardware.h>
21 21
22#include <asm/arch/pxa-regs.h> 22#include <asm/arch/pxa-regs.h>
23#include <asm/arch/pxa2xx-gpio.h>
23#include <asm/arch/cm-x270.h> 24#include <asm/arch/cm-x270.h>
24 25
25#include "soc_common.h" 26#include "soc_common.h"
diff --git a/drivers/video/pxafb.c b/drivers/video/pxafb.c
index 97facb121c73..757651954e6c 100644
--- a/drivers/video/pxafb.c
+++ b/drivers/video/pxafb.c
@@ -45,6 +45,7 @@
45#include <asm/irq.h> 45#include <asm/irq.h>
46#include <asm/div64.h> 46#include <asm/div64.h>
47#include <asm/arch/pxa-regs.h> 47#include <asm/arch/pxa-regs.h>
48#include <asm/arch/pxa2xx-gpio.h>
48#include <asm/arch/bitfield.h> 49#include <asm/arch/bitfield.h>
49#include <asm/arch/pxafb.h> 50#include <asm/arch/pxafb.h>
50 51
diff --git a/include/asm-arm/arch-pxa/pxa-regs.h b/include/asm-arm/arch-pxa/pxa-regs.h
index e659be4df3ac..e78adf8268ea 100644
--- a/include/asm-arm/arch-pxa/pxa-regs.h
+++ b/include/asm-arm/arch-pxa/pxa-regs.h
@@ -1236,307 +1236,6 @@
1236 1236
1237#endif 1237#endif
1238 1238
1239
1240/* GPIO alternate function assignments */
1241
1242#define GPIO1_RST 1 /* reset */
1243#define GPIO6_MMCCLK 6 /* MMC Clock */
1244#define GPIO7_48MHz 7 /* 48 MHz clock output */
1245#define GPIO8_MMCCS0 8 /* MMC Chip Select 0 */
1246#define GPIO9_MMCCS1 9 /* MMC Chip Select 1 */
1247#define GPIO10_RTCCLK 10 /* real time clock (1 Hz) */
1248#define GPIO11_3_6MHz 11 /* 3.6 MHz oscillator out */
1249#define GPIO12_32KHz 12 /* 32 kHz out */
1250#define GPIO12_CIF_DD_7 12 /* Camera data pin 7 */
1251#define GPIO13_MBGNT 13 /* memory controller grant */
1252#define GPIO14_MBREQ 14 /* alternate bus master request */
1253#define GPIO15_nCS_1 15 /* chip select 1 */
1254#define GPIO16_PWM0 16 /* PWM0 output */
1255#define GPIO17_PWM1 17 /* PWM1 output */
1256#define GPIO17_CIF_DD_6 17 /* Camera data pin 6 */
1257#define GPIO18_RDY 18 /* Ext. Bus Ready */
1258#define GPIO19_DREQ1 19 /* External DMA Request */
1259#define GPIO20_DREQ0 20 /* External DMA Request */
1260#define GPIO23_SCLK 23 /* SSP clock */
1261#define GPIO24_SFRM 24 /* SSP Frame */
1262#define GPIO25_STXD 25 /* SSP transmit */
1263#define GPIO26_SRXD 26 /* SSP receive */
1264#define GPIO27_SEXTCLK 27 /* SSP ext_clk */
1265#define GPIO28_BITCLK 28 /* AC97/I2S bit_clk */
1266#define GPIO29_SDATA_IN 29 /* AC97 Sdata_in0 / I2S Sdata_in */
1267#define GPIO30_SDATA_OUT 30 /* AC97/I2S Sdata_out */
1268#define GPIO31_SYNC 31 /* AC97/I2S sync */
1269#define GPIO32_SDATA_IN1 32 /* AC97 Sdata_in1 */
1270#define GPIO32_SYSCLK 32 /* I2S System Clock */
1271#define GPIO32_MMCCLK 32 /* MMC Clock (PXA270) */
1272#define GPIO33_nCS_5 33 /* chip select 5 */
1273#define GPIO34_FFRXD 34 /* FFUART receive */
1274#define GPIO34_MMCCS0 34 /* MMC Chip Select 0 */
1275#define GPIO35_FFCTS 35 /* FFUART Clear to send */
1276#define GPIO36_FFDCD 36 /* FFUART Data carrier detect */
1277#define GPIO37_FFDSR 37 /* FFUART data set ready */
1278#define GPIO38_FFRI 38 /* FFUART Ring Indicator */
1279#define GPIO39_MMCCS1 39 /* MMC Chip Select 1 */
1280#define GPIO39_FFTXD 39 /* FFUART transmit data */
1281#define GPIO40_FFDTR 40 /* FFUART data terminal Ready */
1282#define GPIO41_FFRTS 41 /* FFUART request to send */
1283#define GPIO42_BTRXD 42 /* BTUART receive data */
1284#define GPIO42_HWRXD 42 /* HWUART receive data */
1285#define GPIO43_BTTXD 43 /* BTUART transmit data */
1286#define GPIO43_HWTXD 43 /* HWUART transmit data */
1287#define GPIO44_BTCTS 44 /* BTUART clear to send */
1288#define GPIO44_HWCTS 44 /* HWUART clear to send */
1289#define GPIO45_BTRTS 45 /* BTUART request to send */
1290#define GPIO45_HWRTS 45 /* HWUART request to send */
1291#define GPIO45_AC97_SYSCLK 45 /* AC97 System Clock */
1292#define GPIO46_ICPRXD 46 /* ICP receive data */
1293#define GPIO46_STRXD 46 /* STD_UART receive data */
1294#define GPIO47_ICPTXD 47 /* ICP transmit data */
1295#define GPIO47_STTXD 47 /* STD_UART transmit data */
1296#define GPIO48_nPOE 48 /* Output Enable for Card Space */
1297#define GPIO49_nPWE 49 /* Write Enable for Card Space */
1298#define GPIO50_nPIOR 50 /* I/O Read for Card Space */
1299#define GPIO50_CIF_DD_3 50 /* Camera data pin 3 */
1300#define GPIO51_nPIOW 51 /* I/O Write for Card Space */
1301#define GPIO51_CIF_DD_2 51 /* Camera data pin 2 */
1302#define GPIO52_nPCE_1 52 /* Card Enable for Card Space */
1303#define GPIO52_CIF_DD_4 52 /* Camera data pin 4 */
1304#define GPIO53_nPCE_2 53 /* Card Enable for Card Space */
1305#define GPIO53_MMCCLK 53 /* MMC Clock */
1306#define GPIO53_CIF_MCLK 53 /* Camera Master Clock */
1307#define GPIO54_MMCCLK 54 /* MMC Clock */
1308#define GPIO54_pSKTSEL 54 /* Socket Select for Card Space */
1309#define GPIO54_nPCE_2 54 /* Card Enable for Card Space (PXA27x) */
1310#define GPIO54_CIF_PCLK 54 /* Camera Pixel Clock */
1311#define GPIO55_nPREG 55 /* Card Address bit 26 */
1312#define GPIO55_CIF_DD_1 55 /* Camera data pin 1 */
1313#define GPIO56_nPWAIT 56 /* Wait signal for Card Space */
1314#define GPIO57_nIOIS16 57 /* Bus Width select for I/O Card Space */
1315#define GPIO58_LDD_0 58 /* LCD data pin 0 */
1316#define GPIO59_LDD_1 59 /* LCD data pin 1 */
1317#define GPIO60_LDD_2 60 /* LCD data pin 2 */
1318#define GPIO61_LDD_3 61 /* LCD data pin 3 */
1319#define GPIO62_LDD_4 62 /* LCD data pin 4 */
1320#define GPIO63_LDD_5 63 /* LCD data pin 5 */
1321#define GPIO64_LDD_6 64 /* LCD data pin 6 */
1322#define GPIO65_LDD_7 65 /* LCD data pin 7 */
1323#define GPIO66_LDD_8 66 /* LCD data pin 8 */
1324#define GPIO66_MBREQ 66 /* alternate bus master req */
1325#define GPIO67_LDD_9 67 /* LCD data pin 9 */
1326#define GPIO67_MMCCS0 67 /* MMC Chip Select 0 */
1327#define GPIO68_LDD_10 68 /* LCD data pin 10 */
1328#define GPIO68_MMCCS1 68 /* MMC Chip Select 1 */
1329#define GPIO69_LDD_11 69 /* LCD data pin 11 */
1330#define GPIO69_MMCCLK 69 /* MMC_CLK */
1331#define GPIO70_LDD_12 70 /* LCD data pin 12 */
1332#define GPIO70_RTCCLK 70 /* Real Time clock (1 Hz) */
1333#define GPIO71_LDD_13 71 /* LCD data pin 13 */
1334#define GPIO71_3_6MHz 71 /* 3.6 MHz Oscillator clock */
1335#define GPIO72_LDD_14 72 /* LCD data pin 14 */
1336#define GPIO72_32kHz 72 /* 32 kHz clock */
1337#define GPIO73_LDD_15 73 /* LCD data pin 15 */
1338#define GPIO73_MBGNT 73 /* Memory controller grant */
1339#define GPIO74_LCD_FCLK 74 /* LCD Frame clock */
1340#define GPIO75_LCD_LCLK 75 /* LCD line clock */
1341#define GPIO76_LCD_PCLK 76 /* LCD Pixel clock */
1342#define GPIO77_LCD_ACBIAS 77 /* LCD AC Bias */
1343#define GPIO78_nCS_2 78 /* chip select 2 */
1344#define GPIO79_nCS_3 79 /* chip select 3 */
1345#define GPIO80_nCS_4 80 /* chip select 4 */
1346#define GPIO81_NSCLK 81 /* NSSP clock */
1347#define GPIO81_CIF_DD_0 81 /* Camera data pin 0 */
1348#define GPIO82_NSFRM 82 /* NSSP Frame */
1349#define GPIO82_CIF_DD_5 82 /* Camera data pin 5 */
1350#define GPIO83_NSTXD 83 /* NSSP transmit */
1351#define GPIO84_NSRXD 84 /* NSSP receive */
1352#define GPIO84_CIF_FV 84 /* Camera frame start signal */
1353#define GPIO85_nPCE_1 85 /* Card Enable for Card Space (PXA27x) */
1354#define GPIO85_CIF_LV 85 /* Camera line start signal */
1355#define GPIO92_MMCDAT0 92 /* MMC DAT0 (PXA27x) */
1356#define GPIO102_nPCE_1 102 /* PCMCIA (PXA27x) */
1357#define GPIO109_MMCDAT1 109 /* MMC DAT1 (PXA27x) */
1358#define GPIO110_MMCDAT2 110 /* MMC DAT2 (PXA27x) */
1359#define GPIO110_MMCCS0 110 /* MMC Chip Select 0 (PXA27x) */
1360#define GPIO111_MMCDAT3 111 /* MMC DAT3 (PXA27x) */
1361#define GPIO111_MMCCS1 111 /* MMC Chip Select 1 (PXA27x) */
1362#define GPIO112_MMCCMD 112 /* MMC CMD (PXA27x) */
1363#define GPIO113_I2S_SYSCLK 113 /* I2S System Clock (PXA27x) */
1364#define GPIO113_AC97_RESET_N 113 /* AC97 NRESET on (PXA27x) */
1365
1366/* GPIO alternate function mode & direction */
1367
1368#define GPIO_IN 0x000
1369#define GPIO_OUT 0x080
1370#define GPIO_ALT_FN_1_IN 0x100
1371#define GPIO_ALT_FN_1_OUT 0x180
1372#define GPIO_ALT_FN_2_IN 0x200
1373#define GPIO_ALT_FN_2_OUT 0x280
1374#define GPIO_ALT_FN_3_IN 0x300
1375#define GPIO_ALT_FN_3_OUT 0x380
1376#define GPIO_MD_MASK_NR 0x07f
1377#define GPIO_MD_MASK_DIR 0x080
1378#define GPIO_MD_MASK_FN 0x300
1379#define GPIO_DFLT_LOW 0x400
1380#define GPIO_DFLT_HIGH 0x800
1381
1382#define GPIO1_RTS_MD ( 1 | GPIO_ALT_FN_1_IN)
1383#define GPIO6_MMCCLK_MD ( 6 | GPIO_ALT_FN_1_OUT)
1384#define GPIO7_48MHz_MD ( 7 | GPIO_ALT_FN_1_OUT)
1385#define GPIO8_MMCCS0_MD ( 8 | GPIO_ALT_FN_1_OUT)
1386#define GPIO9_MMCCS1_MD ( 9 | GPIO_ALT_FN_1_OUT)
1387#define GPIO10_RTCCLK_MD (10 | GPIO_ALT_FN_1_OUT)
1388#define GPIO11_3_6MHz_MD (11 | GPIO_ALT_FN_1_OUT)
1389#define GPIO12_32KHz_MD (12 | GPIO_ALT_FN_1_OUT)
1390#define GPIO12_CIF_DD_7_MD (12 | GPIO_ALT_FN_2_IN)
1391#define GPIO13_MBGNT_MD (13 | GPIO_ALT_FN_2_OUT)
1392#define GPIO14_MBREQ_MD (14 | GPIO_ALT_FN_1_IN)
1393#define GPIO15_nCS_1_MD (15 | GPIO_ALT_FN_2_OUT)
1394#define GPIO16_PWM0_MD (16 | GPIO_ALT_FN_2_OUT)
1395#define GPIO17_PWM1_MD (17 | GPIO_ALT_FN_2_OUT)
1396#define GPIO17_CIF_DD_6_MD (17 | GPIO_ALT_FN_2_IN)
1397#define GPIO18_RDY_MD (18 | GPIO_ALT_FN_1_IN)
1398#define GPIO19_DREQ1_MD (19 | GPIO_ALT_FN_1_IN)
1399#define GPIO20_DREQ0_MD (20 | GPIO_ALT_FN_1_IN)
1400#define GPIO23_SCLK_MD (23 | GPIO_ALT_FN_2_OUT)
1401#define GPIO24_SFRM_MD (24 | GPIO_ALT_FN_2_OUT)
1402#define GPIO25_STXD_MD (25 | GPIO_ALT_FN_2_OUT)
1403#define GPIO26_SRXD_MD (26 | GPIO_ALT_FN_1_IN)
1404#define GPIO27_SEXTCLK_MD (27 | GPIO_ALT_FN_1_IN)
1405#define GPIO28_BITCLK_AC97_MD (28 | GPIO_ALT_FN_1_IN)
1406#define GPIO28_BITCLK_IN_I2S_MD (28 | GPIO_ALT_FN_2_IN)
1407#define GPIO28_BITCLK_OUT_I2S_MD (28 | GPIO_ALT_FN_1_OUT)
1408#define GPIO29_SDATA_IN_AC97_MD (29 | GPIO_ALT_FN_1_IN)
1409#define GPIO29_SDATA_IN_I2S_MD (29 | GPIO_ALT_FN_2_IN)
1410#define GPIO30_SDATA_OUT_AC97_MD (30 | GPIO_ALT_FN_2_OUT)
1411#define GPIO30_SDATA_OUT_I2S_MD (30 | GPIO_ALT_FN_1_OUT)
1412#define GPIO31_SYNC_I2S_MD (31 | GPIO_ALT_FN_1_OUT)
1413#define GPIO31_SYNC_AC97_MD (31 | GPIO_ALT_FN_2_OUT)
1414#define GPIO32_SDATA_IN1_AC97_MD (32 | GPIO_ALT_FN_1_IN)
1415#define GPIO32_SYSCLK_I2S_MD (32 | GPIO_ALT_FN_1_OUT)
1416#define GPIO32_MMCCLK_MD (32 | GPIO_ALT_FN_2_OUT)
1417#define GPIO33_nCS_5_MD (33 | GPIO_ALT_FN_2_OUT)
1418#define GPIO34_FFRXD_MD (34 | GPIO_ALT_FN_1_IN)
1419#define GPIO34_MMCCS0_MD (34 | GPIO_ALT_FN_2_OUT)
1420#define GPIO35_FFCTS_MD (35 | GPIO_ALT_FN_1_IN)
1421#define GPIO35_KP_MKOUT6_MD (35 | GPIO_ALT_FN_2_OUT)
1422#define GPIO36_FFDCD_MD (36 | GPIO_ALT_FN_1_IN)
1423#define GPIO37_FFDSR_MD (37 | GPIO_ALT_FN_1_IN)
1424#define GPIO38_FFRI_MD (38 | GPIO_ALT_FN_1_IN)
1425#define GPIO39_MMCCS1_MD (39 | GPIO_ALT_FN_1_OUT)
1426#define GPIO39_FFTXD_MD (39 | GPIO_ALT_FN_2_OUT)
1427#define GPIO40_FFDTR_MD (40 | GPIO_ALT_FN_2_OUT)
1428#define GPIO41_FFRTS_MD (41 | GPIO_ALT_FN_2_OUT)
1429#define GPIO41_KP_MKOUT7_MD (41 | GPIO_ALT_FN_1_OUT)
1430#define GPIO42_BTRXD_MD (42 | GPIO_ALT_FN_1_IN)
1431#define GPIO42_HWRXD_MD (42 | GPIO_ALT_FN_3_IN)
1432#define GPIO43_BTTXD_MD (43 | GPIO_ALT_FN_2_OUT)
1433#define GPIO43_HWTXD_MD (43 | GPIO_ALT_FN_3_OUT)
1434#define GPIO44_BTCTS_MD (44 | GPIO_ALT_FN_1_IN)
1435#define GPIO44_HWCTS_MD (44 | GPIO_ALT_FN_3_IN)
1436#define GPIO45_BTRTS_MD (45 | GPIO_ALT_FN_2_OUT)
1437#define GPIO45_HWRTS_MD (45 | GPIO_ALT_FN_3_OUT)
1438#define GPIO45_SYSCLK_AC97_MD (45 | GPIO_ALT_FN_1_OUT)
1439#define GPIO46_ICPRXD_MD (46 | GPIO_ALT_FN_1_IN)
1440#define GPIO46_STRXD_MD (46 | GPIO_ALT_FN_2_IN)
1441#define GPIO47_ICPTXD_MD (47 | GPIO_ALT_FN_2_OUT)
1442#define GPIO47_STTXD_MD (47 | GPIO_ALT_FN_1_OUT)
1443#define GPIO48_nPOE_MD (48 | GPIO_ALT_FN_2_OUT)
1444#define GPIO48_HWTXD_MD (48 | GPIO_ALT_FN_1_OUT)
1445#define GPIO48_nPOE_MD (48 | GPIO_ALT_FN_2_OUT)
1446#define GPIO49_HWRXD_MD (49 | GPIO_ALT_FN_1_IN)
1447#define GPIO49_nPWE_MD (49 | GPIO_ALT_FN_2_OUT)
1448#define GPIO50_nPIOR_MD (50 | GPIO_ALT_FN_2_OUT)
1449#define GPIO50_HWCTS_MD (50 | GPIO_ALT_FN_1_IN)
1450#define GPIO50_CIF_DD_3_MD (50 | GPIO_ALT_FN_1_IN)
1451#define GPIO51_nPIOW_MD (51 | GPIO_ALT_FN_2_OUT)
1452#define GPIO51_HWRTS_MD (51 | GPIO_ALT_FN_1_OUT)
1453#define GPIO51_CIF_DD_2_MD (51 | GPIO_ALT_FN_1_IN)
1454#define GPIO52_nPCE_1_MD (52 | GPIO_ALT_FN_2_OUT)
1455#define GPIO52_CIF_DD_4_MD (52 | GPIO_ALT_FN_1_IN)
1456#define GPIO53_nPCE_2_MD (53 | GPIO_ALT_FN_2_OUT)
1457#define GPIO53_MMCCLK_MD (53 | GPIO_ALT_FN_1_OUT)
1458#define GPIO53_CIF_MCLK_MD (53 | GPIO_ALT_FN_2_OUT)
1459#define GPIO54_MMCCLK_MD (54 | GPIO_ALT_FN_1_OUT)
1460#define GPIO54_nPCE_2_MD (54 | GPIO_ALT_FN_2_OUT)
1461#define GPIO54_pSKTSEL_MD (54 | GPIO_ALT_FN_2_OUT)
1462#define GPIO54_CIF_PCLK_MD (54 | GPIO_ALT_FN_3_IN)
1463#define GPIO55_nPREG_MD (55 | GPIO_ALT_FN_2_OUT)
1464#define GPIO55_CIF_DD_1_MD (55 | GPIO_ALT_FN_1_IN)
1465#define GPIO56_nPWAIT_MD (56 | GPIO_ALT_FN_1_IN)
1466#define GPIO57_nIOIS16_MD (57 | GPIO_ALT_FN_1_IN)
1467#define GPIO58_LDD_0_MD (58 | GPIO_ALT_FN_2_OUT)
1468#define GPIO59_LDD_1_MD (59 | GPIO_ALT_FN_2_OUT)
1469#define GPIO60_LDD_2_MD (60 | GPIO_ALT_FN_2_OUT)
1470#define GPIO61_LDD_3_MD (61 | GPIO_ALT_FN_2_OUT)
1471#define GPIO62_LDD_4_MD (62 | GPIO_ALT_FN_2_OUT)
1472#define GPIO63_LDD_5_MD (63 | GPIO_ALT_FN_2_OUT)
1473#define GPIO64_LDD_6_MD (64 | GPIO_ALT_FN_2_OUT)
1474#define GPIO65_LDD_7_MD (65 | GPIO_ALT_FN_2_OUT)
1475#define GPIO66_LDD_8_MD (66 | GPIO_ALT_FN_2_OUT)
1476#define GPIO66_MBREQ_MD (66 | GPIO_ALT_FN_1_IN)
1477#define GPIO67_LDD_9_MD (67 | GPIO_ALT_FN_2_OUT)
1478#define GPIO67_MMCCS0_MD (67 | GPIO_ALT_FN_1_OUT)
1479#define GPIO68_LDD_10_MD (68 | GPIO_ALT_FN_2_OUT)
1480#define GPIO68_MMCCS1_MD (68 | GPIO_ALT_FN_1_OUT)
1481#define GPIO69_LDD_11_MD (69 | GPIO_ALT_FN_2_OUT)
1482#define GPIO69_MMCCLK_MD (69 | GPIO_ALT_FN_1_OUT)
1483#define GPIO70_LDD_12_MD (70 | GPIO_ALT_FN_2_OUT)
1484#define GPIO70_RTCCLK_MD (70 | GPIO_ALT_FN_1_OUT)
1485#define GPIO71_LDD_13_MD (71 | GPIO_ALT_FN_2_OUT)
1486#define GPIO71_3_6MHz_MD (71 | GPIO_ALT_FN_1_OUT)
1487#define GPIO72_LDD_14_MD (72 | GPIO_ALT_FN_2_OUT)
1488#define GPIO72_32kHz_MD (72 | GPIO_ALT_FN_1_OUT)
1489#define GPIO73_LDD_15_MD (73 | GPIO_ALT_FN_2_OUT)
1490#define GPIO73_MBGNT_MD (73 | GPIO_ALT_FN_1_OUT)
1491#define GPIO74_LCD_FCLK_MD (74 | GPIO_ALT_FN_2_OUT)
1492#define GPIO75_LCD_LCLK_MD (75 | GPIO_ALT_FN_2_OUT)
1493#define GPIO76_LCD_PCLK_MD (76 | GPIO_ALT_FN_2_OUT)
1494#define GPIO77_LCD_ACBIAS_MD (77 | GPIO_ALT_FN_2_OUT)
1495#define GPIO78_nCS_2_MD (78 | GPIO_ALT_FN_2_OUT)
1496#define GPIO78_nPCE_2_MD (78 | GPIO_ALT_FN_1_OUT)
1497#define GPIO79_nCS_3_MD (79 | GPIO_ALT_FN_2_OUT)
1498#define GPIO79_pSKTSEL_MD (79 | GPIO_ALT_FN_1_OUT)
1499#define GPIO80_nCS_4_MD (80 | GPIO_ALT_FN_2_OUT)
1500#define GPIO81_NSSP_CLK_OUT (81 | GPIO_ALT_FN_1_OUT)
1501#define GPIO81_NSSP_CLK_IN (81 | GPIO_ALT_FN_1_IN)
1502#define GPIO81_CIF_DD_0_MD (81 | GPIO_ALT_FN_2_IN)
1503#define GPIO82_NSSP_FRM_OUT (82 | GPIO_ALT_FN_1_OUT)
1504#define GPIO82_NSSP_FRM_IN (82 | GPIO_ALT_FN_1_IN)
1505#define GPIO82_CIF_DD_5_MD (82 | GPIO_ALT_FN_3_IN)
1506#define GPIO83_NSSP_TX (83 | GPIO_ALT_FN_1_OUT)
1507#define GPIO83_NSSP_RX (83 | GPIO_ALT_FN_2_IN)
1508#define GPIO84_NSSP_TX (84 | GPIO_ALT_FN_1_OUT)
1509#define GPIO84_NSSP_RX (84 | GPIO_ALT_FN_2_IN)
1510#define GPIO84_CIF_FV_MD (84 | GPIO_ALT_FN_3_IN)
1511#define GPIO85_nPCE_1_MD (85 | GPIO_ALT_FN_1_OUT)
1512#define GPIO85_CIF_LV_MD (85 | GPIO_ALT_FN_3_IN)
1513#define GPIO86_nPCE_1_MD (86 | GPIO_ALT_FN_1_OUT)
1514#define GPIO92_MMCDAT0_MD (92 | GPIO_ALT_FN_1_OUT)
1515#define GPIO95_KP_MKIN6_MD (95 | GPIO_ALT_FN_3_IN)
1516#define GPIO96_KP_DKIN3_MD (96 | GPIO_ALT_FN_1_IN)
1517#define GPIO97_KP_MKIN3_MD (97 | GPIO_ALT_FN_3_IN)
1518#define GPIO100_KP_MKIN0_MD (100 | GPIO_ALT_FN_1_IN)
1519#define GPIO101_KP_MKIN1_MD (101 | GPIO_ALT_FN_1_IN)
1520#define GPIO102_nPCE_1_MD (102 | GPIO_ALT_FN_1_OUT)
1521#define GPIO102_KP_MKIN2_MD (102 | GPIO_ALT_FN_1_IN)
1522#define GPIO103_KP_MKOUT0_MD (103 | GPIO_ALT_FN_2_OUT)
1523#define GPIO104_pSKTSEL_MD (104 | GPIO_ALT_FN_1_OUT)
1524#define GPIO104_KP_MKOUT1_MD (104 | GPIO_ALT_FN_2_OUT)
1525#define GPIO105_KP_MKOUT2_MD (105 | GPIO_ALT_FN_2_OUT)
1526#define GPIO106_KP_MKOUT3_MD (106 | GPIO_ALT_FN_2_OUT)
1527#define GPIO107_KP_MKOUT4_MD (107 | GPIO_ALT_FN_2_OUT)
1528#define GPIO108_KP_MKOUT5_MD (108 | GPIO_ALT_FN_2_OUT)
1529#define GPIO109_MMCDAT1_MD (109 | GPIO_ALT_FN_1_OUT)
1530#define GPIO110_MMCDAT2_MD (110 | GPIO_ALT_FN_1_OUT)
1531#define GPIO110_MMCCS0_MD (110 | GPIO_ALT_FN_1_OUT)
1532#define GPIO111_MMCDAT3_MD (111 | GPIO_ALT_FN_1_OUT)
1533#define GPIO110_MMCCS1_MD (111 | GPIO_ALT_FN_1_OUT)
1534#define GPIO112_MMCCMD_MD (112 | GPIO_ALT_FN_1_OUT)
1535#define GPIO113_I2S_SYSCLK_MD (113 | GPIO_ALT_FN_1_OUT)
1536#define GPIO113_AC97_RESET_N_MD (113 | GPIO_ALT_FN_2_OUT)
1537#define GPIO117_I2CSCL_MD (117 | GPIO_ALT_FN_1_IN)
1538#define GPIO118_I2CSDA_MD (118 | GPIO_ALT_FN_1_IN)
1539
1540/* 1239/*
1541 * Power Manager 1240 * Power Manager
1542 */ 1241 */
diff --git a/include/asm-arm/arch-pxa/pxa2xx-gpio.h b/include/asm-arm/arch-pxa/pxa2xx-gpio.h
new file mode 100644
index 000000000000..fb4189447538
--- /dev/null
+++ b/include/asm-arm/arch-pxa/pxa2xx-gpio.h
@@ -0,0 +1,304 @@
1#ifndef __ASM_ARCH_PXA2XX_GPIO_H
2#define __ASM_ARCH_PXA2XX_GPIO_H
3
4/* GPIO alternate function assignments */
5
6#define GPIO1_RST 1 /* reset */
7#define GPIO6_MMCCLK 6 /* MMC Clock */
8#define GPIO7_48MHz 7 /* 48 MHz clock output */
9#define GPIO8_MMCCS0 8 /* MMC Chip Select 0 */
10#define GPIO9_MMCCS1 9 /* MMC Chip Select 1 */
11#define GPIO10_RTCCLK 10 /* real time clock (1 Hz) */
12#define GPIO11_3_6MHz 11 /* 3.6 MHz oscillator out */
13#define GPIO12_32KHz 12 /* 32 kHz out */
14#define GPIO12_CIF_DD_7 12 /* Camera data pin 7 */
15#define GPIO13_MBGNT 13 /* memory controller grant */
16#define GPIO14_MBREQ 14 /* alternate bus master request */
17#define GPIO15_nCS_1 15 /* chip select 1 */
18#define GPIO16_PWM0 16 /* PWM0 output */
19#define GPIO17_PWM1 17 /* PWM1 output */
20#define GPIO17_CIF_DD_6 17 /* Camera data pin 6 */
21#define GPIO18_RDY 18 /* Ext. Bus Ready */
22#define GPIO19_DREQ1 19 /* External DMA Request */
23#define GPIO20_DREQ0 20 /* External DMA Request */
24#define GPIO23_SCLK 23 /* SSP clock */
25#define GPIO24_SFRM 24 /* SSP Frame */
26#define GPIO25_STXD 25 /* SSP transmit */
27#define GPIO26_SRXD 26 /* SSP receive */
28#define GPIO27_SEXTCLK 27 /* SSP ext_clk */
29#define GPIO28_BITCLK 28 /* AC97/I2S bit_clk */
30#define GPIO29_SDATA_IN 29 /* AC97 Sdata_in0 / I2S Sdata_in */
31#define GPIO30_SDATA_OUT 30 /* AC97/I2S Sdata_out */
32#define GPIO31_SYNC 31 /* AC97/I2S sync */
33#define GPIO32_SDATA_IN1 32 /* AC97 Sdata_in1 */
34#define GPIO32_SYSCLK 32 /* I2S System Clock */
35#define GPIO32_MMCCLK 32 /* MMC Clock (PXA270) */
36#define GPIO33_nCS_5 33 /* chip select 5 */
37#define GPIO34_FFRXD 34 /* FFUART receive */
38#define GPIO34_MMCCS0 34 /* MMC Chip Select 0 */
39#define GPIO35_FFCTS 35 /* FFUART Clear to send */
40#define GPIO36_FFDCD 36 /* FFUART Data carrier detect */
41#define GPIO37_FFDSR 37 /* FFUART data set ready */
42#define GPIO38_FFRI 38 /* FFUART Ring Indicator */
43#define GPIO39_MMCCS1 39 /* MMC Chip Select 1 */
44#define GPIO39_FFTXD 39 /* FFUART transmit data */
45#define GPIO40_FFDTR 40 /* FFUART data terminal Ready */
46#define GPIO41_FFRTS 41 /* FFUART request to send */
47#define GPIO42_BTRXD 42 /* BTUART receive data */
48#define GPIO42_HWRXD 42 /* HWUART receive data */
49#define GPIO43_BTTXD 43 /* BTUART transmit data */
50#define GPIO43_HWTXD 43 /* HWUART transmit data */
51#define GPIO44_BTCTS 44 /* BTUART clear to send */
52#define GPIO44_HWCTS 44 /* HWUART clear to send */
53#define GPIO45_BTRTS 45 /* BTUART request to send */
54#define GPIO45_HWRTS 45 /* HWUART request to send */
55#define GPIO45_AC97_SYSCLK 45 /* AC97 System Clock */
56#define GPIO46_ICPRXD 46 /* ICP receive data */
57#define GPIO46_STRXD 46 /* STD_UART receive data */
58#define GPIO47_ICPTXD 47 /* ICP transmit data */
59#define GPIO47_STTXD 47 /* STD_UART transmit data */
60#define GPIO48_nPOE 48 /* Output Enable for Card Space */
61#define GPIO49_nPWE 49 /* Write Enable for Card Space */
62#define GPIO50_nPIOR 50 /* I/O Read for Card Space */
63#define GPIO50_CIF_DD_3 50 /* Camera data pin 3 */
64#define GPIO51_nPIOW 51 /* I/O Write for Card Space */
65#define GPIO51_CIF_DD_2 51 /* Camera data pin 2 */
66#define GPIO52_nPCE_1 52 /* Card Enable for Card Space */
67#define GPIO52_CIF_DD_4 52 /* Camera data pin 4 */
68#define GPIO53_nPCE_2 53 /* Card Enable for Card Space */
69#define GPIO53_MMCCLK 53 /* MMC Clock */
70#define GPIO53_CIF_MCLK 53 /* Camera Master Clock */
71#define GPIO54_MMCCLK 54 /* MMC Clock */
72#define GPIO54_pSKTSEL 54 /* Socket Select for Card Space */
73#define GPIO54_nPCE_2 54 /* Card Enable for Card Space (PXA27x) */
74#define GPIO54_CIF_PCLK 54 /* Camera Pixel Clock */
75#define GPIO55_nPREG 55 /* Card Address bit 26 */
76#define GPIO55_CIF_DD_1 55 /* Camera data pin 1 */
77#define GPIO56_nPWAIT 56 /* Wait signal for Card Space */
78#define GPIO57_nIOIS16 57 /* Bus Width select for I/O Card Space */
79#define GPIO58_LDD_0 58 /* LCD data pin 0 */
80#define GPIO59_LDD_1 59 /* LCD data pin 1 */
81#define GPIO60_LDD_2 60 /* LCD data pin 2 */
82#define GPIO61_LDD_3 61 /* LCD data pin 3 */
83#define GPIO62_LDD_4 62 /* LCD data pin 4 */
84#define GPIO63_LDD_5 63 /* LCD data pin 5 */
85#define GPIO64_LDD_6 64 /* LCD data pin 6 */
86#define GPIO65_LDD_7 65 /* LCD data pin 7 */
87#define GPIO66_LDD_8 66 /* LCD data pin 8 */
88#define GPIO66_MBREQ 66 /* alternate bus master req */
89#define GPIO67_LDD_9 67 /* LCD data pin 9 */
90#define GPIO67_MMCCS0 67 /* MMC Chip Select 0 */
91#define GPIO68_LDD_10 68 /* LCD data pin 10 */
92#define GPIO68_MMCCS1 68 /* MMC Chip Select 1 */
93#define GPIO69_LDD_11 69 /* LCD data pin 11 */
94#define GPIO69_MMCCLK 69 /* MMC_CLK */
95#define GPIO70_LDD_12 70 /* LCD data pin 12 */
96#define GPIO70_RTCCLK 70 /* Real Time clock (1 Hz) */
97#define GPIO71_LDD_13 71 /* LCD data pin 13 */
98#define GPIO71_3_6MHz 71 /* 3.6 MHz Oscillator clock */
99#define GPIO72_LDD_14 72 /* LCD data pin 14 */
100#define GPIO72_32kHz 72 /* 32 kHz clock */
101#define GPIO73_LDD_15 73 /* LCD data pin 15 */
102#define GPIO73_MBGNT 73 /* Memory controller grant */
103#define GPIO74_LCD_FCLK 74 /* LCD Frame clock */
104#define GPIO75_LCD_LCLK 75 /* LCD line clock */
105#define GPIO76_LCD_PCLK 76 /* LCD Pixel clock */
106#define GPIO77_LCD_ACBIAS 77 /* LCD AC Bias */
107#define GPIO78_nCS_2 78 /* chip select 2 */
108#define GPIO79_nCS_3 79 /* chip select 3 */
109#define GPIO80_nCS_4 80 /* chip select 4 */
110#define GPIO81_NSCLK 81 /* NSSP clock */
111#define GPIO81_CIF_DD_0 81 /* Camera data pin 0 */
112#define GPIO82_NSFRM 82 /* NSSP Frame */
113#define GPIO82_CIF_DD_5 82 /* Camera data pin 5 */
114#define GPIO83_NSTXD 83 /* NSSP transmit */
115#define GPIO84_NSRXD 84 /* NSSP receive */
116#define GPIO84_CIF_FV 84 /* Camera frame start signal */
117#define GPIO85_nPCE_1 85 /* Card Enable for Card Space (PXA27x) */
118#define GPIO85_CIF_LV 85 /* Camera line start signal */
119#define GPIO92_MMCDAT0 92 /* MMC DAT0 (PXA27x) */
120#define GPIO102_nPCE_1 102 /* PCMCIA (PXA27x) */
121#define GPIO109_MMCDAT1 109 /* MMC DAT1 (PXA27x) */
122#define GPIO110_MMCDAT2 110 /* MMC DAT2 (PXA27x) */
123#define GPIO110_MMCCS0 110 /* MMC Chip Select 0 (PXA27x) */
124#define GPIO111_MMCDAT3 111 /* MMC DAT3 (PXA27x) */
125#define GPIO111_MMCCS1 111 /* MMC Chip Select 1 (PXA27x) */
126#define GPIO112_MMCCMD 112 /* MMC CMD (PXA27x) */
127#define GPIO113_I2S_SYSCLK 113 /* I2S System Clock (PXA27x) */
128#define GPIO113_AC97_RESET_N 113 /* AC97 NRESET on (PXA27x) */
129
130/* GPIO alternate function mode & direction */
131
132#define GPIO_IN 0x000
133#define GPIO_OUT 0x080
134#define GPIO_ALT_FN_1_IN 0x100
135#define GPIO_ALT_FN_1_OUT 0x180
136#define GPIO_ALT_FN_2_IN 0x200
137#define GPIO_ALT_FN_2_OUT 0x280
138#define GPIO_ALT_FN_3_IN 0x300
139#define GPIO_ALT_FN_3_OUT 0x380
140#define GPIO_MD_MASK_NR 0x07f
141#define GPIO_MD_MASK_DIR 0x080
142#define GPIO_MD_MASK_FN 0x300
143#define GPIO_DFLT_LOW 0x400
144#define GPIO_DFLT_HIGH 0x800
145
146#define GPIO1_RTS_MD ( 1 | GPIO_ALT_FN_1_IN)
147#define GPIO6_MMCCLK_MD ( 6 | GPIO_ALT_FN_1_OUT)
148#define GPIO7_48MHz_MD ( 7 | GPIO_ALT_FN_1_OUT)
149#define GPIO8_MMCCS0_MD ( 8 | GPIO_ALT_FN_1_OUT)
150#define GPIO9_MMCCS1_MD ( 9 | GPIO_ALT_FN_1_OUT)
151#define GPIO10_RTCCLK_MD (10 | GPIO_ALT_FN_1_OUT)
152#define GPIO11_3_6MHz_MD (11 | GPIO_ALT_FN_1_OUT)
153#define GPIO12_32KHz_MD (12 | GPIO_ALT_FN_1_OUT)
154#define GPIO12_CIF_DD_7_MD (12 | GPIO_ALT_FN_2_IN)
155#define GPIO13_MBGNT_MD (13 | GPIO_ALT_FN_2_OUT)
156#define GPIO14_MBREQ_MD (14 | GPIO_ALT_FN_1_IN)
157#define GPIO15_nCS_1_MD (15 | GPIO_ALT_FN_2_OUT)
158#define GPIO16_PWM0_MD (16 | GPIO_ALT_FN_2_OUT)
159#define GPIO17_PWM1_MD (17 | GPIO_ALT_FN_2_OUT)
160#define GPIO17_CIF_DD_6_MD (17 | GPIO_ALT_FN_2_IN)
161#define GPIO18_RDY_MD (18 | GPIO_ALT_FN_1_IN)
162#define GPIO19_DREQ1_MD (19 | GPIO_ALT_FN_1_IN)
163#define GPIO20_DREQ0_MD (20 | GPIO_ALT_FN_1_IN)
164#define GPIO23_SCLK_MD (23 | GPIO_ALT_FN_2_OUT)
165#define GPIO24_SFRM_MD (24 | GPIO_ALT_FN_2_OUT)
166#define GPIO25_STXD_MD (25 | GPIO_ALT_FN_2_OUT)
167#define GPIO26_SRXD_MD (26 | GPIO_ALT_FN_1_IN)
168#define GPIO27_SEXTCLK_MD (27 | GPIO_ALT_FN_1_IN)
169#define GPIO28_BITCLK_AC97_MD (28 | GPIO_ALT_FN_1_IN)
170#define GPIO28_BITCLK_IN_I2S_MD (28 | GPIO_ALT_FN_2_IN)
171#define GPIO28_BITCLK_OUT_I2S_MD (28 | GPIO_ALT_FN_1_OUT)
172#define GPIO29_SDATA_IN_AC97_MD (29 | GPIO_ALT_FN_1_IN)
173#define GPIO29_SDATA_IN_I2S_MD (29 | GPIO_ALT_FN_2_IN)
174#define GPIO30_SDATA_OUT_AC97_MD (30 | GPIO_ALT_FN_2_OUT)
175#define GPIO30_SDATA_OUT_I2S_MD (30 | GPIO_ALT_FN_1_OUT)
176#define GPIO31_SYNC_I2S_MD (31 | GPIO_ALT_FN_1_OUT)
177#define GPIO31_SYNC_AC97_MD (31 | GPIO_ALT_FN_2_OUT)
178#define GPIO32_SDATA_IN1_AC97_MD (32 | GPIO_ALT_FN_1_IN)
179#define GPIO32_SYSCLK_I2S_MD (32 | GPIO_ALT_FN_1_OUT)
180#define GPIO32_MMCCLK_MD (32 | GPIO_ALT_FN_2_OUT)
181#define GPIO33_nCS_5_MD (33 | GPIO_ALT_FN_2_OUT)
182#define GPIO34_FFRXD_MD (34 | GPIO_ALT_FN_1_IN)
183#define GPIO34_MMCCS0_MD (34 | GPIO_ALT_FN_2_OUT)
184#define GPIO35_FFCTS_MD (35 | GPIO_ALT_FN_1_IN)
185#define GPIO35_KP_MKOUT6_MD (35 | GPIO_ALT_FN_2_OUT)
186#define GPIO36_FFDCD_MD (36 | GPIO_ALT_FN_1_IN)
187#define GPIO37_FFDSR_MD (37 | GPIO_ALT_FN_1_IN)
188#define GPIO38_FFRI_MD (38 | GPIO_ALT_FN_1_IN)
189#define GPIO39_MMCCS1_MD (39 | GPIO_ALT_FN_1_OUT)
190#define GPIO39_FFTXD_MD (39 | GPIO_ALT_FN_2_OUT)
191#define GPIO40_FFDTR_MD (40 | GPIO_ALT_FN_2_OUT)
192#define GPIO41_FFRTS_MD (41 | GPIO_ALT_FN_2_OUT)
193#define GPIO41_KP_MKOUT7_MD (41 | GPIO_ALT_FN_1_OUT)
194#define GPIO42_BTRXD_MD (42 | GPIO_ALT_FN_1_IN)
195#define GPIO42_HWRXD_MD (42 | GPIO_ALT_FN_3_IN)
196#define GPIO43_BTTXD_MD (43 | GPIO_ALT_FN_2_OUT)
197#define GPIO43_HWTXD_MD (43 | GPIO_ALT_FN_3_OUT)
198#define GPIO44_BTCTS_MD (44 | GPIO_ALT_FN_1_IN)
199#define GPIO44_HWCTS_MD (44 | GPIO_ALT_FN_3_IN)
200#define GPIO45_BTRTS_MD (45 | GPIO_ALT_FN_2_OUT)
201#define GPIO45_HWRTS_MD (45 | GPIO_ALT_FN_3_OUT)
202#define GPIO45_SYSCLK_AC97_MD (45 | GPIO_ALT_FN_1_OUT)
203#define GPIO46_ICPRXD_MD (46 | GPIO_ALT_FN_1_IN)
204#define GPIO46_STRXD_MD (46 | GPIO_ALT_FN_2_IN)
205#define GPIO47_ICPTXD_MD (47 | GPIO_ALT_FN_2_OUT)
206#define GPIO47_STTXD_MD (47 | GPIO_ALT_FN_1_OUT)
207#define GPIO48_nPOE_MD (48 | GPIO_ALT_FN_2_OUT)
208#define GPIO48_HWTXD_MD (48 | GPIO_ALT_FN_1_OUT)
209#define GPIO48_nPOE_MD (48 | GPIO_ALT_FN_2_OUT)
210#define GPIO49_HWRXD_MD (49 | GPIO_ALT_FN_1_IN)
211#define GPIO49_nPWE_MD (49 | GPIO_ALT_FN_2_OUT)
212#define GPIO50_nPIOR_MD (50 | GPIO_ALT_FN_2_OUT)
213#define GPIO50_HWCTS_MD (50 | GPIO_ALT_FN_1_IN)
214#define GPIO50_CIF_DD_3_MD (50 | GPIO_ALT_FN_1_IN)
215#define GPIO51_nPIOW_MD (51 | GPIO_ALT_FN_2_OUT)
216#define GPIO51_HWRTS_MD (51 | GPIO_ALT_FN_1_OUT)
217#define GPIO51_CIF_DD_2_MD (51 | GPIO_ALT_FN_1_IN)
218#define GPIO52_nPCE_1_MD (52 | GPIO_ALT_FN_2_OUT)
219#define GPIO52_CIF_DD_4_MD (52 | GPIO_ALT_FN_1_IN)
220#define GPIO53_nPCE_2_MD (53 | GPIO_ALT_FN_2_OUT)
221#define GPIO53_MMCCLK_MD (53 | GPIO_ALT_FN_1_OUT)
222#define GPIO53_CIF_MCLK_MD (53 | GPIO_ALT_FN_2_OUT)
223#define GPIO54_MMCCLK_MD (54 | GPIO_ALT_FN_1_OUT)
224#define GPIO54_nPCE_2_MD (54 | GPIO_ALT_FN_2_OUT)
225#define GPIO54_pSKTSEL_MD (54 | GPIO_ALT_FN_2_OUT)
226#define GPIO54_CIF_PCLK_MD (54 | GPIO_ALT_FN_3_IN)
227#define GPIO55_nPREG_MD (55 | GPIO_ALT_FN_2_OUT)
228#define GPIO55_CIF_DD_1_MD (55 | GPIO_ALT_FN_1_IN)
229#define GPIO56_nPWAIT_MD (56 | GPIO_ALT_FN_1_IN)
230#define GPIO57_nIOIS16_MD (57 | GPIO_ALT_FN_1_IN)
231#define GPIO58_LDD_0_MD (58 | GPIO_ALT_FN_2_OUT)
232#define GPIO59_LDD_1_MD (59 | GPIO_ALT_FN_2_OUT)
233#define GPIO60_LDD_2_MD (60 | GPIO_ALT_FN_2_OUT)
234#define GPIO61_LDD_3_MD (61 | GPIO_ALT_FN_2_OUT)
235#define GPIO62_LDD_4_MD (62 | GPIO_ALT_FN_2_OUT)
236#define GPIO63_LDD_5_MD (63 | GPIO_ALT_FN_2_OUT)
237#define GPIO64_LDD_6_MD (64 | GPIO_ALT_FN_2_OUT)
238#define GPIO65_LDD_7_MD (65 | GPIO_ALT_FN_2_OUT)
239#define GPIO66_LDD_8_MD (66 | GPIO_ALT_FN_2_OUT)
240#define GPIO66_MBREQ_MD (66 | GPIO_ALT_FN_1_IN)
241#define GPIO67_LDD_9_MD (67 | GPIO_ALT_FN_2_OUT)
242#define GPIO67_MMCCS0_MD (67 | GPIO_ALT_FN_1_OUT)
243#define GPIO68_LDD_10_MD (68 | GPIO_ALT_FN_2_OUT)
244#define GPIO68_MMCCS1_MD (68 | GPIO_ALT_FN_1_OUT)
245#define GPIO69_LDD_11_MD (69 | GPIO_ALT_FN_2_OUT)
246#define GPIO69_MMCCLK_MD (69 | GPIO_ALT_FN_1_OUT)
247#define GPIO70_LDD_12_MD (70 | GPIO_ALT_FN_2_OUT)
248#define GPIO70_RTCCLK_MD (70 | GPIO_ALT_FN_1_OUT)
249#define GPIO71_LDD_13_MD (71 | GPIO_ALT_FN_2_OUT)
250#define GPIO71_3_6MHz_MD (71 | GPIO_ALT_FN_1_OUT)
251#define GPIO72_LDD_14_MD (72 | GPIO_ALT_FN_2_OUT)
252#define GPIO72_32kHz_MD (72 | GPIO_ALT_FN_1_OUT)
253#define GPIO73_LDD_15_MD (73 | GPIO_ALT_FN_2_OUT)
254#define GPIO73_MBGNT_MD (73 | GPIO_ALT_FN_1_OUT)
255#define GPIO74_LCD_FCLK_MD (74 | GPIO_ALT_FN_2_OUT)
256#define GPIO75_LCD_LCLK_MD (75 | GPIO_ALT_FN_2_OUT)
257#define GPIO76_LCD_PCLK_MD (76 | GPIO_ALT_FN_2_OUT)
258#define GPIO77_LCD_ACBIAS_MD (77 | GPIO_ALT_FN_2_OUT)
259#define GPIO78_nCS_2_MD (78 | GPIO_ALT_FN_2_OUT)
260#define GPIO78_nPCE_2_MD (78 | GPIO_ALT_FN_1_OUT)
261#define GPIO79_nCS_3_MD (79 | GPIO_ALT_FN_2_OUT)
262#define GPIO79_pSKTSEL_MD (79 | GPIO_ALT_FN_1_OUT)
263#define GPIO80_nCS_4_MD (80 | GPIO_ALT_FN_2_OUT)
264#define GPIO81_NSSP_CLK_OUT (81 | GPIO_ALT_FN_1_OUT)
265#define GPIO81_NSSP_CLK_IN (81 | GPIO_ALT_FN_1_IN)
266#define GPIO81_CIF_DD_0_MD (81 | GPIO_ALT_FN_2_IN)
267#define GPIO82_NSSP_FRM_OUT (82 | GPIO_ALT_FN_1_OUT)
268#define GPIO82_NSSP_FRM_IN (82 | GPIO_ALT_FN_1_IN)
269#define GPIO82_CIF_DD_5_MD (82 | GPIO_ALT_FN_3_IN)
270#define GPIO83_NSSP_TX (83 | GPIO_ALT_FN_1_OUT)
271#define GPIO83_NSSP_RX (83 | GPIO_ALT_FN_2_IN)
272#define GPIO84_NSSP_TX (84 | GPIO_ALT_FN_1_OUT)
273#define GPIO84_NSSP_RX (84 | GPIO_ALT_FN_2_IN)
274#define GPIO84_CIF_FV_MD (84 | GPIO_ALT_FN_3_IN)
275#define GPIO85_nPCE_1_MD (85 | GPIO_ALT_FN_1_OUT)
276#define GPIO85_CIF_LV_MD (85 | GPIO_ALT_FN_3_IN)
277#define GPIO86_nPCE_1_MD (86 | GPIO_ALT_FN_1_OUT)
278#define GPIO92_MMCDAT0_MD (92 | GPIO_ALT_FN_1_OUT)
279#define GPIO95_KP_MKIN6_MD (95 | GPIO_ALT_FN_3_IN)
280#define GPIO96_KP_DKIN3_MD (96 | GPIO_ALT_FN_1_IN)
281#define GPIO97_KP_MKIN3_MD (97 | GPIO_ALT_FN_3_IN)
282#define GPIO100_KP_MKIN0_MD (100 | GPIO_ALT_FN_1_IN)
283#define GPIO101_KP_MKIN1_MD (101 | GPIO_ALT_FN_1_IN)
284#define GPIO102_nPCE_1_MD (102 | GPIO_ALT_FN_1_OUT)
285#define GPIO102_KP_MKIN2_MD (102 | GPIO_ALT_FN_1_IN)
286#define GPIO103_KP_MKOUT0_MD (103 | GPIO_ALT_FN_2_OUT)
287#define GPIO104_pSKTSEL_MD (104 | GPIO_ALT_FN_1_OUT)
288#define GPIO104_KP_MKOUT1_MD (104 | GPIO_ALT_FN_2_OUT)
289#define GPIO105_KP_MKOUT2_MD (105 | GPIO_ALT_FN_2_OUT)
290#define GPIO106_KP_MKOUT3_MD (106 | GPIO_ALT_FN_2_OUT)
291#define GPIO107_KP_MKOUT4_MD (107 | GPIO_ALT_FN_2_OUT)
292#define GPIO108_KP_MKOUT5_MD (108 | GPIO_ALT_FN_2_OUT)
293#define GPIO109_MMCDAT1_MD (109 | GPIO_ALT_FN_1_OUT)
294#define GPIO110_MMCDAT2_MD (110 | GPIO_ALT_FN_1_OUT)
295#define GPIO110_MMCCS0_MD (110 | GPIO_ALT_FN_1_OUT)
296#define GPIO111_MMCDAT3_MD (111 | GPIO_ALT_FN_1_OUT)
297#define GPIO110_MMCCS1_MD (111 | GPIO_ALT_FN_1_OUT)
298#define GPIO112_MMCCMD_MD (112 | GPIO_ALT_FN_1_OUT)
299#define GPIO113_I2S_SYSCLK_MD (113 | GPIO_ALT_FN_1_OUT)
300#define GPIO113_AC97_RESET_N_MD (113 | GPIO_ALT_FN_2_OUT)
301#define GPIO117_I2CSCL_MD (117 | GPIO_ALT_FN_1_IN)
302#define GPIO118_I2CSDA_MD (118 | GPIO_ALT_FN_1_IN)
303
304#endif /* __ASM_ARCH_PXA2XX_GPIO_H */
diff --git a/sound/arm/pxa2xx-ac97.c b/sound/arm/pxa2xx-ac97.c
index fd7bc865e672..8704e2825b10 100644
--- a/sound/arm/pxa2xx-ac97.c
+++ b/sound/arm/pxa2xx-ac97.c
@@ -28,6 +28,7 @@
28#include <linux/mutex.h> 28#include <linux/mutex.h>
29#include <asm/hardware.h> 29#include <asm/hardware.h>
30#include <asm/arch/pxa-regs.h> 30#include <asm/arch/pxa-regs.h>
31#include <asm/arch/pxa2xx-gpio.h>
31#include <asm/arch/audio.h> 32#include <asm/arch/audio.h>
32 33
33#include "pxa2xx-pcm.h" 34#include "pxa2xx-pcm.h"
diff --git a/sound/soc/pxa/pxa2xx-ac97.c b/sound/soc/pxa/pxa2xx-ac97.c
index 711b916e58a6..fe9c297ae6f2 100644
--- a/sound/soc/pxa/pxa2xx-ac97.c
+++ b/sound/soc/pxa/pxa2xx-ac97.c
@@ -28,6 +28,7 @@
28#include <linux/mutex.h> 28#include <linux/mutex.h>
29#include <asm/hardware.h> 29#include <asm/hardware.h>
30#include <asm/arch/pxa-regs.h> 30#include <asm/arch/pxa-regs.h>
31#include <asm/arch/pxa2xx-gpio.h>
31#include <asm/arch/audio.h> 32#include <asm/arch/audio.h>
32 33
33#include "pxa2xx-pcm.h" 34#include "pxa2xx-pcm.h"
diff --git a/sound/soc/pxa/pxa2xx-i2s.c b/sound/soc/pxa/pxa2xx-i2s.c
index 692b90002489..425071030970 100644
--- a/sound/soc/pxa/pxa2xx-i2s.c
+++ b/sound/soc/pxa/pxa2xx-i2s.c
@@ -25,6 +25,7 @@
25 25
26#include <asm/hardware.h> 26#include <asm/hardware.h>
27#include <asm/arch/pxa-regs.h> 27#include <asm/arch/pxa-regs.h>
28#include <asm/arch/pxa2xx-gpio.h>
28#include <asm/arch/audio.h> 29#include <asm/arch/audio.h>
29 30
30#include "pxa2xx-pcm.h" 31#include "pxa2xx-pcm.h"