Changeset View
Changeset View
Standalone View
Standalone View
sys/arm/samsung/exynos/exynos5_ehci.c
Show First 20 Lines • Show All 234 Lines • ▼ Show 20 Lines | phy_init(struct exynos_ehci_softc *esc) | ||||
bus_space_write_4(esc->host_bst, esc->host_bsh, 0x0, reg); | bus_space_write_4(esc->host_bst, esc->host_bsh, 0x0, reg); | ||||
DELAY(10); | DELAY(10); | ||||
reg = bus_space_read_4(esc->host_bst, esc->host_bsh, 0x0); | reg = bus_space_read_4(esc->host_bst, esc->host_bsh, 0x0); | ||||
reg &= ~(HOST_CTRL_RESET_LINK); | reg &= ~(HOST_CTRL_RESET_LINK); | ||||
bus_space_write_4(esc->host_bst, esc->host_bsh, 0x0, reg); | bus_space_write_4(esc->host_bst, esc->host_bsh, 0x0, reg); | ||||
if ((hub = OF_finddevice("/hsichub")) != 0) { | if ((hub = OF_finddevice("/hsichub")) != -1) { | ||||
reset_hsic_hub(esc, hub); | reset_hsic_hub(esc, hub); | ||||
} | } | ||||
gpio_ctrl(esc, GPIO_OUTPUT, 1); | gpio_ctrl(esc, GPIO_OUTPUT, 1); | ||||
return (0); | return (0); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 147 Lines • Show Last 20 Lines |