diff options
-rw-r--r-- | drivers/usb/chipidea/ci_hdrc_imx.c | 12 | ||||
-rw-r--r-- | include/linux/usb/chipidea.h | 1 |
2 files changed, 9 insertions, 4 deletions
diff --git a/drivers/usb/chipidea/ci_hdrc_imx.c b/drivers/usb/chipidea/ci_hdrc_imx.c index f7f9fd45c9ea..389f0e034259 100644 --- a/drivers/usb/chipidea/ci_hdrc_imx.c +++ b/drivers/usb/chipidea/ci_hdrc_imx.c | |||
@@ -32,19 +32,23 @@ static const struct ci_hdrc_imx_platform_flag imx27_usb_data = { | |||
32 | }; | 32 | }; |
33 | 33 | ||
34 | static const struct ci_hdrc_imx_platform_flag imx28_usb_data = { | 34 | static const struct ci_hdrc_imx_platform_flag imx28_usb_data = { |
35 | .flags = CI_HDRC_IMX28_WRITE_FIX, | 35 | .flags = CI_HDRC_IMX28_WRITE_FIX | |
36 | CI_HDRC_TURN_VBUS_EARLY_ON, | ||
36 | }; | 37 | }; |
37 | 38 | ||
38 | static const struct ci_hdrc_imx_platform_flag imx6q_usb_data = { | 39 | static const struct ci_hdrc_imx_platform_flag imx6q_usb_data = { |
39 | .flags = CI_HDRC_SUPPORTS_RUNTIME_PM, | 40 | .flags = CI_HDRC_SUPPORTS_RUNTIME_PM | |
41 | CI_HDRC_TURN_VBUS_EARLY_ON, | ||
40 | }; | 42 | }; |
41 | 43 | ||
42 | static const struct ci_hdrc_imx_platform_flag imx6sl_usb_data = { | 44 | static const struct ci_hdrc_imx_platform_flag imx6sl_usb_data = { |
43 | .flags = CI_HDRC_SUPPORTS_RUNTIME_PM, | 45 | .flags = CI_HDRC_SUPPORTS_RUNTIME_PM | |
46 | CI_HDRC_TURN_VBUS_EARLY_ON, | ||
44 | }; | 47 | }; |
45 | 48 | ||
46 | static const struct ci_hdrc_imx_platform_flag imx6sx_usb_data = { | 49 | static const struct ci_hdrc_imx_platform_flag imx6sx_usb_data = { |
47 | .flags = CI_HDRC_SUPPORTS_RUNTIME_PM, | 50 | .flags = CI_HDRC_SUPPORTS_RUNTIME_PM | |
51 | CI_HDRC_TURN_VBUS_EARLY_ON, | ||
48 | }; | 52 | }; |
49 | 53 | ||
50 | static const struct of_device_id ci_hdrc_imx_dt_ids[] = { | 54 | static const struct of_device_id ci_hdrc_imx_dt_ids[] = { |
diff --git a/include/linux/usb/chipidea.h b/include/linux/usb/chipidea.h index 39ba00f0d1d5..ab94f78c4dd1 100644 --- a/include/linux/usb/chipidea.h +++ b/include/linux/usb/chipidea.h | |||
@@ -28,6 +28,7 @@ struct ci_hdrc_platform_data { | |||
28 | #define CI_HDRC_DUAL_ROLE_NOT_OTG BIT(4) | 28 | #define CI_HDRC_DUAL_ROLE_NOT_OTG BIT(4) |
29 | #define CI_HDRC_IMX28_WRITE_FIX BIT(5) | 29 | #define CI_HDRC_IMX28_WRITE_FIX BIT(5) |
30 | #define CI_HDRC_FORCE_FULLSPEED BIT(6) | 30 | #define CI_HDRC_FORCE_FULLSPEED BIT(6) |
31 | #define CI_HDRC_TURN_VBUS_EARLY_ON BIT(7) | ||
31 | enum usb_dr_mode dr_mode; | 32 | enum usb_dr_mode dr_mode; |
32 | #define CI_HDRC_CONTROLLER_RESET_EVENT 0 | 33 | #define CI_HDRC_CONTROLLER_RESET_EVENT 0 |
33 | #define CI_HDRC_CONTROLLER_STOPPED_EVENT 1 | 34 | #define CI_HDRC_CONTROLLER_STOPPED_EVENT 1 |