diff options
author | Ye Li <ye.li@nxp.com> | 2018-10-29 21:48:38 -0700 |
---|---|---|
committer | Ye Li <ye.li@nxp.com> | 2022-04-06 15:58:42 +0800 |
commit | 0bddbb16a73a3f0607ba51f340e1199254acf5ab (patch) | |
tree | d5c0bcb8cc6eac0dd1dfd0cdfebc4fe3bd14ce12 /board/freescale/mx7ulp_evk | |
parent | 4b8b45fb251d9af92b12a2061157355125490bb9 (diff) |
MLK-20116-3 mx7ulp_evk: Remove GPIO codes for USB ID
The iMX7ULP B0 chip has added more pins for muxing USB ID. The A3 board
follows it to exploit PTC13 for USB ID, so we don't need to use GPIO
any longer. The USB driver can recognize the USB mode from USB PHY.
After this change, old boards with design using GPIO for USB mode won't
be supported.
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit 706b1a41b73d9604d4a590173f86fb398a908406)
(cherry picked from commit 8302b13924a1e5c1ed356de6a9ce62198160c307)
(cherry picked from commit 362aaec61fc9baa0f701fcdafa95f40cb13b746d)
(cherry picked from commit aa167befc7f00d11adce75635c66d093e5f29307)
(cherry picked from commit bb8f35dd2c4e0a6b9ff9e340578be9bbda964455)
(cherry picked from commit 7364e30dad482c6694e5553558d00f2e9b98d03e)
(cherry picked from commit 6c410fe8a12ed2acf1258137ec79a01262933c26)
Diffstat (limited to 'board/freescale/mx7ulp_evk')
-rw-r--r-- | board/freescale/mx7ulp_evk/mx7ulp_evk.c | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/board/freescale/mx7ulp_evk/mx7ulp_evk.c b/board/freescale/mx7ulp_evk/mx7ulp_evk.c index 20e57729c8..51455460f3 100644 --- a/board/freescale/mx7ulp_evk/mx7ulp_evk.c +++ b/board/freescale/mx7ulp_evk/mx7ulp_evk.c @@ -74,37 +74,6 @@ int board_qspi_init(void) } #endif -#ifdef CONFIG_DM_USB -static iomux_cfg_t const usb_otg1_pads[] = { - MX7ULP_PAD_PTC8__PTC8 | MUX_PAD_CTRL(OTG_ID_GPIO_PAD_CTRL), /* gpio for OTG ID*/ -}; - -static void setup_usb(void) -{ - mx7ulp_iomux_setup_multiple_pads(usb_otg1_pads, - ARRAY_SIZE(usb_otg1_pads)); - - gpio_request(IMX_GPIO_NR(3, 8), "otg_id"); - gpio_direction_input(IMX_GPIO_NR(3, 8)); -} - -int board_ehci_usb_phy_mode(struct udevice *dev) -{ - int ret = 0; - - if (devfdt_get_addr(dev) == USBOTG0_RBASE) { - ret = gpio_get_value(IMX_GPIO_NR(3, 8)); - - if (ret) - return USB_INIT_DEVICE; - else - return USB_INIT_HOST; - } - - return USB_INIT_HOST; -} -#endif - int board_early_init_f(void) { setup_iomux_uart(); @@ -121,10 +90,6 @@ int board_init(void) board_qspi_init(); #endif -#ifdef CONFIG_DM_USB - setup_usb(); -#endif - return 0; } |