diff options
author | Andy Fleming <afleming@freescale.com> | 2011-10-31 09:46:13 -0500 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-12-05 22:17:06 +0100 |
commit | 1cdabc4bc78f98155a51890a3077473d7a4d3426 (patch) | |
tree | 2f44cc7a60a862058920dda075611245aee7a5c8 /common | |
parent | fa12a08ec0b197766b6b3a2994cdc1fba5f31599 (diff) | |
download | u-boot-imx-1cdabc4bc78f98155a51890a3077473d7a4d3426.zip u-boot-imx-1cdabc4bc78f98155a51890a3077473d7a4d3426.tar.gz u-boot-imx-1cdabc4bc78f98155a51890a3077473d7a4d3426.tar.bz2 |
miiphy: Note that miiphy_* API is deprecated
We want to move everything to phylib, and we definitely don't want
new drivers using the miiphy infrastructure.
Signed-off-by: Andy Fleming <afleming@freescale.com>
Diffstat (limited to 'common')
-rw-r--r-- | common/miiphyutil.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/common/miiphyutil.c b/common/miiphyutil.c index 35ad357..2cc23b4 100644 --- a/common/miiphyutil.c +++ b/common/miiphyutil.c @@ -102,6 +102,7 @@ static int legacy_miiphy_write(struct mii_dev *bus, int addr, int devad, /***************************************************************************** * * Register read and write MII access routines for the device <name>. + * This API is now deprecated. Please use mdio_alloc and mdio_register, instead. */ void miiphy_register(const char *name, int (*read)(const char *devname, unsigned char addr, @@ -281,6 +282,8 @@ static struct mii_dev *miiphy_get_active_dev(const char *devname) * Read to variable <value> from the PHY attached to device <devname>, * use PHY address <addr> and register <reg>. * + * This API is deprecated. Use phy_read on a phy_device found via phy_connect + * * Returns: * 0 on success */ @@ -307,6 +310,8 @@ int miiphy_read(const char *devname, unsigned char addr, unsigned char reg, * Write <value> to the PHY attached to device <devname>, * use PHY address <addr> and register <reg>. * + * This API is deprecated. Use phy_write on a phy_device found by phy_connect + * * Returns: * 0 on success */ @@ -350,6 +355,8 @@ void miiphy_listdev(void) * Model: 6 bits (unsigned char) * Revision: 4 bits (unsigned char) * + * This API is deprecated. + * * Returns: * 0 on success */ @@ -389,6 +396,9 @@ int miiphy_info(const char *devname, unsigned char addr, unsigned int *oui, /***************************************************************************** * * Reset the PHY. + * + * This API is deprecated. Use PHYLIB. + * * Returns: * 0 on success */ |