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/mx6sxsabreauto/mx6sxsabreauto.c | |
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/mx6sxsabreauto/mx6sxsabreauto.c')
-rw-r--r-- | board/freescale/mx6sxsabreauto/mx6sxsabreauto.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/board/freescale/mx6sxsabreauto/mx6sxsabreauto.c b/board/freescale/mx6sxsabreauto/mx6sxsabreauto.c index 6019dde..0e19345 100644 --- a/board/freescale/mx6sxsabreauto/mx6sxsabreauto.c +++ b/board/freescale/mx6sxsabreauto/mx6sxsabreauto.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2014 Freescale Semiconductor, Inc. + * Copyright (C) 2014-2015 Freescale Semiconductor, Inc. * * SPDX-License-Identifier: GPL-2.0+ */ @@ -87,6 +87,10 @@ DECLARE_GLOBAL_DATA_PTR; PAD_CTL_SRE_FAST) #define GPMI_PAD_CTRL2 (GPMI_PAD_CTRL0 | GPMI_PAD_CTRL1) +#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) + #define I2C_PMIC 1 #ifdef CONFIG_SYS_I2C_MXC @@ -727,7 +731,7 @@ int board_early_init_f(void) iomux_v3_cfg_t const usb_otg_pads[] = { /* OTG1 */ MX6_PAD_GPIO1_IO09__USB_OTG1_PWR | MUX_PAD_CTRL(NO_PAD_CTRL), - MX6_PAD_GPIO1_IO10__ANATOP_OTG1_ID | MUX_PAD_CTRL(NO_PAD_CTRL), + MX6_PAD_GPIO1_IO10__ANATOP_OTG1_ID | MUX_PAD_CTRL(OTG_ID_PAD_CTRL), /* OTG2 */ MX6_PAD_GPIO1_IO12__USB_OTG2_PWR | MUX_PAD_CTRL(NO_PAD_CTRL), }; |