qualcommbe: package PPE and PCS drivers as kmods

This will allow more flexibility in using PHY drivers as kmods.

Signed-off-by: Mantas Pucka <mantas@8devices.com>
Link: https://github.com/openwrt/openwrt/pull/18435
Signed-off-by: Robert Marko <robimarko@gmail.com>
This commit is contained in:
Mantas Pucka
2025-06-03 15:20:39 +03:00
committed by Robert Marko
parent 597fc65a04
commit 10055976ec
3 changed files with 26 additions and 1 deletions

View File

@@ -1870,6 +1870,21 @@ endef
$(eval $(call KernelPackage,net-selftests))
define KernelPackage/qcom-ppe
SUBMENU:=$(NETWORK_DEVICES_MENU)
DEPENDS:=@TARGET_qualcommbe +kmod-libphy +kmod-pcs-qcom-ipq9574
TITLE:=Qualcomm PPE ethernet controller
KCONFIG:= CONFIG_QCOM_PPE
FILES:=$(LINUX_DIR)/drivers/net/ethernet/qualcomm/ppe/qcom-ppe.ko
AUTOLOAD:=$(call AutoProbe,qcom-ppe)
endef
define KernelPackage/qcom-ppe/description
This driver supports Qualcomm PPE ethternet controller
devices.
endef
$(eval $(call KernelPackage,qcom-ppe))
define KernelPackage/qlcnic
SUBMENU:=$(NETWORK_DEVICES_MENU)
@@ -1911,6 +1926,16 @@ endef
$(eval $(call KernelPackage,sfp))
define KernelPackage/pcs-qcom-ipq9574
SUBMENU:=$(NETWORK_DEVICES_MENU)
TITLE:=Qualcomm IPQ9574 PCS driver
DEPENDS:=@TARGET_qualcommbe +kmod-phylink
KCONFIG:=CONFIG_PCS_QCOM_IPQ9574
FILES:=$(LINUX_DIR)/drivers/net/pcs/pcs-qcom-ipq9574.ko
AUTOLOAD:=$(call AutoProbe,pcs-qcom-ipq9574)
endef
$(eval $(call KernelPackage,pcs-qcom-ipq9574))
define KernelPackage/pcs-xpcs
SUBMENU:=$(NETWORK_DEVICES_MENU)