Home
last modified time | relevance | path

Searched refs:ulpi_vp (Results 1 – 8 of 8) sorted by relevance

/external/u-boot/drivers/usb/ulpi/
Dulpi.c31 static int ulpi_integrity_check(struct ulpi_viewport *ulpi_vp) in ulpi_integrity_check() argument
38 err = ulpi_write(ulpi_vp, &ulpi->scratch, tval); in ulpi_integrity_check()
42 val = ulpi_read(ulpi_vp, &ulpi->scratch); in ulpi_integrity_check()
52 int ulpi_init(struct ulpi_viewport *ulpi_vp) in ulpi_init() argument
60 val = ulpi_read(ulpi_vp, reg - i); in ulpi_init()
70 return ulpi_integrity_check(ulpi_vp); in ulpi_init()
73 int ulpi_select_transceiver(struct ulpi_viewport *ulpi_vp, unsigned speed) in ulpi_select_transceiver() argument
90 val = ulpi_read(ulpi_vp, &ulpi->function_ctrl); in ulpi_select_transceiver()
97 return ulpi_write(ulpi_vp, &ulpi->function_ctrl, val); in ulpi_select_transceiver()
100 int ulpi_set_vbus(struct ulpi_viewport *ulpi_vp, int on, int ext_power) in ulpi_set_vbus() argument
[all …]
Dulpi-viewport.c34 static int ulpi_wait(struct ulpi_viewport *ulpi_vp, u32 mask) in ulpi_wait() argument
40 if ((readl(ulpi_vp->viewport_addr) & mask) == 0) in ulpi_wait()
54 static int ulpi_wakeup(struct ulpi_viewport *ulpi_vp) in ulpi_wakeup() argument
58 if (readl(ulpi_vp->viewport_addr) & ULPI_SS) in ulpi_wakeup()
61 writel(ULPI_WU, ulpi_vp->viewport_addr); in ulpi_wakeup()
63 err = ulpi_wait(ulpi_vp, ULPI_WU); in ulpi_wakeup()
75 static int ulpi_request(struct ulpi_viewport *ulpi_vp, u32 value) in ulpi_request() argument
79 err = ulpi_wakeup(ulpi_vp); in ulpi_request()
83 writel(value, ulpi_vp->viewport_addr); in ulpi_request()
85 err = ulpi_wait(ulpi_vp, ULPI_RWRUN); in ulpi_request()
[all …]
Domap-ulpi-viewport.c21 static int ulpi_wait(struct ulpi_viewport *ulpi_vp, u32 mask) in ulpi_wait() argument
26 if (!(readl(ulpi_vp->viewport_addr) & mask)) in ulpi_wait()
38 static int ulpi_request(struct ulpi_viewport *ulpi_vp, u32 value) in ulpi_request() argument
42 writel(value, ulpi_vp->viewport_addr); in ulpi_request()
44 err = ulpi_wait(ulpi_vp, OMAP_ULPI_START); in ulpi_request()
51 int ulpi_write(struct ulpi_viewport *ulpi_vp, u8 *reg, u32 value) in ulpi_write() argument
53 u32 val = OMAP_ULPI_START | (((ulpi_vp->port_num + 1) & 0xf) << 24) | in ulpi_write()
56 return ulpi_request(ulpi_vp, val); in ulpi_write()
59 u32 ulpi_read(struct ulpi_viewport *ulpi_vp, u8 *reg) in ulpi_read() argument
62 u32 val = OMAP_ULPI_START | (((ulpi_vp->port_num + 1) & 0xf) << 24) | in ulpi_read()
[all …]
/external/u-boot/include/usb/
Dulpi.h44 int ulpi_init(struct ulpi_viewport *ulpi_vp);
52 int ulpi_select_transceiver(struct ulpi_viewport *ulpi_vp, unsigned speed);
61 int ulpi_set_vbus(struct ulpi_viewport *ulpi_vp, int on, int ext_power);
70 int ulpi_set_vbus_indicator(struct ulpi_viewport *ulpi_vp, int external,
78 int ulpi_set_pd(struct ulpi_viewport *ulpi_vp, int enable);
87 int ulpi_opmode_sel(struct ulpi_viewport *ulpi_vp, unsigned opmode);
99 int ulpi_serial_mode_enable(struct ulpi_viewport *ulpi_vp, unsigned smode);
110 int ulpi_suspend(struct ulpi_viewport *ulpi_vp);
117 int ulpi_reset(struct ulpi_viewport *ulpi_vp);
130 int ulpi_write(struct ulpi_viewport *ulpi_vp, u8 *reg, u32 value);
[all …]
/external/u-boot/drivers/usb/host/
Dehci-zynq.c41 struct ulpi_viewport ulpi_vp; in ehci_zynq_probe() local
50 ulpi_vp.viewport_addr = (u32)&priv->ehci->ulpi_viewpoint; in ehci_zynq_probe()
51 ulpi_vp.port_num = 0; in ehci_zynq_probe()
53 ret = ulpi_init(&ulpi_vp); in ehci_zynq_probe()
60 ulpi_write(&ulpi_vp, &ulpi->otg_ctrl, in ehci_zynq_probe()
63 ulpi_write(&ulpi_vp, &ulpi->function_ctrl, in ehci_zynq_probe()
66 ulpi_write(&ulpi_vp, &ulpi->iface_ctrl, 0); in ehci_zynq_probe()
69 ulpi_write(&ulpi_vp, &ulpi->otg_ctrl_set, in ehci_zynq_probe()
Dehci-msm.c38 struct ulpi_viewport ulpi_vp; /* ULPI Viewport */ member
49 ulpi_write(&priv->ulpi_vp, (u8 *)ULPI_MISC_A_SET, in setup_usb_phy()
56 ulpi_write(&priv->ulpi_vp, (u8 *)ULPI_MISC_A_CLEAR, in reset_usb_phy()
147 priv->ulpi_vp.port_num = 0; in ehci_usb_ofdata_to_platdata()
156 priv->ulpi_vp.viewport_addr = (phys_addr_t)&priv->ehci->ulpi_viewpoint; in ehci_usb_ofdata_to_platdata()
Dehci-omap.c111 struct ulpi_viewport ulpi_vp; in omap_ehci_soft_phy_reset() local
113 ulpi_vp.viewport_addr = (u32)&ehci->insreg05_utmi_ulpi; in omap_ehci_soft_phy_reset()
114 ulpi_vp.port_num = port; in omap_ehci_soft_phy_reset()
116 ulpi_reset(&ulpi_vp); in omap_ehci_soft_phy_reset()
Dehci-tegra.c589 struct ulpi_viewport ulpi_vp; in init_ulpi_usb_controller() local
643 ulpi_vp.port_num = 0; in init_ulpi_usb_controller()
644 ulpi_vp.viewport_addr = (u32)&usbctlr->ulpi_viewport; in init_ulpi_usb_controller()
646 ret = ulpi_init(&ulpi_vp); in init_ulpi_usb_controller()
652 ulpi_set_vbus(&ulpi_vp, 1, 1); in init_ulpi_usb_controller()
653 ulpi_set_vbus_indicator(&ulpi_vp, 1, 1, 0); in init_ulpi_usb_controller()