Lines Matching +full:imx6q +full:- +full:usbphy
1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
31 * USBPHY driver for Freescale i.MX6 family of SoCs.
72 {"fsl,imx6q-usbphy", true},
73 {"fsl,imx6ul-usbphy", true},
84 if (sc->mem_res != NULL) in usbphy_detach()
85 bus_release_resource(dev, SYS_RES_MEMORY, 0, sc->mem_res); in usbphy_detach()
101 sc->mem_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, in usbphy_attach()
103 if (sc->mem_res == NULL) { in usbphy_attach()
111 * adding an ad-hoc property to the fdt data). This works as long as in usbphy_attach()
115 if (BUS_SPACE_PHYSADDR(sc->mem_res, 0) == PWD_PHY1_REG_PHYSADDR) { in usbphy_attach()
116 sc->phy_num = 0; in usbphy_attach()
119 sc->phy_num = 1; in usbphy_attach()
124 * Based on a note in the u-boot source code, disable charger detection in usbphy_attach()
127 * detection, because of the screwball mix of active-high and active-low in usbphy_attach()
149 bus_write_4(sc->mem_res, CTRL_SET_REG, CTRL_SFTRST); in usbphy_attach()
150 bus_write_4(sc->mem_res, CTRL_CLR_REG, CTRL_SFTRST | CTRL_CLKGATE); in usbphy_attach()
153 bus_write_4(sc->mem_res, CTRL_SET_REG, in usbphy_attach()
157 bus_write_4(sc->mem_res, PWD_REG, 0); in usbphy_attach()
176 if (!ofw_bus_search_compatible(dev, compat_data)->ocd_data) in usbphy_probe()
194 "usbphy",
204 EARLY_DRIVER_MODULE(usbphy, simplebus, usbphy_driver, 0, 0,