summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLi Jun <b47624@freescale.com>2015-01-09 15:35:07 +0800
committerNitin Garg <nitin.garg@freescale.com>2015-01-15 21:20:02 -0600
commit22ff64bf128ccc08977d959409b65f37761d3b14 (patch)
tree1a5b760182155a89fe51bddc17764f08a8cd82b6 /include
parent522abaeff1a52209fa34ab659f2f429f9c572aee (diff)
MLK-10085-5 usb: chipidea: Add usb charger detect notify
- Change .notify's return value from void to int, update msm notify_event return value accordingly. - Add CI_HDRC_CONTROLLER_VBUS_EVENT and CI_HDRC_CONTROLLER_CHARGER_POST_EVENT to finish the USB charger detection flow. Signed-off-by: Peter Chen <peter.chen@freescale.com> Signed-off-by: Li Jun <jun.li@freescale.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/usb/chipidea.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/usb/chipidea.h b/include/linux/usb/chipidea.h
index 39ba00f0d1d5..122c8c76dce7 100644
--- a/include/linux/usb/chipidea.h
+++ b/include/linux/usb/chipidea.h
@@ -31,7 +31,10 @@ struct ci_hdrc_platform_data {
enum usb_dr_mode dr_mode;
#define CI_HDRC_CONTROLLER_RESET_EVENT 0
#define CI_HDRC_CONTROLLER_STOPPED_EVENT 1
- void (*notify_event) (struct ci_hdrc *ci, unsigned event);
+#define CI_HDRC_CONTROLLER_VBUS_EVENT 2
+#define CI_HDRC_NOTIFY_RET_DEFER_EVENT 3
+#define CI_HDRC_CONTROLLER_CHARGER_POST_EVENT 4
+ int (*notify_event)(struct ci_hdrc *ci, unsigned event);
struct regulator *reg_vbus;
bool tpl_support;
};