Hi Simon, On Tue, Jul 18, 2017 at 4:02 PM, Simon Glass <s...@chromium.org> wrote: > Hi Mario, > > On 14 July 2017 at 05:55, Mario Six <mario....@gdsys.cc> wrote: >> For debug purposes it is sometimes useful to have the ability to >> interact with the driver functionality of a phy from the command line >> (e.g. to manually issue startup, configuration, or shutdown commands to >> the phy device). >> >> This patch adds such a command, which allows issuing the following >> commands to a phy: >> * getting the driver's name >> * running the phy's configuration procedure (via calling phy_config) >> * running the phy's startup procedure (via calling phy_startup) >> * running the phy's shutdown procedure (via calling phy_shutdown) >> >> Signed-off-by: Mario Six <mario....@gdsys.cc> >> --- >> >> cmd/Kconfig | 6 ++++++ >> cmd/mdio.c | 65 >> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ >> 2 files changed, 71 insertions(+) > > This seems reasonable, but we need to figure out how to use driver model. > > Regards, > Simon
Probably with a MDIO/MII uclass, see my comment on patch 9 ("phy: Support Marvell 88X2242"). Best regards, Mario _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot