Dongjin Kim | 6a099c6 | 2012-12-08 05:18:44 +0900 | [diff] [blame] | 1 | #ifndef __USB3503_H__ |
| 2 | #define __USB3503_H__ |
| 3 | |
| 4 | #define USB3503_I2C_NAME "usb3503" |
| 5 | |
Dongjin Kim | e8e44a4 | 2013-05-22 05:20:08 +0900 | [diff] [blame] | 6 | #define USB3503_OFF_PORT1 (1 << 1) |
| 7 | #define USB3503_OFF_PORT2 (1 << 2) |
| 8 | #define USB3503_OFF_PORT3 (1 << 3) |
| 9 | |
Dongjin Kim | 6a099c6 | 2012-12-08 05:18:44 +0900 | [diff] [blame] | 10 | enum usb3503_mode { |
| 11 | USB3503_MODE_UNKNOWN, |
| 12 | USB3503_MODE_HUB, |
| 13 | USB3503_MODE_STANDBY, |
| 14 | }; |
| 15 | |
| 16 | struct usb3503_platform_data { |
| 17 | enum usb3503_mode initial_mode; |
Dongjin Kim | e8e44a4 | 2013-05-22 05:20:08 +0900 | [diff] [blame] | 18 | u8 port_off_mask; |
Dongjin Kim | 6a099c6 | 2012-12-08 05:18:44 +0900 | [diff] [blame] | 19 | int gpio_intn; |
| 20 | int gpio_connect; |
| 21 | int gpio_reset; |
| 22 | }; |
| 23 | |
| 24 | #endif |