1、准备驱动文件
2、添加到相应目录
把motorcomm.c、yt8614-phy.h放到Linux的linux-5.19.1/drivers/net/phy/
把motorcomm_phy.h放到Linux的linux-5.19.1/include/linux/
3、修改Makefile
增加:obj-$(CONFIG_MOTORCOMM_PHY) += motorcomm.o
4、修改Kconfig
增加:
config MOTORCOMM_PHY
tristate "Motorcomm PHYs"
help
Enables support for Motorcomm network PHYs.
Currently supports the YT8511 gigabit PHY.