]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
qualcommax: ipq50xx: build-in PTP support
authorRobert Marko <robimarko@gmail.com>
Mon, 3 Aug 2026 09:44:15 +0000 (11:44 +0200)
committerRobert Marko <robimarko@gmail.com>
Mon, 3 Aug 2026 09:53:51 +0000 (11:53 +0200)
When images are built with CONFIG_ALL_KMODS=y which are all buildbot built
images, then the STMMAC_ETH driver will get demoted to a module.

This is due to ALL_KMODS including kmod-ptp which selects the full PTP 1588
support instead of just the auto selected PTP_1588_CLOCK_OPTIONAL.
That causes PTP_1588_CLOCK_OPTIONAL to get deselected, STMMAC driver built
as a module instead of being built-in and then its not shipped in the device
images leading to no working wired networking.

So, lets simply enable full PTP 1588 support as built-in into the kernel so
that STMMAC does not get demoted to a module and restores wired networking.

Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/qualcommax/ipq50xx/config-default

index 58743b608886a4b4058ddb681d76cedcaeb44444..262f1278d88b1e6bafe4dbb33eaa8d1dbceef933 100644 (file)
@@ -8,11 +8,14 @@ CONFIG_MTD_SPI_NAND=y
 CONFIG_NET_DSA_QCA8K=y
 CONFIG_NET_DSA_QCA8K_LEDS_SUPPORT=y
 CONFIG_NET_DSA_TAG_QCA=y
+CONFIG_NET_PTP_CLASSIFY=y
 CONFIG_PCS_XPCS=y
 CONFIG_PHY_QCOM_M31_USB=y
 CONFIG_PHY_QCOM_UNIPHY_PCIE_28LP=y
 CONFIG_PINCTRL_IPQ5018=y
 CONFIG_POLYNOMIAL=y
+CONFIG_PPS=y
+CONFIG_PTP_1588_CLOCK=y
 CONFIG_PWM=y
 CONFIG_PWM_IPQ=y
 CONFIG_QCA83XX_PHY=y