diff options
author | Ye.Li <B37916@freescale.com> | 2015-07-09 17:07:32 +0800 |
---|---|---|
committer | Ye.Li <B37916@freescale.com> | 2015-07-09 17:23:23 +0800 |
commit | 1f0cbe2b52b1ed7832a2f9c48950522f7b0fb6e8 (patch) | |
tree | faf531754c1e6c721d8ed1d586cf6d938ff87122 /board/freescale/mx6ul_14x14_ddr3_arm2 | |
parent | b8760a10e7f55d50572fbb07ecc2608074a0051d (diff) | |
download | u-boot-imx-1f0cbe2b52b1ed7832a2f9c48950522f7b0fb6e8.zip u-boot-imx-1f0cbe2b52b1ed7832a2f9c48950522f7b0fb6e8.tar.gz u-boot-imx-1f0cbe2b52b1ed7832a2f9c48950522f7b0fb6e8.tar.bz2 |
MLK-11230 imx6: USB: Modify OTG ID pin pad setting to pull up
Set the ID pin pad to pull up not the pull down at default, otherwise
we can't enter the device mode, but always detect as host.
After this change we have to use portA cable to play as host,
and use portB cable for device.
Signed-off-by: Ye.Li <B37916@freescale.com>
Diffstat (limited to 'board/freescale/mx6ul_14x14_ddr3_arm2')
-rw-r--r-- | board/freescale/mx6ul_14x14_ddr3_arm2/mx6ul_14x14_ddr3_arm2.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/board/freescale/mx6ul_14x14_ddr3_arm2/mx6ul_14x14_ddr3_arm2.c b/board/freescale/mx6ul_14x14_ddr3_arm2/mx6ul_14x14_ddr3_arm2.c index f5b8fc6..bb78c7b 100644 --- a/board/freescale/mx6ul_14x14_ddr3_arm2/mx6ul_14x14_ddr3_arm2.c +++ b/board/freescale/mx6ul_14x14_ddr3_arm2/mx6ul_14x14_ddr3_arm2.c @@ -75,6 +75,10 @@ DECLARE_GLOBAL_DATA_PTR; PAD_CTL_SPEED_MED | \ PAD_CTL_DSE_40ohm | PAD_CTL_SRE_FAST) +#define OTG_ID_PAD_CTRL (PAD_CTL_PKE | PAD_CTL_PUE | \ + PAD_CTL_PUS_47K_UP | PAD_CTL_SPEED_LOW | \ + PAD_CTL_DSE_80ohm | PAD_CTL_SRE_FAST | PAD_CTL_HYS) + #ifdef CONFIG_SYS_I2C_MXC #define PC MUX_PAD_CTRL(I2C_PAD_CTRL) /* I2C1 for PMIC and EEPROM */ @@ -985,7 +989,7 @@ iomux_v3_cfg_t const usb_otg2_pads[] = { /* conflict with i2c1_scl */ MX6_PAD_GPIO1_IO02__USB_OTG2_PWR | MUX_PAD_CTRL(NO_PAD_CTRL), /* conflict with sd1_vselect */ - MX6_PAD_GPIO1_IO05__ANATOP_OTG2_ID | MUX_PAD_CTRL(NO_PAD_CTRL), + MX6_PAD_GPIO1_IO05__ANATOP_OTG2_ID | MUX_PAD_CTRL(OTG_ID_PAD_CTRL), }; int board_usb_phy_mode(int port) |