+++ b/idh.code/kernel4.14/drivers/usb/phy/Makefile
+ifeq ($(CONFIG_UBS_HOST_101P),y)
+CFLAGS_phy-sprd-usb3.o.o += -DUBS_HOST_101P_TEST
+#endif
+
+
obj-$(CONFIG_AB8500_USB) += phy-ab8500-usb.o
obj-$(CONFIG_FSL_USB2_OTG) += phy-fsl-usb.o
obj-$(CONFIG_ISP1301_OMAP) += phy-isp1301-omap.o
diff --git a/idh.code/kernel4.14/drivers/usb/phy/phy-sprd-usb3.c b/idh.code/kernel4.14/drivers/usb/phy/phy-sprd-usb3.c
old mode 100644
new mode 100755
index 70412ab6bc..cdf2b904e1
--- a/idh.code/kernel4.14/drivers/usb/phy/phy-sprd-usb3.c
+++ b/idh.code/kernel4.14/drivers/usb/phy/phy-sprd-usb3.c
@@ -478,13 +478,21 @@ static struct attribute *usb_ssphy_attrs[] = {
};
ATTRIBUTE_GROUPS(usb_ssphy);
+#ifdef UBS_HOST_101P_TEST
+extern char usb_charging_en;
+#endif
+
static int sprd_ssphy_vbus_notify(struct notifier_block *nb,
unsigned long event, void *data)
{
struct usb_phy *usb_phy = container_of(nb, struct usb_phy, vbus_nb);
struct sprd_ssphy *phy = container_of(usb_phy, struct sprd_ssphy, phy);
+#ifdef UBS_HOST_101P_TEST
+ if (phy->is_host && (usb_charging_en == 0)) {
+#else
if (phy->is_host) {
+#endif
dev_info(usb_phy->dev, "USB PHY is host mode\n");
return 0;
}
diff --git a/idh.code/kernel4.14/sprd-diffconfig/roc1/arm64/ud710_2h10_zp5_101P_QP_diff_config b/idh.code/kernel4.14/sprd-diffconfig/roc1/arm64/ud710_2h10_zp5_101P_QP_diff_config
old mode 100644
new mode 100755
index 8ecaa276e9..96bb64042f
--- a/idh.code/kernel4.14/sprd-diffconfig/roc1/arm64/ud710_2h10_zp5_101P_QP_diff_config
+++ b/idh.code/kernel4.14/sprd-diffconfig/roc1/arm64/ud710_2h10_zp5_101P_QP_diff_config
@@ -38,3 +38,4 @@ ADD:CONFIG_SPRD_SFP_SUPPORT
ADD:CONFIG_SPRD_IPA_SUPPORT
ADD:CONFIG_SPRD_SFP_TEST
ADD:CONFIG_SPRD_PCIE_AER
+DEL:CONFIG_UBS_HOST_101P
添加宏控代码 驱动代码
最新推荐文章于 2023-05-16 15:00:19 发布