On Mon, Jun 3, 2019 at 5:47 PM Alex Marginean <alexm.ossl...@gmail.com> wrote: > > Adds UCLASS_MDIO DM class supporting MDIO buses that are probed as > stand-alone devices. Useful in particular for systems that support > DM_ETH and have a stand-alone MDIO hardware block shared by multiple > Ethernet interfaces. > > Signed-off-by: Alex Marginean <alexm.ossl...@gmail.com> > --- > > Changes in v2: > - fixed several comments using wrong API names > - dropped dm_ from names of internal functions that don't use udevice > * > - fixed UCLASS driver name > - added missing mdio_unregister in dm_mdio_pre_remove > - added a comment on why spaces in names aren't ok > - added a comment on how static mdio_read/_write/_reset functions > are used > > cmd/mdio.c | 5 ++ > drivers/net/Kconfig | 13 +++++ > include/dm/uclass-id.h | 1 + > include/miiphy.h | 49 ++++++++++++++++++ > net/Makefile | 1 + > net/mdio-uclass.c | 115 +++++++++++++++++++++++++++++++++++++++++ > 6 files changed, 184 insertions(+) > create mode 100644 net/mdio-uclass.c >
Reviewed-by: Bin Meng <bmeng...@gmail.com> _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot