]> git.baikalelectronics.ru Git - uboot.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)
commitaeb50ed995b345115c3a5b976fad35fd40843ae0
treec6e3a7ca859163001529829eab3697518ebe3678
parentcb4d892d04a6b866fdfad8d294af8dc283936356
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