[U-Boot] Which entry in drivers/net/phy/realtek.c matches my device?

Chen-Yu Tsai wens at csie.org
Mon Mar 21 13:32:06 CET 2016


Hi,

On Sun, Mar 20, 2016 at 3:52 PM, Michael Haas <haas at computerlinguist.org> wrote:
> Hello all,
>
> I'd like to add some device-specific hacks to realtek.c. I'm using the
> Olimex A20-OlinuXino-Lime2 which uses the RTL8211CL PHY.
>
> Which of the various phy_driver structs is responsible for that device?
> I presume it's keyed off the .uid, but I'm not sure how to find the ID
> of the specific PHY used on my device.

In Linux you can get the PHY id from /sys/class/mdio_bus/*/*/phy_id

U-boot should have some MII / MDIO related commands you could use.

The datasheet here: https://www.rom.by/files/rtl8211cl_datasheet_1.3.pdf
also gives the PHY id, though I don't know how it maps to what the
code expects.

ChenYu

>
> Thanks!
>
> Michael
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot


More information about the U-Boot mailing list