aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mx5/board-mx51_babbage.c
diff options
context:
space:
mode:
authorLothar Waßmann <LW@KARO-electronics.de>2010-10-26 08:28:31 -0400
committerSascha Hauer <s.hauer@pengutronix.de>2010-11-24 03:56:58 -0500
commit8f5260c8c1a1f9b25dfedd5ca749e4faef1b3eb9 (patch)
tree56f3a67b1cf74a670c026ab14cc872cf3accccb8 /arch/arm/mach-mx5/board-mx51_babbage.c
parent2a85927c79634e89b9cd683dd2bae65966d9b216 (diff)
ARM: i.MX IOMUX-V3 replace struct pad_desc with bitmapped cookie
The following patch is a first step to convert the 'struct pad_desc' to a bitmapped cookie to facilitate adding platform specific pullup or drive strength definitions to existing pad definitions without need to rewrite the complete pad def. The patch wraps 'struct pad_desc' in an opaque data type and introduces macros to access the individual members. This patch does not constitute any functional change! Signed-off-by: Lothar Waßmann <LW@KARO-electronics.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx5/board-mx51_babbage.c')
-rw-r--r--arch/arm/mach-mx5/board-mx51_babbage.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/arm/mach-mx5/board-mx51_babbage.c b/arch/arm/mach-mx5/board-mx51_babbage.c
index 542f2b147dcc..0df50d214db8 100644
--- a/arch/arm/mach-mx5/board-mx51_babbage.c
+++ b/arch/arm/mach-mx5/board-mx51_babbage.c
@@ -65,7 +65,7 @@ static const struct gpio_keys_platform_data imx_button_data __initconst = {
65 .nbuttons = ARRAY_SIZE(babbage_buttons), 65 .nbuttons = ARRAY_SIZE(babbage_buttons),
66}; 66};
67 67
68static struct pad_desc mx51babbage_pads[] = { 68static iomux_v3_cfg_t mx51babbage_pads[] = {
69 /* UART1 */ 69 /* UART1 */
70 MX51_PAD_UART1_RXD__UART1_RXD, 70 MX51_PAD_UART1_RXD__UART1_RXD,
71 MX51_PAD_UART1_TXD__UART1_TXD, 71 MX51_PAD_UART1_TXD__UART1_TXD,
@@ -177,8 +177,8 @@ static struct imxi2c_platform_data babbage_hsi2c_data = {
177 177
178static int gpio_usbh1_active(void) 178static int gpio_usbh1_active(void)
179{ 179{
180 struct pad_desc usbh1stp_gpio = MX51_PAD_USBH1_STP__GPIO_1_27; 180 iomux_v3_cfg_t usbh1stp_gpio = MX51_PAD_USBH1_STP__GPIO_1_27;
181 struct pad_desc phyreset_gpio = MX51_PAD_EIM_D21__GPIO_2_5; 181 iomux_v3_cfg_t phyreset_gpio = MX51_PAD_EIM_D21__GPIO_2_5;
182 int ret; 182 int ret;
183 183
184 /* Set USBH1_STP to GPIO and toggle it */ 184 /* Set USBH1_STP to GPIO and toggle it */
@@ -315,8 +315,8 @@ __setup("otg_mode=", babbage_otg_mode);
315 */ 315 */
316static void __init mxc_board_init(void) 316static void __init mxc_board_init(void)
317{ 317{
318 struct pad_desc usbh1stp = MX51_PAD_USBH1_STP__USBH1_STP; 318 iomux_v3_cfg_t usbh1stp = MX51_PAD_USBH1_STP__USBH1_STP;
319 struct pad_desc power_key = MX51_PAD_EIM_A27__GPIO_2_21; 319 iomux_v3_cfg_t power_key = MX51_PAD_EIM_A27__GPIO_2_21;
320 320
321#if defined(CONFIG_CPU_FREQ_IMX) 321#if defined(CONFIG_CPU_FREQ_IMX)
322 get_cpu_op = mx51_get_cpu_op; 322 get_cpu_op = mx51_get_cpu_op;