[openwrt/openwrt] qualcommbe: package PPE and PCS drivers as kmods

LEDE Commits lede-commits at lists.infradead.org
Wed Jun 25 01:20:45 PDT 2025


robimarko pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/10055976ecde3f00594a748a72bffe52c973ed44

commit 10055976ecde3f00594a748a72bffe52c973ed44
Author: Mantas Pucka <mantas at 8devices.com>
AuthorDate: Tue Jun 3 15:20:39 2025 +0300

    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 at 8devices.com>
    Link: https://github.com/openwrt/openwrt/pull/18435
    Signed-off-by: Robert Marko <robimarko at gmail.com>
---
 package/kernel/linux/modules/netdevices.mk     | 25 +++++++++++++++++++++++++
 target/linux/qualcommbe/Makefile               |  1 +
 target/linux/qualcommbe/ipq95xx/config-default |  1 -
 3 files changed, 26 insertions(+), 1 deletion(-)

diff --git a/package/kernel/linux/modules/netdevices.mk b/package/kernel/linux/modules/netdevices.mk
index 1ec1d449ed..dea82fc8a6 100644
--- a/package/kernel/linux/modules/netdevices.mk
+++ b/package/kernel/linux/modules/netdevices.mk
@@ -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)
diff --git a/target/linux/qualcommbe/Makefile b/target/linux/qualcommbe/Makefile
index c9cda85293..eabb5a2087 100644
--- a/target/linux/qualcommbe/Makefile
+++ b/target/linux/qualcommbe/Makefile
@@ -14,6 +14,7 @@ include $(INCLUDE_DIR)/target.mk
 DEFAULT_PACKAGES += \
 	kmod-usb3 kmod-usb-dwc3 kmod-usb-dwc3-qcom \
 	kmod-leds-gpio kmod-gpio-button-hotplug \
+	kmod-qcom-ppe \
 	wpad-basic-mbedtls uboot-envtools \
 	e2fsprogs kmod-fs-ext4 losetup
 
diff --git a/target/linux/qualcommbe/ipq95xx/config-default b/target/linux/qualcommbe/ipq95xx/config-default
index 60b386406b..298be000af 100644
--- a/target/linux/qualcommbe/ipq95xx/config-default
+++ b/target/linux/qualcommbe/ipq95xx/config-default
@@ -42,7 +42,6 @@ CONFIG_QCOM_APM=y
 # CONFIG_QCOM_CLK_SMD_RPM is not set
 # CONFIG_QCOM_COINCELL is not set
 CONFIG_QCOM_GDSC=y
-CONFIG_QCOM_PPE=y
 # CONFIG_QCOM_RPMPD is not set
 CONFIG_QCOM_SMD_RPM=y
 CONFIG_QCOM_SPMI_ADC5=y




More information about the lede-commits mailing list