[U-Boot] [PATCH v4 0/2] Add MDIO driver model support
make at marvell.com
make at marvell.com
Thu Jul 5 07:34:16 UTC 2018
From: Ken Ma <make at marvell.com>
Changes in v4:
- Minor updates for comments and Maintainer.
- Use wait_for_bit_le32() instead of implementing private busy wait
polling function.
Changes in v3:
- Move mdio uclass implementation to driver/net folder;
- Replace flat-tree functions with livetree functions and update codes
and comments to be consistent with driver-model codes style;
- Put struct mii_dev to uclass platdata to avoid the mdio alloc and
let driver model framework to alloc the memroy automatically,
meanwhile the mii bus link initialization is added.
- Move marvell mdio driver to driver/net/mdio folder;
- Update codes according to mdio uclass implementation updates.
Changes in v2:
- Fix error printing:
- Change some debug to pr_err;
- mii bus has no parent member and it is not a udevice, so dev_err
is changed to pr_err for mii bus error printings.
- Fix error printing:
- Change some debug to pr_err;
- mii bus has no parent member and it is not a udevice, so dev_err
is changed to pr_err for mii bus error printings.
Ken Ma (2):
dm: mdio: add a uclass for MDIO
mdio: add marvell MDIO driver
MAINTAINERS | 2 +
arch/arm/Kconfig | 1 +
doc/device-tree-bindings/net/marvell-mdio.txt | 18 +++
doc/device-tree-bindings/net/mdio-bus.txt | 54 +++++++
drivers/Kconfig | 2 +
drivers/net/Makefile | 1 +
drivers/net/mdio/Kconfig | 28 ++++
drivers/net/mdio/Makefile | 7 +
drivers/net/mdio/mdio-uclass.c | 112 +++++++++++++++
drivers/net/mdio/mvmdio.c | 200 ++++++++++++++++++++++++++
include/dm/uclass-id.h | 1 +
include/net/mdio.h | 62 ++++++++
12 files changed, 488 insertions(+)
create mode 100644 doc/device-tree-bindings/net/marvell-mdio.txt
create mode 100644 doc/device-tree-bindings/net/mdio-bus.txt
create mode 100644 drivers/net/mdio/Kconfig
create mode 100644 drivers/net/mdio/Makefile
create mode 100644 drivers/net/mdio/mdio-uclass.c
create mode 100644 drivers/net/mdio/mvmdio.c
create mode 100644 include/net/mdio.h
--
1.9.1
More information about the U-Boot
mailing list