Lines Matching +full:ulpi +full:- +full:link
1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Generic ULPI interface.
12 * linux/include/linux/usb/ulpi.h
28 * ulpi view port address and
39 * Initialize the ULPI transciever and check the interface integrity.
40 * @ulpi_vp - structure containing ULPI viewport data
48 * @speed - ULPI_FC_HIGH_SPEED, ULPI_FC_FULL_SPEED (default),
56 * @ext_power - external VBUS supply is used (default is false)
57 * @ext_indicator - external VBUS over-current indicator is used
65 * @external - external VBUS over-current indicator is used
66 * @passthru - disables ANDing of internal VBUS comparator
68 * @complement - inverts the external VBUS input
74 * Enable/disable pull-down resistors on D+ and D- USB lines.
82 * @opmode - ULPI_FC_OPMODE_NORMAL (default), ULPI_FC_OPMODE_NONDRIVING,
91 * @smode - ULPI_IFACE_6_PIN_SERIAL_MODE or ULPI_IFACE_3_PIN_SERIAL_MODE
113 * Reset the transceiver. ULPI interface and registers are not affected.
120 /* ULPI access methods below must be implemented for each ULPI viewport. */
123 * Write to the ULPI PHY register via the viewport.
124 * @reg - the ULPI register (one of the fields in struct ulpi_regs).
125 * Due to ULPI design, only 8 lsb of address are used.
126 * @value - the value - only 8 lower bits are used, others ignored.
133 * Read the ULPI PHY register content via the viewport.
134 * @reg - the ULPI register (one of the fields in struct ulpi_regs).
135 * Due to ULPI design, only 8 lsb of address are used.
143 * The Link must not attempt to access the PHY until the reset has
144 * completed and DIR line is de-asserted.
149 #define ACCESS_EXT_REGS_OFFSET 0x2f /* read-write */
150 /* Vendor-specific */
156 * Addresses 0x00-0x3F map directly to Immediate Register Set.
157 * Addresses 0x40-0x7F are reserved.
158 * Addresses 0x80-0xff are vendor-specific.
162 /* ULPI registers, bits and offsets definitions */
164 /* Vendor ID and Product ID: 0x00 - 0x03 Read-only */
169 /* Function Control: 0x04 - 0x06 Read */
173 /* Interface Control: 0x07 - 0x09 Read */
177 /* OTG Control: 0x0A - 0x0C Read */
181 /* USB Interrupt Enable Rising: 0x0D - 0x0F Read */
185 /* USB Interrupt Enable Falling: 0x10 - 0x12 Read */
189 /* USB Interrupt Status: 0x13 Read-only */
191 /* USB Interrupt Latch: 0x14 Read-only with auto-clear */
193 /* Debug: 0x15 Read-only */
195 /* Scratch Register: 0x16 - 0x18 Read */
201 * Carkit Control: 0x19 - 0x1B Read
208 /* Carkit Interrupt Enable: 0x1D - 0x1F Read */
212 /* Carkit Interrupt Status: 0x20 Read-only */
214 /* Carkit Interrupt Latch: 0x21 Read-only with auto-clear */
216 /* Carkit Pulse Control: 0x22 - 0x24 Read */
230 * Addresses 0x28 - 0x2E are reserved, so we use offsets