aboutsummaryrefslogtreecommitdiff
path: root/common/Makefile
diff options
context:
space:
mode:
authorAndy Fleming <afleming@freescale.com>2011-03-21 18:03:22 -0500
committerAndy Fleming <afleming@freescale.com>2011-04-20 15:09:35 -0500
commit995daa0b81f35c93a1d14e5c6a932bc304d06718 (patch)
tree49674cc80f68d29037bcdcdd5c7a738276b800b6 /common/Makefile
parent865ff856403fb4bec6fe7f18101364384880068f (diff)
Add mdio command for new PHY infrastructure
The new mdio command doesn't have all of the features of the mii command, but it provides the necessary read/write primitives, and allows users to interact with 10G PHYs, and other PHYs which use Clause 45 of 802.3. This means that the mdio command requires a "Device Address" argument, though for clause 22 PHYs, the argument can be "-". Signed-off-by: Andy Fleming <afleming@freescale.com> Acked-by: Detlev Zundel <dzu@denx.de>
Diffstat (limited to 'common/Makefile')
-rw-r--r--common/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/Makefile b/common/Makefile
index 02dbeedce..5f0c5340a 100644
--- a/common/Makefile
+++ b/common/Makefile
@@ -117,6 +117,9 @@ COBJS-$(CONFIG_MII) += miiphyutil.o
COBJS-$(CONFIG_CMD_MII) += miiphyutil.o
COBJS-$(CONFIG_PHYLIB) += miiphyutil.o
COBJS-$(CONFIG_CMD_MII) += cmd_mii.o
+ifdef CONFIG_PHYLIB
+COBJS-$(CONFIG_CMD_MII) += cmd_mdio.o
+endif
COBJS-$(CONFIG_CMD_MISC) += cmd_misc.o
COBJS-$(CONFIG_CMD_MMC) += cmd_mmc.o
COBJS-$(CONFIG_MP) += cmd_mp.o