mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
kernel: provide kmod-fixed-phy as separate kmod
Almost all targets have the fixed-phy feature built into the kernel. One big exception is x86. This caused a problem with the upcoming LAN78xx usb driver. Hence this patch breaks out the fixed-phy from of_mdio (which didn't include the .ko) and puts into a separate module. Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
This commit is contained in:
parent
80ac24e6a8
commit
2602bc69fe
@ -1101,13 +1101,28 @@ endef
|
|||||||
|
|
||||||
$(eval $(call KernelPackage,forcedeth))
|
$(eval $(call KernelPackage,forcedeth))
|
||||||
|
|
||||||
|
define KernelPackage/fixed-phy
|
||||||
|
SUBMENU:=$(NETWORK_DEVICES_MENU)
|
||||||
|
TITLE:=MDIO Bus/PHY emulation with fixed speed/link PHYs
|
||||||
|
DEPENDS:=+kmod-libphy
|
||||||
|
KCONFIG:=CONFIG_FIXED_PHY
|
||||||
|
FILES:=$(LINUX_DIR)/drivers/net/phy/fixed_phy.ko
|
||||||
|
AUTOLOAD:=$(call AutoProbe,fixed_phy)
|
||||||
|
endef
|
||||||
|
|
||||||
|
define KernelPackage/fixed-phy/description
|
||||||
|
Kernel driver for "fixed" MDIO Bus to cover the boards
|
||||||
|
and devices that use PHYs that are not connected to the real MDIO bus.
|
||||||
|
endef
|
||||||
|
|
||||||
|
$(eval $(call KernelPackage,fixed-phy))
|
||||||
|
|
||||||
define KernelPackage/of-mdio
|
define KernelPackage/of-mdio
|
||||||
SUBMENU:=$(NETWORK_DEVICES_MENU)
|
SUBMENU:=$(NETWORK_DEVICES_MENU)
|
||||||
TITLE:=OpenFirmware MDIO support
|
TITLE:=OpenFirmware MDIO support
|
||||||
DEPENDS:=+kmod-libphy @!TARGET_x86
|
DEPENDS:=+kmod-libphy +kmod-fixed-phy @!TARGET_x86
|
||||||
KCONFIG:=CONFIG_OF_MDIO
|
KCONFIG:=CONFIG_OF_MDIO
|
||||||
FILES:= \
|
FILES:= \
|
||||||
$(LINUX_DIR)/drivers/net/phy/fixed_phy.ko \
|
|
||||||
$(LINUX_DIR)/drivers/net/mdio/of_mdio.ko \
|
$(LINUX_DIR)/drivers/net/mdio/of_mdio.ko \
|
||||||
$(LINUX_DIR)/drivers/net/mdio/fwnode_mdio.ko@ge5.15
|
$(LINUX_DIR)/drivers/net/mdio/fwnode_mdio.ko@ge5.15
|
||||||
AUTOLOAD:=$(call AutoLoad,41,of_mdio)
|
AUTOLOAD:=$(call AutoLoad,41,of_mdio)
|
||||||
|
Loading…
Reference in New Issue
Block a user