Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  * Board initialization code should put one of these into dev->platform_data
0004  * and place the isp116x onto platform_bus.
0005  */
0006 
0007 #ifndef __LINUX_USB_ISP116X_H
0008 #define __LINUX_USB_ISP116X_H
0009 
0010 struct isp116x_platform_data {
0011     /* Enable internal resistors on downstream ports */
0012     unsigned sel15Kres:1;
0013     /* On-chip overcurrent detection */
0014     unsigned oc_enable:1;
0015     /* INT output polarity */
0016     unsigned int_act_high:1;
0017     /* INT edge or level triggered */
0018     unsigned int_edge_triggered:1;
0019     /* Enable wakeup by devices on usb bus (e.g. wakeup
0020        by attachment/detachment or by device activity
0021        such as moving a mouse). When chosen, this option
0022        prevents stopping internal clock, increasing
0023        thereby power consumption in suspended state. */
0024     unsigned remote_wakeup_enable:1;
0025     /* Inter-io delay (ns). The chip is picky about access timings; it
0026        expects at least:
0027        150ns delay between consecutive accesses to DATA_REG,
0028        300ns delay between access to ADDR_REG and DATA_REG
0029        OE, WE MUST NOT be changed during these intervals
0030      */
0031     void (*delay) (struct device *dev, int delay);
0032 };
0033 
0034 #endif /* __LINUX_USB_ISP116X_H */