diff options
author | Shawn Guo <shawn.guo@freescale.com> | 2011-03-06 00:40:19 +0800 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-03-07 19:29:45 +0100 |
commit | db63a493838473e3ae87e0db06bb6ddd817f20a2 (patch) | |
tree | 47e3d8783c42934719334e405c227388a4615a36 /arch/arm/mach-mxs/mach-mx23evk.c | |
parent | 65e7a3222fd9f47eafa908ef3e350ce4f953914e (diff) |
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/mach-mx23evk.c')
-rw-r--r-- | arch/arm/mach-mxs/mach-mx23evk.c | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/arch/arm/mach-mxs/mach-mx23evk.c b/arch/arm/mach-mxs/mach-mx23evk.c index 0737ce2e6cf..d7240547f0d 100644 --- a/arch/arm/mach-mxs/mach-mx23evk.c +++ b/arch/arm/mach-mxs/mach-mx23evk.c @@ -28,18 +28,14 @@ static const iomux_cfg_t mx23evk_pads[] __initconst = { /* duart */ - MX23_PAD_PWM0__DUART_RX | MXS_PAD_4MA, - MX23_PAD_PWM1__DUART_TX | MXS_PAD_4MA, + MX23_PAD_PWM0__DUART_RX | MXS_PAD_CTRL, + MX23_PAD_PWM1__DUART_TX | MXS_PAD_CTRL, /* auart */ - MX23_PAD_AUART1_RX__AUART1_RX | - (MXS_PAD_4MA | MXS_PAD_3V3 | MXS_PAD_NOPULL), - MX23_PAD_AUART1_TX__AUART1_TX | - (MXS_PAD_4MA | MXS_PAD_3V3 | MXS_PAD_NOPULL), - MX23_PAD_AUART1_CTS__AUART1_CTS | - (MXS_PAD_4MA | MXS_PAD_3V3 | MXS_PAD_NOPULL), - MX23_PAD_AUART1_RTS__AUART1_RTS | - (MXS_PAD_4MA | MXS_PAD_3V3 | MXS_PAD_NOPULL), + MX23_PAD_AUART1_RX__AUART1_RX | MXS_PAD_CTRL, + MX23_PAD_AUART1_TX__AUART1_TX | MXS_PAD_CTRL, + MX23_PAD_AUART1_CTS__AUART1_CTS | MXS_PAD_CTRL, + MX23_PAD_AUART1_RTS__AUART1_RTS | MXS_PAD_CTRL, }; static void __init mx23evk_init(void) |