diff options
author | Ye Li <ye.li@nxp.com> | 2017-05-09 00:43:05 -0500 |
---|---|---|
committer | Ye Li <ye.li@nxp.com> | 2017-05-09 03:22:11 -0500 |
commit | 32d4060f845d189308d3431a7df4931ab4bd8f01 (patch) | |
tree | c908a415b9fe96796a74f3900ffdd5bf8bd1a8e0 /board/freescale/mx6qsabreauto | |
parent | 6b0d709df65a3aa1438cd6081569012030f81b88 (diff) | |
download | u-boot-imx-32d4060f845d189308d3431a7df4931ab4bd8f01.zip u-boot-imx-32d4060f845d189308d3431a7df4931ab4bd8f01.tar.gz u-boot-imx-32d4060f845d189308d3431a7df4931ab4bd8f01.tar.bz2 |
MLK-14845 mx6/mx7: Not call usb setup functions used by non-DM driver
Use CONFIG_DM_USB to comment out USB setup functions used by non-DM driver. So
they won't be executed when using DM driver.
These USB setup functions may setup power control pins to USB_PWR function not GPIO,
which is different as the GPIO function used by USB vbus-supply. And cause the power control
not work.
Signed-off-by: Ye Li <ye.li@nxp.com>
Diffstat (limited to 'board/freescale/mx6qsabreauto')
-rw-r--r-- | board/freescale/mx6qsabreauto/mx6qsabreauto.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/board/freescale/mx6qsabreauto/mx6qsabreauto.c b/board/freescale/mx6qsabreauto/mx6qsabreauto.c index 83d86b0..3565780 100644 --- a/board/freescale/mx6qsabreauto/mx6qsabreauto.c +++ b/board/freescale/mx6qsabreauto/mx6qsabreauto.c @@ -718,7 +718,7 @@ int board_spi_cs_gpio(unsigned bus, unsigned cs) #endif #ifdef CONFIG_USB_EHCI_MX6 - +#ifndef CONFIG_DM_USB iomux_v3_cfg_t const usb_otg_pads[] = { MX6_PAD_ENET_RX_ER__USB_OTG_ID | MUX_PAD_CTRL(OTG_ID_PAD_CTRL), }; @@ -798,6 +798,7 @@ int board_ehci_power(int port, int on) return 0; } #endif +#endif int board_early_init_f(void) { @@ -858,7 +859,15 @@ int board_init(void) #endif #ifdef CONFIG_USB_EHCI_MX6 +#ifndef CONFIG_DM_USB setup_usb(); +#else + /* + * Set daisy chain for otg_pin_id on 6q. + * For 6dl, this bit is reserved. + */ + imx_iomux_set_gpr_register(1, 13, 1, 0); +#endif #endif return 0; |