diff options
Diffstat (limited to 'include/linux/usb/chipidea.h')
-rw-r--r-- | include/linux/usb/chipidea.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/include/linux/usb/chipidea.h b/include/linux/usb/chipidea.h index 5dd75fa47dd8..c5fdfcf99828 100644 --- a/include/linux/usb/chipidea.h +++ b/include/linux/usb/chipidea.h | |||
@@ -12,16 +12,18 @@ struct ci_hdrc; | |||
12 | 12 | ||
13 | /** | 13 | /** |
14 | * struct ci_hdrc_cable - structure for external connector cable state tracking | 14 | * struct ci_hdrc_cable - structure for external connector cable state tracking |
15 | * @state: current state of the line | 15 | * @connected: true if cable is connected, false otherwise |
16 | * @changed: set to true when extcon event happen | 16 | * @changed: set to true when extcon event happen |
17 | * @enabled: set to true if we've enabled the vbus or id interrupt | ||
17 | * @edev: device which generate events | 18 | * @edev: device which generate events |
18 | * @ci: driver state of the chipidea device | 19 | * @ci: driver state of the chipidea device |
19 | * @nb: hold event notification callback | 20 | * @nb: hold event notification callback |
20 | * @conn: used for notification registration | 21 | * @conn: used for notification registration |
21 | */ | 22 | */ |
22 | struct ci_hdrc_cable { | 23 | struct ci_hdrc_cable { |
23 | bool state; | 24 | bool connected; |
24 | bool changed; | 25 | bool changed; |
26 | bool enabled; | ||
25 | struct extcon_dev *edev; | 27 | struct extcon_dev *edev; |
26 | struct ci_hdrc *ci; | 28 | struct ci_hdrc *ci; |
27 | struct notifier_block nb; | 29 | struct notifier_block nb; |
@@ -55,10 +57,11 @@ struct ci_hdrc_platform_data { | |||
55 | #define CI_HDRC_OVERRIDE_AHB_BURST BIT(9) | 57 | #define CI_HDRC_OVERRIDE_AHB_BURST BIT(9) |
56 | #define CI_HDRC_OVERRIDE_TX_BURST BIT(10) | 58 | #define CI_HDRC_OVERRIDE_TX_BURST BIT(10) |
57 | #define CI_HDRC_OVERRIDE_RX_BURST BIT(11) | 59 | #define CI_HDRC_OVERRIDE_RX_BURST BIT(11) |
60 | #define CI_HDRC_OVERRIDE_PHY_CONTROL BIT(12) /* Glue layer manages phy */ | ||
58 | enum usb_dr_mode dr_mode; | 61 | enum usb_dr_mode dr_mode; |
59 | #define CI_HDRC_CONTROLLER_RESET_EVENT 0 | 62 | #define CI_HDRC_CONTROLLER_RESET_EVENT 0 |
60 | #define CI_HDRC_CONTROLLER_STOPPED_EVENT 1 | 63 | #define CI_HDRC_CONTROLLER_STOPPED_EVENT 1 |
61 | void (*notify_event) (struct ci_hdrc *ci, unsigned event); | 64 | int (*notify_event) (struct ci_hdrc *ci, unsigned event); |
62 | struct regulator *reg_vbus; | 65 | struct regulator *reg_vbus; |
63 | struct usb_otg_caps ci_otg_caps; | 66 | struct usb_otg_caps ci_otg_caps; |
64 | bool tpl_support; | 67 | bool tpl_support; |