Lines Matching +full:timeout +full:- +full:idle +full:- +full:ms
1 /* SPDX-License-Identifier: GPL-2.0+ */
4 #include <linux/usb/otg-fsm.h>
30 /* bit 9-8 are async schedule park mode count */
37 /* bit 23-16 are interrupt threshold control */
99 /* bit 11-10 are line status */
106 /* bit 15-14 are port indicator control */
113 /* bit 19-16 are port test control */
122 /* bit 27-26 are port speed */
134 /* bit 31-30 are port transceiver select */
230 * A-DEVICE timing constants
234 #define TA_WAIT_VRISE (100) /* a_wait_vrise 100 ms, section: 6.6.5.1 */
236 /* Wait for B-Connect */
243 /* A-Idle to B-Disconnect */
244 /* It is necessary for this timer to be more than 750 ms because of a bug in OPT
245 * test 5.4 in which B OPT disconnects after 750 ms instead of 75ms as stated
248 #define TA_AIDL_BDIS (5000) /* a_suspend minimum 200 ms, section: 6.6.5.3 */
250 /* B-Idle to A-Disconnect */
251 #define TA_BIDL_ADIS (12) /* 3 to 200 ms */
253 /* B-device timing constants */
256 /* Data-Line Pulse Time*/
257 #define TB_DATA_PLS (10) /* b_srp_init,continue 5~10ms, section:5.3.3 */
258 #define TB_DATA_PLS_MIN (5) /* minimum 5 ms */
259 #define TB_DATA_PLS_MAX (10) /* maximum 10 ms */
262 #define TB_SRP_INIT (100) /* b_srp_init,maximum 100 ms, section:5.3.8 */
274 /* This time should be less than 10ms. It varies from system to system. */
277 /* A-SE0 to B-Reset */
278 #define TB_ASE0_BRST (20) /* b_wait_acon, mini 3.125 ms,section:6.8.2.4 */
285 #define TB_SE0_SRP (2) /* b_idle,minimum 2 ms, section:5.3.2 */
287 #define SET_OTG_STATE(phy, newstate) ((phy)->otg->state = newstate)
317 u32 otgsc; /* On-The-Go Status and Control */
336 unsigned long expires; /* Number of count increase to timeout */
338 void (*function)(unsigned long); /* Timeout function */
351 timer->function = function; in otg_timer_initializer()
352 timer->expires = expires; in otg_timer_initializer()
353 timer->data = data; in otg_timer_initializer()
374 #define FSL_OTG_NAME "fsl-usb2-otg"