summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mmp/include/mach/mfp-pxa168.h
diff options
context:
space:
mode:
authorHaojian Zhuang2011-04-08 14:15:39 +0200
committerEric Miao2011-04-12 17:24:41 +0200
commit6932613060b77e2495843d0ce0ce8453d01961a5 (patch)
tree8a6df592b69a1d5ee75dbcb3751c469a3087e174 /arch/arm/mach-mmp/include/mach/mfp-pxa168.h
parentpcmcia: limit pxa2xx_trizeps4 subdriver to trizeps4 platform (diff)
downloadkernel-qcow2-linux-6932613060b77e2495843d0ce0ce8453d01961a5.tar.gz
kernel-qcow2-linux-6932613060b77e2495843d0ce0ce8453d01961a5.tar.xz
kernel-qcow2-linux-6932613060b77e2495843d0ce0ce8453d01961a5.zip
ARM: pxa: always clear LPM bits for PXA168 MFPR
Bit[9:7] should always be zero in PXA168. Signed-off-by: Haojian Zhuang <haojian.zhuang@marvell.com> Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
Diffstat (limited to 'arch/arm/mach-mmp/include/mach/mfp-pxa168.h')
-rw-r--r--arch/arm/mach-mmp/include/mach/mfp-pxa168.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/mach-mmp/include/mach/mfp-pxa168.h b/arch/arm/mach-mmp/include/mach/mfp-pxa168.h
index 4621067c7720..713be155a44d 100644
--- a/arch/arm/mach-mmp/include/mach/mfp-pxa168.h
+++ b/arch/arm/mach-mmp/include/mach/mfp-pxa168.h
@@ -8,6 +8,15 @@
#define MFP_DRIVE_MEDIUM (0x2 << 13)
#define MFP_DRIVE_FAST (0x3 << 13)
+#undef MFP_CFG
+#undef MFP_CFG_DRV
+
+#define MFP_CFG(pin, af) \
+ (MFP_LPM_INPUT | MFP_PIN(MFP_PIN_##pin) | MFP_##af | MFP_DRIVE_MEDIUM)
+
+#define MFP_CFG_DRV(pin, af, drv) \
+ (MFP_LPM_INPUT | MFP_PIN(MFP_PIN_##pin) | MFP_##af | MFP_DRIVE_##drv)
+
/* GPIO */
#define GPIO0_GPIO MFP_CFG(GPIO0, AF5)
#define GPIO1_GPIO MFP_CFG(GPIO1, AF5)