]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[ARM] pxa: add missing GPIOs definitions
authorEric Miao <eric.y.miao@gmail.com>
Sat, 22 Nov 2008 13:40:50 +0000 (21:40 +0800)
committerEric Miao <eric.miao@marvell.com>
Tue, 2 Dec 2008 06:42:41 +0000 (14:42 +0800)
GPIO3/GPIO4 are a bit special on pxa27x, since it depends on PCFR/PI2C_EN
bit, add their definitions here with comments.

Signed-off-by: Eric Miao <eric.miao@marvell.com>
Acked-by: Stefan Schmidt <stefan@datenfreihafen.org>
arch/arm/mach-pxa/include/mach/mfp-pxa27x.h

index 122bdbd5318222bddbc2b5469784d41e69704b64..da4f85a4f99010569794108c23e69bfb8e4ea59c 100644 (file)
 #include <mach/mfp.h>
 #include <mach/mfp-pxa2xx.h>
 
+/* Note: GPIO3/GPIO4 will be driven by Power I2C when PCFR/PI2C_EN
+ * bit is set, regardless of the GPIO configuration
+ */
+#define GPIO3_GPIO             MFP_CFG_IN(GPIO3, AF0)
+#define GPIO4_GPIO             MFP_CFG_IN(GPIO4, AF0)
+
 /* GPIO */
 #define GPIO85_GPIO            MFP_CFG_IN(GPIO85, AF0)
 #define GPIO86_GPIO            MFP_CFG_IN(GPIO86, AF0)