summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mxs/include/mach
diff options
context:
space:
mode:
authorShawn Guo2011-03-05 17:40:19 +0100
committerSascha Hauer2011-03-07 19:29:45 +0100
commitdb63a493838473e3ae87e0db06bb6ddd817f20a2 (patch)
tree47e3d8783c42934719334e405c227388a4615a36 /arch/arm/mach-mxs/include/mach
parentARM: mxc91231: select MXC_AVIC (diff)
downloadkernel-qcow2-linux-db63a493838473e3ae87e0db06bb6ddd817f20a2.tar.gz
kernel-qcow2-linux-db63a493838473e3ae87e0db06bb6ddd817f20a2.tar.xz
kernel-qcow2-linux-db63a493838473e3ae87e0db06bb6ddd817f20a2.zip
ARM: mxs: add helper macro for pad control
This patch is to add pad control helper macro to make the code easy to read. The need is being seen when adding pad definitions for LCDIF which gets ~30 pads to define. Signed-off-by: Shawn Guo <shawn.guo@freescale.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mxs/include/mach')
-rw-r--r--arch/arm/mach-mxs/include/mach/iomux.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/mach-mxs/include/mach/iomux.h b/arch/arm/mach-mxs/include/mach/iomux.h
index fe558e3c5a9a..7abdf58b8bb7 100644
--- a/arch/arm/mach-mxs/include/mach/iomux.h
+++ b/arch/arm/mach-mxs/include/mach/iomux.h
@@ -91,6 +91,9 @@ typedef u32 iomux_cfg_t;
#define MXS_PAD_PULLUP ((PAD_PULLUP << MXS_PAD_PULL_SHIFT) | \
MXS_PAD_PULL_VALID_MASK)
+/* generic pad control used in most cases */
+#define MXS_PAD_CTRL (MXS_PAD_4MA | MXS_PAD_3V3 | MXS_PAD_NOPULL)
+
#define MXS_IOMUX_PAD(_bank, _pin, _muxsel, _ma, _vol, _pull) \
(((iomux_cfg_t)(_bank) << MXS_PAD_BANK_SHIFT) | \
((iomux_cfg_t)(_pin) << MXS_PAD_PIN_SHIFT) | \