From f8ede93e68cdb3845cbd8970f2606fb7659628b1 Mon Sep 17 00:00:00 2001 From: Li Jun Date: Wed, 22 Jul 2015 13:59:50 +0800 Subject: MLK-11272 usb: chipidea: otg: data pulse detection work around for imx7d i.MX7D has a silicon issue on full speed termination after A device ends a session, which causes it can not detect data pulse from B device if A device isn't in low power mode, this patch work around it by override Termsel bit to be 1 for FS mode termination. After A device detects data pulse or turns on vbus, this override will be cleared and disabled. Signed-off-by: Li Jun --- include/linux/usb/chipidea.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/linux/usb/chipidea.h b/include/linux/usb/chipidea.h index e3ea5b5a2cad..3ac366dcf500 100644 --- a/include/linux/usb/chipidea.h +++ b/include/linux/usb/chipidea.h @@ -51,6 +51,8 @@ struct ci_hdrc_platform_data { #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 +#define CI_HDRC_IMX_TERM_SELECT_OVERRIDE_FS 14 +#define CI_HDRC_IMX_TERM_SELECT_OVERRIDE_OFF 15 int (*notify_event)(struct ci_hdrc *ci, unsigned event); struct regulator *reg_vbus; struct usb_otg_caps ci_otg_caps; -- cgit v1.2.3