Lines Matching +full:generic +full:- +full:ehci
1 /*-
50 #include <dev/usb/controller/ehci.h>
98 if (!ofw_bus_is_compatible(self, "generic-ehci")) in generic_ehci_fdt_probe()
101 device_set_desc(self, "Generic EHCI Controller"); in generic_ehci_fdt_probe()
120 TAILQ_INIT(&sc->clk_list); in generic_ehci_fdt_attach()
130 clkp->clk = clk; in generic_ehci_fdt_attach()
131 TAILQ_INSERT_TAIL(&sc->clk_list, clkp, next); in generic_ehci_fdt_attach()
134 /* De-assert reset */ in generic_ehci_fdt_attach()
135 TAILQ_INIT(&sc->rst_list); in generic_ehci_fdt_attach()
139 device_printf(dev, "Could not de-assert reset\n"); in generic_ehci_fdt_attach()
143 rstp->rst = rst; in generic_ehci_fdt_attach()
144 TAILQ_INSERT_TAIL(&sc->rst_list, rstp, next); in generic_ehci_fdt_attach()
148 TAILQ_INIT(&sc->phy_list); in generic_ehci_fdt_attach()
161 phyp->phy = phy; in generic_ehci_fdt_attach()
162 TAILQ_INSERT_TAIL(&sc->phy_list, phyp, next); in generic_ehci_fdt_attach()
192 TAILQ_FOREACH_SAFE(clk, &sc->clk_list, next, clk_tmp) { in generic_ehci_fdt_detach()
193 err = clk_disable(clk->clk); in generic_ehci_fdt_detach()
196 clk_get_name(clk->clk)); in generic_ehci_fdt_detach()
197 err = clk_release(clk->clk); in generic_ehci_fdt_detach()
200 clk_get_name(clk->clk)); in generic_ehci_fdt_detach()
201 TAILQ_REMOVE(&sc->clk_list, clk, next); in generic_ehci_fdt_detach()
206 TAILQ_FOREACH_SAFE(rst, &sc->rst_list, next, rst_tmp) { in generic_ehci_fdt_detach()
207 hwreset_assert(rst->rst); in generic_ehci_fdt_detach()
208 hwreset_release(rst->rst); in generic_ehci_fdt_detach()
209 TAILQ_REMOVE(&sc->rst_list, rst, next); in generic_ehci_fdt_detach()
214 TAILQ_FOREACH_SAFE(phy, &sc->phy_list, next, phy_tmp) { in generic_ehci_fdt_detach()
215 err = phy_disable(phy->phy); in generic_ehci_fdt_detach()
218 phy_release(phy->phy); in generic_ehci_fdt_detach()
219 TAILQ_REMOVE(&sc->phy_list, phy, next); in generic_ehci_fdt_detach()
235 DEFINE_CLASS_1(ehci, ehci_fdt_driver, ehci_fdt_methods,