summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLi Jun <jun.li@freescale.com>2015-06-04 17:08:00 +0800
committerNitin Garg <nitin.garg@freescale.com>2015-09-17 09:23:29 -0500
commit2a9bf053d7e60a6aa5163f35a673c03cbdd2096a (patch)
tree3f7b6a82697ebded1dee01185d0cf695ea17c04c /include
parent1204e9da50f3a24fc7f80e26b21f6076804f4f02 (diff)
MLK-11005-3 usb: chipidea: add OTG ADP support for chipidea usb driver
ADP(Attach Detection Protocol) is part of USB OTG 2.0 release, which can be used to find device attachment after session ends(vbus is off). This patch adds OTG ADP feature for chipdea usb driver. Signed-off-by: Li Jun <jun.li@freescale.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/usb/chipidea.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/usb/chipidea.h b/include/linux/usb/chipidea.h
index d1f8f550766f..5fcb7b70f374 100644
--- a/include/linux/usb/chipidea.h
+++ b/include/linux/usb/chipidea.h
@@ -44,9 +44,17 @@ struct ci_hdrc_platform_data {
#define CI_HDRC_CONTROLLER_CHARGER_POST_EVENT 4
#define CI_HDRC_IMX_HSIC_ACTIVE_EVENT 5
#define CI_HDRC_IMX_HSIC_SUSPEND_EVENT 6
+#define CI_HDRC_IMX_ADP_PROBE_ENABLE 7
+#define CI_HDRC_IMX_ADP_PROBE_START 8
+#define CI_HDRC_IMX_ADP_SENSE_ENABLE 9
+#define CI_HDRC_IMX_ADP_IS_PROBE_INT 10
+#define CI_HDRC_IMX_ADP_IS_SENSE_INT 11
+#define CI_HDRC_IMX_ADP_SENSE_CONNECTION 12
+#define CI_HDRC_IMX_ADP_ATTACH_EVENT 13
int (*notify_event)(struct ci_hdrc *ci, unsigned event);
struct regulator *reg_vbus;
bool tpl_support;
+ bool adp_support;
u32 ahbburst_config;
u32 burst_length;
u32 phy_clkgate_delay_us;