diff options
author | Ye.Li <B37916@freescale.com> | 2015-07-09 17:07:32 +0800 |
---|---|---|
committer | Ye Li <ye.li@nxp.com> | 2016-03-25 16:05:40 +0800 |
commit | b315d6b36a913d75d25284320e69050ebdf7a7eb (patch) | |
tree | 0ca7f5f4a9d0bd1e10b4ff10834e1e6cbaa83c7a /board/freescale/mx6qarm2 | |
parent | 81fd30250110d72992758f08b66c07306126892b (diff) | |
download | u-boot-imx-b315d6b36a913d75d25284320e69050ebdf7a7eb.zip u-boot-imx-b315d6b36a913d75d25284320e69050ebdf7a7eb.tar.gz u-boot-imx-b315d6b36a913d75d25284320e69050ebdf7a7eb.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/mx6qarm2')
-rw-r--r-- | board/freescale/mx6qarm2/mx6qarm2.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/board/freescale/mx6qarm2/mx6qarm2.c b/board/freescale/mx6qarm2/mx6qarm2.c index f74257f..9d0bc18 100644 --- a/board/freescale/mx6qarm2/mx6qarm2.c +++ b/board/freescale/mx6qarm2/mx6qarm2.c @@ -32,6 +32,10 @@ DECLARE_GLOBAL_DATA_PTR; #define ENET_PAD_CTRL (PAD_CTL_PUS_100K_UP | \ PAD_CTL_SPEED_MED | PAD_CTL_DSE_40ohm | PAD_CTL_HYS) +#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) + int dram_init(void) { #if defined(CONFIG_MX6DL) && !defined(CONFIG_MX6DL_LPDDR2) && \ @@ -236,7 +240,7 @@ int board_eth_init(bd_t *bis) static iomux_v3_cfg_t const usb_otg_pads[] = { MX6_PAD_EIM_D22__USB_OTG_PWR | MUX_PAD_CTRL(NO_PAD_CTRL), - MX6_PAD_GPIO_1__USB_OTG_ID | MUX_PAD_CTRL(NO_PAD_CTRL), + MX6_PAD_GPIO_1__USB_OTG_ID | MUX_PAD_CTRL(OTG_ID_PAD_CTRL), }; static void setup_usb(void) |