aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorRobert Marko <robimarko@gmail.com>2018-12-16 23:06:17 +0100
committerChristian Lamparter <chunkeey@gmail.com>2018-12-27 14:06:38 +0100
commitc9f6116fd007ee360cbabf12ba830e3f381cee18 (patch)
tree447799052bf934db275f0ed29b2472c486932419 /package
parent30f2b2295266b0ae2e542a14ec330d6b95612921 (diff)
downloadupstream-c9f6116fd007ee360cbabf12ba830e3f381cee18.tar.gz
upstream-c9f6116fd007ee360cbabf12ba830e3f381cee18.tar.bz2
upstream-c9f6116fd007ee360cbabf12ba830e3f381cee18.zip
kernel: modules: usb: Add DWC3 Qualcomm kmod
Since kernel 4.18 support for Qualcomm glue layer was moved from DWC3 OF Simple to a separate DWC3 QCOM module. So lets add it and make it depend on 4.19 kernel and make sure that DWC3 OF Simple is not included if 4.19 is used. Signed-off-by: Robert Marko <robimarko@gmail.com>
Diffstat (limited to 'package')
-rw-r--r--package/kernel/linux/modules/usb.mk22
1 files changed, 21 insertions, 1 deletions
diff --git a/package/kernel/linux/modules/usb.mk b/package/kernel/linux/modules/usb.mk
index fafa9a021e..c5991141b5 100644
--- a/package/kernel/linux/modules/usb.mk
+++ b/package/kernel/linux/modules/usb.mk
@@ -459,7 +459,7 @@ $(eval $(call KernelPackage,usb-dwc3))
define KernelPackage/usb-dwc3-of-simple
TITLE:=DWC3 USB simple OF driver
- DEPENDS:=@TARGET_ipq40xx||@TARGET_ipq806x +kmod-usb-dwc3
+ DEPENDS:=@!LINUX_4_19 @TARGET_ipq40xx||@TARGET_ipq806x +kmod-usb-dwc3
KCONFIG:= CONFIG_USB_DWC3_OF_SIMPLE
FILES:= $(LINUX_DIR)/drivers/usb/dwc3/dwc3-of-simple.ko
AUTOLOAD:=$(call AutoLoad,53,dwc3-of-simple,1)
@@ -474,6 +474,26 @@ endef
$(eval $(call KernelPackage,usb-dwc3-of-simple))
+
+define KernelPackage/usb-dwc3-qcom
+ TITLE:=DWC3 Qualcomm USB driver
+ DEPENDS:=@LINUX_4_19 @TARGET_ipq40xx||@TARGET_ipq806x +kmod-usb-dwc3
+ KCONFIG:= CONFIG_USB_DWC3_QCOM
+ FILES:= $(LINUX_DIR)/drivers/usb/dwc3/dwc3-qcom.ko
+ AUTOLOAD:=$(call AutoLoad,53,dwc3-qcom,1)
+ $(call AddDepends/usb)
+endef
+
+define KernelPackage/usb-dwc3-qcom/description
+ Some Qualcomm SoCs use DesignWare Core IP for USB2/3 functionality.
+ This driver also handles Qscratch wrapper which is needed for
+ peripheral mode support.
+endef
+
+
+$(eval $(call KernelPackage,usb-dwc3-qcom))
+
+
define KernelPackage/usb-acm
TITLE:=Support for modems/isdn controllers
KCONFIG:=CONFIG_USB_ACM