diff options
author | Mathew McBride <matt@traverse.com.au> | 2023-06-23 05:46:41 +0000 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2023-08-19 15:11:55 +0200 |
commit | 80d1eb4c2a4b57fb24fbb3119c40fa6f7a0f156d (patch) | |
tree | 199319e887dccc10a23a2eb819d9b7e98e243c41 | |
parent | dfb159c04b3011ca1b6059430e7790fb0e2b2bc4 (diff) | |
download | upstream-80d1eb4c2a4b57fb24fbb3119c40fa6f7a0f156d.tar.gz upstream-80d1eb4c2a4b57fb24fbb3119c40fa6f7a0f156d.tar.bz2 upstream-80d1eb4c2a4b57fb24fbb3119c40fa6f7a0f156d.zip |
armsr: armv8: add Broadcom GENET and MDIO modules
These are used by common Broadcom SoC's like
the BCM2711 (RPi4) and iProc network processor.
Tested on the RPi4B using the Raspberry Pi
UEFI+ACPI firmware[1].
Signed-off-by: Mathew McBride <matt@traverse.com.au>
[1] - https://github.com/pftf/RPi4
(cherry picked from commit 27ca83c6270a4cc6922cdae82bb5c01e4e2d1d22)
-rw-r--r-- | target/linux/armsr/modules.mk | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/target/linux/armsr/modules.mk b/target/linux/armsr/modules.mk index 8b026093ee..6e3450bf88 100644 --- a/target/linux/armsr/modules.mk +++ b/target/linux/armsr/modules.mk @@ -13,6 +13,28 @@ endef $(eval $(call KernelPackage,acpi-mdio)) +define KernelPackage/bcmgenet + SUBMENU=$(NETWORK_DEVICES_MENU) + DEPENDS:=@(TARGET_armsr_armv8) +kmod-mdio-bcm-unimac + TITLE:=Broadcom GENET internal MAC (Raspberry Pi 4) + KCONFIG:=CONFIG_BCMGENET + FILES=$(LINUX_DIR)/drivers/net/ethernet/broadcom/genet/genet.ko + AUTOLOAD=$(call AutoLoad,30,genet) +endef + +$(eval $(call KernelPackage,bcmgenet)) + +define KernelPackage/mdio-bcm-unimac + SUBMENU=$(NETWORK_DEVICES_MENU) + DEPENDS:=@(TARGET_armsr_armv8) +kmod-of-mdio + TITLE:=Broadcom UniMAC MDIO bus controller + KCONFIG:=CONFIG_MDIO_BCM_UNIMAC + FILES=$(LINUX_DIR)/drivers/net/mdio/mdio-bcm-unimac.ko + AUTOLOAD=$(call AutoLoad,30,mdio-bcm-unimac) +endef + +$(eval $(call KernelPackage,mdio-bcm-unimac)) + define KernelPackage/fsl-pcs-lynx SUBMENU=$(NETWORK_DEVICES_MENU) DEPENDS:=@(TARGET_armsr_armv8) +kmod-libphy +kmod-of-mdio +kmod-phylink |