blob: 1d1b6ef871f6ace33196cc893a1c8b45d1375b40 [file] [log] [blame]
Dongjin Kim6a099c62012-12-08 05:18:44 +09001#ifndef __USB3503_H__
2#define __USB3503_H__
3
4#define USB3503_I2C_NAME "usb3503"
5
Dongjin Kime8e44a42013-05-22 05:20:08 +09006#define USB3503_OFF_PORT1 (1 << 1)
7#define USB3503_OFF_PORT2 (1 << 2)
8#define USB3503_OFF_PORT3 (1 << 3)
9
Dongjin Kim6a099c62012-12-08 05:18:44 +090010enum usb3503_mode {
11 USB3503_MODE_UNKNOWN,
12 USB3503_MODE_HUB,
13 USB3503_MODE_STANDBY,
14};
15
16struct usb3503_platform_data {
17 enum usb3503_mode initial_mode;
Dongjin Kime8e44a42013-05-22 05:20:08 +090018 u8 port_off_mask;
Dongjin Kim6a099c62012-12-08 05:18:44 +090019 int gpio_intn;
20 int gpio_connect;
21 int gpio_reset;
22};
23
24#endif