bcm53xx: make USB packages compatible with kernels 4.13+
[openwrt/openwrt.git] / target / linux / bcm53xx / modules.mk
1 #
2 # Copyright (C) 2016 Rafał Miłecki <rafal@milecki.pl>
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 #
6
7 define KernelPackage/phy-bcm-ns-usb2
8 TITLE:=Broadcom Northstar USB 2.0 PHY Driver
9 KCONFIG:=CONFIG_PHY_BCM_NS_USB2
10 DEPENDS:=@TARGET_bcm53xx
11 SUBMENU:=$(USB_MENU)
12 FILES:=\
13 $(LINUX_DIR)/drivers/phy/phy-bcm-ns-usb2.ko@lt4.13 \
14 $(LINUX_DIR)/drivers/phy/broadcom/phy-bcm-ns-usb2.ko@gt4.13
15 AUTOLOAD:=$(call AutoLoad,45,phy-bcm-ns-usb2,1)
16 endef
17
18 define KernelPackage/phy-bcm-ns-usb2/description
19 Support for Broadcom USB 2.0 PHY connected to the USB controller on Northstar
20 family.
21 endef
22
23 $(eval $(call KernelPackage,phy-bcm-ns-usb2))
24
25 define KernelPackage/phy-bcm-ns-usb3
26 TITLE:=Broadcom Northstar USB 3.0 PHY Driver
27 KCONFIG:=CONFIG_PHY_BCM_NS_USB3
28 DEPENDS:=@TARGET_bcm53xx
29 SUBMENU:=$(USB_MENU)
30 FILES:=\
31 $(LINUX_DIR)/drivers/phy/phy-bcm-ns-usb3.ko@lt4.13 \
32 $(LINUX_DIR)/drivers/phy/broadcom/phy-bcm-ns-usb3.ko@ge4.13
33 AUTOLOAD:=$(call AutoLoad,45,phy-bcm-ns-usb3,1)
34 endef
35
36 define KernelPackage/phy-bcm-ns-usb3/description
37 Support for Broadcom USB 3.0 PHY connected to the USB controller on Northstar
38 family.
39 endef
40
41 $(eval $(call KernelPackage,phy-bcm-ns-usb3))