aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mx3/mx31moboard-devboard.c
diff options
context:
space:
mode:
authorValentin Longchamp <valentin.longchamp@epfl.ch>2009-08-10 12:33:11 -0400
committerSascha Hauer <s.hauer@pengutronix.de>2009-08-14 06:40:49 -0400
commitb23f1534bb0e0dc97e46fc52bf9bde0c2226763c (patch)
treed455f4683b355544974a60ef5fb5d8247e6588c5 /arch/arm/mach-mx3/mx31moboard-devboard.c
parent89829d5fe31dc42825f2560c3c2c641709ed594e (diff)
mx31moboard: added usb xcvr reset for mx31moboard
Signed-off-by: Valentin Longchamp <valentin.longchamp@epfl.ch> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx3/mx31moboard-devboard.c')
-rw-r--r--arch/arm/mach-mx3/mx31moboard-devboard.c30
1 files changed, 16 insertions, 14 deletions
diff --git a/arch/arm/mach-mx3/mx31moboard-devboard.c b/arch/arm/mach-mx3/mx31moboard-devboard.c
index 4704405165a1..2f2f142f075e 100644
--- a/arch/arm/mach-mx3/mx31moboard-devboard.c
+++ b/arch/arm/mach-mx3/mx31moboard-devboard.c
@@ -116,23 +116,25 @@ static struct fsl_usb2_platform_data usb_pdata = {
116 .phy_mode = FSL_USB2_PHY_ULPI, 116 .phy_mode = FSL_USB2_PHY_ULPI,
117}; 117};
118 118
119#define OTG_PAD_CFG (PAD_CTL_DRV_MAX | PAD_CTL_SRE_FAST) 119#define USB_PAD_CFG (PAD_CTL_DRV_MAX | PAD_CTL_SRE_FAST | PAD_CTL_HYS_CMOS | \
120#define OTG_EN_B IOMUX_TO_GPIO(MX31_PIN_USB_OC) 120 PAD_CTL_ODE_CMOS | PAD_CTL_100K_PU)
121
122#define OTG_EN_B IOMUX_TO_GPIO(MX31_PIN_USB_OC)
121 123
122static void devboard_usbotg_init(void) 124static void devboard_usbotg_init(void)
123{ 125{
124 mxc_iomux_set_pad(MX31_PIN_USBOTG_DATA0, OTG_PAD_CFG); 126 mxc_iomux_set_pad(MX31_PIN_USBOTG_DATA0, USB_PAD_CFG);
125 mxc_iomux_set_pad(MX31_PIN_USBOTG_DATA1, OTG_PAD_CFG); 127 mxc_iomux_set_pad(MX31_PIN_USBOTG_DATA1, USB_PAD_CFG);
126 mxc_iomux_set_pad(MX31_PIN_USBOTG_DATA2, OTG_PAD_CFG); 128 mxc_iomux_set_pad(MX31_PIN_USBOTG_DATA2, USB_PAD_CFG);
127 mxc_iomux_set_pad(MX31_PIN_USBOTG_DATA3, OTG_PAD_CFG); 129 mxc_iomux_set_pad(MX31_PIN_USBOTG_DATA3, USB_PAD_CFG);
128 mxc_iomux_set_pad(MX31_PIN_USBOTG_DATA4, OTG_PAD_CFG); 130 mxc_iomux_set_pad(MX31_PIN_USBOTG_DATA4, USB_PAD_CFG);
129 mxc_iomux_set_pad(MX31_PIN_USBOTG_DATA5, OTG_PAD_CFG); 131 mxc_iomux_set_pad(MX31_PIN_USBOTG_DATA5, USB_PAD_CFG);
130 mxc_iomux_set_pad(MX31_PIN_USBOTG_DATA6, OTG_PAD_CFG); 132 mxc_iomux_set_pad(MX31_PIN_USBOTG_DATA6, USB_PAD_CFG);
131 mxc_iomux_set_pad(MX31_PIN_USBOTG_DATA7, OTG_PAD_CFG); 133 mxc_iomux_set_pad(MX31_PIN_USBOTG_DATA7, USB_PAD_CFG);
132 mxc_iomux_set_pad(MX31_PIN_USBOTG_CLK, OTG_PAD_CFG); 134 mxc_iomux_set_pad(MX31_PIN_USBOTG_CLK, USB_PAD_CFG);
133 mxc_iomux_set_pad(MX31_PIN_USBOTG_DIR, OTG_PAD_CFG); 135 mxc_iomux_set_pad(MX31_PIN_USBOTG_DIR, USB_PAD_CFG);
134 mxc_iomux_set_pad(MX31_PIN_USBOTG_NXT, OTG_PAD_CFG); 136 mxc_iomux_set_pad(MX31_PIN_USBOTG_NXT, USB_PAD_CFG);
135 mxc_iomux_set_pad(MX31_PIN_USBOTG_STP, OTG_PAD_CFG); 137 mxc_iomux_set_pad(MX31_PIN_USBOTG_STP, USB_PAD_CFG);
136 138
137 gpio_request(OTG_EN_B, "usb-udc-en"); 139 gpio_request(OTG_EN_B, "usb-udc-en");
138 gpio_direction_output(OTG_EN_B, 0); 140 gpio_direction_output(OTG_EN_B, 0);