summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHauke Mehrtens2025-07-20 17:44:42 +0000
committerHauke Mehrtens2025-07-25 23:11:20 +0000
commit5a04f17857b53644bcbab2485d906dc09470a837 (patch)
treeff13d92a6da19e60456a729e178d963e8578b670
parent1ba25858ffa768dae2010b93894d333bd0a8e76a (diff)
downloadopenwrt-5a04f17857b53644bcbab2485d906dc09470a837.tar.gz
kernel: kmod-phy-bcm7xxx: Add driver
The CONFIG_BCMGENET kernel config option will select this driver. Add the driver to the kernel config menu and make kmod-bcmgenet depend on it. Link: https://github.com/openwrt/openwrt/pull/19480 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
-rw-r--r--package/kernel/linux/modules/netdevices.mk17
-rw-r--r--target/linux/armsr/modules.mk2
2 files changed, 18 insertions, 1 deletions
diff --git a/package/kernel/linux/modules/netdevices.mk b/package/kernel/linux/modules/netdevices.mk
index e52d6f1e6a..ebd29ce601 100644
--- a/package/kernel/linux/modules/netdevices.mk
+++ b/package/kernel/linux/modules/netdevices.mk
@@ -374,6 +374,23 @@ endef
$(eval $(call KernelPackage,phy-broadcom))
+define KernelPackage/phy-bcm7xxx
+ SUBMENU:=$(NETWORK_DEVICES_MENU)
+ TITLE:=Broadcom 7xxx SOCs internal PHYs
+ KCONFIG:=CONFIG_BCM7XXX_PHY
+ DEPENDS:=+kmod-libphy +kmod-phylib-broadcom
+ FILES:=$(LINUX_DIR)/drivers/net/phy/bcm7xxx.ko
+ AUTOLOAD:=$(call AutoLoad,18,bcm7xxx,1)
+endef
+
+define KernelPackage/phy-bcm7xxx/description
+ Currently supports the BCM7366, BCM7439, BCM7445, and
+ 40nm and 65nm generation of BCM7xxx Set Top Box SoCs.
+endef
+
+$(eval $(call KernelPackage,phy-bcm7xxx))
+
+
define KernelPackage/phy-bcm84881
SUBMENU:=$(NETWORK_DEVICES_MENU)
TITLE:=Broadcom BCM84881 PHY driver
diff --git a/target/linux/armsr/modules.mk b/target/linux/armsr/modules.mk
index d570d7f74e..15fc2f909e 100644
--- a/target/linux/armsr/modules.mk
+++ b/target/linux/armsr/modules.mk
@@ -15,7 +15,7 @@ $(eval $(call KernelPackage,acpi-mdio))
define KernelPackage/bcmgenet
SUBMENU=$(NETWORK_DEVICES_MENU)
- DEPENDS:=@TARGET_armsr +kmod-mdio-bcm-unimac
+ DEPENDS:=@TARGET_armsr +kmod-mdio-bcm-unimac +kmod-phy-bcm7xxx
TITLE:=Broadcom GENET internal MAC (Raspberry Pi 4)
KCONFIG:=CONFIG_BCMGENET
FILES=$(LINUX_DIR)/drivers/net/ethernet/broadcom/genet/genet.ko