Lines Matching full:ulpi

10  * linux/drivers/usb/otg/ulpi.c
11 * Generic ULPI USB transceiver support
24 #include <usb/ulpi.h>
29 static struct ulpi_regs *ulpi = (struct ulpi_regs *)0; variable
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()
44 printf("ULPI integrity check failed\n"); in ulpi_integrity_check()
55 u8 *reg = &ulpi->product_id_high; in ulpi_init()
58 /* Assemble ID from four ULPI ID registers (8 bits each). */ in ulpi_init()
68 debug("ULPI transceiver ID 0x%04x:0x%04x\n", id >> 16, id & 0xffff); in ulpi_init()
86 printf("ULPI: %s: wrong transceiver speed specified: %u, " in ulpi_select_transceiver()
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()
103 u8 *reg = on ? &ulpi->otg_ctrl_set : &ulpi->otg_ctrl_clear; in ulpi_set_vbus()
117 reg = external ? &ulpi->otg_ctrl_set : &ulpi->otg_ctrl_clear; in ulpi_set_vbus_indicator()
125 val = ulpi_read(ulpi_vp, &ulpi->iface_ctrl); in ulpi_set_vbus_indicator()
131 val = ulpi_write(ulpi_vp, &ulpi->iface_ctrl, val); in ulpi_set_vbus_indicator()
141 u8 *reg = enable ? &ulpi->otg_ctrl_set : &ulpi->otg_ctrl_clear; in ulpi_set_pd()
159 printf("ULPI: %s: wrong OpMode specified: %u, " in ulpi_opmode_sel()
163 val = ulpi_read(ulpi_vp, &ulpi->function_ctrl); in ulpi_opmode_sel()
170 return ulpi_write(ulpi_vp, &ulpi->function_ctrl, val); in ulpi_opmode_sel()
180 printf("ULPI: %s: unrecognized Serial Mode specified: %u\n", in ulpi_serial_mode_enable()
185 return ulpi_write(ulpi_vp, &ulpi->iface_ctrl_set, smode); in ulpi_serial_mode_enable()
192 err = ulpi_write(ulpi_vp, &ulpi->function_ctrl_clear, in ulpi_suspend()
195 printf("ULPI: %s: failed writing the suspend bit\n", __func__); in ulpi_suspend()
201 * Wait for ULPI PHY reset to complete.
218 val = ulpi_read(ulpi_vp, &ulpi->function_ctrl); in __ulpi_reset_wait()
225 printf("ULPI: %s: reset timed out\n", __func__); in __ulpi_reset_wait()
237 &ulpi->function_ctrl_set, ULPI_FC_RESET); in ulpi_reset()
239 printf("ULPI: %s: failed writing reset bit\n", __func__); in ulpi_reset()