]> git.dujemihanovic.xyz Git - u-boot.git/commit
phy: adin: add readext and writeext support for mdio cmd
authorNate Drude <nate.d@variscite.com>
Tue, 11 Jul 2023 21:59:15 +0000 (16:59 -0500)
committerTom Rini <trini@konsulko.com>
Thu, 27 Jul 2023 18:32:12 +0000 (14:32 -0400)
commite8b4a8d7f0583268a9ecfb4910558e10aa7a473b
treec6e3a7ca859163001529829eab3697518ebe3678
parent3ca495576070f85143372e3070fa405b513c72a2
phy: adin: add readext and writeext support for mdio cmd

The adin phy has extended registers that can be accessed using
adin_ext_read and adin_ext_write. These registers can be read directly
using the mdio command using readext and writext. For example:

     => mdio rx ethernet@428a0000 0xff23
     Reading from bus ethernet@428a0000
     PHY at address 0:
     65315 - 0xe01

Signed-off-by: Nate Drude <nate.d@variscite.com>
Reviewed-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
drivers/net/phy/adin.c