2012-12-08 04:18:44 +08:00
|
|
|
#ifndef __USB3503_H__
|
|
|
|
#define __USB3503_H__
|
|
|
|
|
|
|
|
#define USB3503_I2C_NAME "usb3503"
|
|
|
|
|
2013-05-22 04:20:08 +08:00
|
|
|
#define USB3503_OFF_PORT1 (1 << 1)
|
|
|
|
#define USB3503_OFF_PORT2 (1 << 2)
|
|
|
|
#define USB3503_OFF_PORT3 (1 << 3)
|
|
|
|
|
2012-12-08 04:18:44 +08:00
|
|
|
enum usb3503_mode {
|
|
|
|
USB3503_MODE_UNKNOWN,
|
|
|
|
USB3503_MODE_HUB,
|
|
|
|
USB3503_MODE_STANDBY,
|
|
|
|
};
|
|
|
|
|
|
|
|
struct usb3503_platform_data {
|
|
|
|
enum usb3503_mode initial_mode;
|
2013-05-22 04:20:08 +08:00
|
|
|
u8 port_off_mask;
|
2012-12-08 04:18:44 +08:00
|
|
|
int gpio_intn;
|
|
|
|
int gpio_connect;
|
|
|
|
int gpio_reset;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|