Adding a New PHY
For example, if you wish to add a new PHY named YT8531 from Motorcomm, you need to locate the file drivers/net/phy/motorcomm.c, and perform the following operations.
- Create a new structure following the existing data structure. The data structure in the file is defined by U-Boot, to add your new PHY support, you must follow the data structure and format exactly.
- Reuse the existing start-up and shut-down functions. Modify them only when your device has special requirements.
- Ensure you have registered the new PHY by adding a function call of
phy_register() as a new entry, for example:
phy_register(&YT8531_driver)
Note:
If you are adding a PHY from other vendors, ensure you find the right document written in C for PHY registration, for example, for Broadcom PHY, use the file broadcom.c.