Skip to content

Commit

Permalink
kernel: netdevices: add phy modules
Browse files Browse the repository at this point in the history
Add support for building multiple phy drivers as kernel modules

Signed-off-by: Oskari Lemmela <oskari@lemmela.net>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
  • Loading branch information
olemmela committed Sep 26, 2024
1 parent 6ca5e85 commit d51d447
Showing 1 changed file with 89 additions and 0 deletions.
89 changes: 89 additions & 0 deletions package/kernel/linux/modules/netdevices.mk
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,19 @@ endef
$(eval $(call KernelPackage,phylib-broadcom))


define KernelPackage/phylib-qcom
SUBMENU:=$(NETWORK_DEVICES_MENU)
TITLE:=Qualcomm Ethernet PHY library
KCONFIG:=CONFIG_QCOM_NET_PHYLIB
HIDDEN:=1
DEPENDS:=+kmod-libphy
FILES:=$(LINUX_DIR)/drivers/net/phy/qcom/qcom-phy-lib.ko
AUTOLOAD:=$(call AutoLoad,17,qcom-phy-lib)
endef

$(eval $(call KernelPackage,phylib-qcom))


define KernelPackage/phy-amd
SUBMENU:=$(NETWORK_DEVICES_MENU)
TITLE:=AMD PHY driver
Expand All @@ -242,6 +255,18 @@ endef
$(eval $(call KernelPackage,phy-amd))


define KernelPackage/phy-at803x
SUBMENU:=$(NETWORK_DEVICES_MENU)
TITLE:=Qualcomm Atheros 8337 internal PHY
KCONFIG:=CONFIG_AT803X_PHY
DEPENDS:=+kmod-phylib-qcom
FILES:=$(LINUX_DIR)/drivers/net/phy/qcom/at803x.ko
AUTOLOAD:=$(call AutoLoad,18,at803x,1)
endef

$(eval $(call KernelPackage,phy-at803x))


define KernelPackage/phy-ax88796b
SUBMENU:=$(NETWORK_DEVICES_MENU)
TITLE:=Asix PHY driver
Expand Down Expand Up @@ -292,6 +317,37 @@ endef
$(eval $(call KernelPackage,phy-bcm84881))


define KernelPackage/phy-intel-xway
SUBMENU:=$(NETWORK_DEVICES_MENU)
TITLE:=Intel XWAY PHYs
KCONFIG:=CONFIG_INTEL_XWAY_PHY
DEPENDS:=+kmod-libphy
FILES:=$(LINUX_DIR)/drivers/net/phy/intel-xway.ko
AUTOLOAD:=$(call AutoLoad,18,intel-xway,1)
endef

define KernelPackage/phy-intel-xway/description
Supports the Intel XWAY (former Lantiq) 11G and 22E PHYs.
These PHYs are marked as standalone chips under the names
PEF 7061, PEF 7071 and PEF 7072 or integrated into the Intel
SoCs xRX200, xRX300, xRX330, xRX350 and xRX550.
endef

$(eval $(call KernelPackage,phy-intel-xway))


define KernelPackage/phy-qca83xx
SUBMENU:=$(NETWORK_DEVICES_MENU)
TITLE:=Qualcomm Atheros QCA833x PHY driver
KCONFIG:=CONFIG_QCA83XX_PHY
DEPENDS:=+kmod-phylib-qcom
FILES:=$(LINUX_DIR)/drivers/net/phy/qcom/qca83xx.ko
AUTOLOAD:=$(call AutoLoad,18,qca83xx,1)
endef

$(eval $(call KernelPackage,phy-qca83xx))


define KernelPackage/phy-marvell
SUBMENU:=$(NETWORK_DEVICES_MENU)
TITLE:=Marvell Gigabit Ethernet PHY driver
Expand Down Expand Up @@ -345,6 +401,23 @@ endef

$(eval $(call KernelPackage,phy-marvell-10g))


define KernelPackage/phy-micrel
SUBMENU:=$(NETWORK_DEVICES_MENU)
TITLE:=Micrel PHYs
KCONFIG:=CONFIG_MICREL_PHY
DEPENDS:=+kmod-libphy +kmod-ptp
FILES:=$(LINUX_DIR)/drivers/net/phy/micrel.ko
AUTOLOAD:=$(call AutoLoad,18,micrel,1)
endef

define KernelPackage/phy-micrel/description
Supports the KSZ9021, VSC8201, KS8001 PHYs.
endef

$(eval $(call KernelPackage,phy-micrel))


define KernelPackage/phy-realtek
SUBMENU:=$(NETWORK_DEVICES_MENU)
TITLE:=Realtek Ethernet PHY driver
Expand Down Expand Up @@ -377,6 +450,22 @@ endef
$(eval $(call KernelPackage,phy-smsc))


define KernelPackage/phy-vitesse
SUBMENU:=$(NETWORK_DEVICES_MENU)
TITLE:=Vitesse PHYs
KCONFIG:=CONFIG_VITESSE_PHY
DEPENDS:=+kmod-libphy
FILES:=$(LINUX_DIR)/drivers/net/phy/vitesse.ko
AUTOLOAD:=$(call AutoLoad,18,vitesse,1)
endef

define KernelPackage/phy-vitesse/description
Currently supports the vsc8244
endef

$(eval $(call KernelPackage,phy-vitesse))


define KernelPackage/phy-aquantia
SUBMENU:=$(NETWORK_DEVICES_MENU)
TITLE:=Aquantia Ethernet PHYs
Expand Down

0 comments on commit d51d447

Please sign in to comment.