cmd: mdio/mii: add Kconfig help and allow break dependency
authorRamon Fried <rfried.dev@gmail.com>
Fri, 13 Sep 2019 15:25:03 +0000 (18:25 +0300)
committerJoe Hershberger <joe.hershberger@ni.com>
Mon, 9 Dec 2019 15:47:42 +0000 (09:47 -0600)
* Add Kconfig help describing the purpose of each command.
* Add CONFIG_CMD_MDIO so it could be selected individually, as
  it doesn't depend on the mii command.
* Add Kconfig imply to mii to automatically select the mdio
  command.

Signed-off-by: Ramon Fried <rfried.dev@gmail.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
cmd/Kconfig
cmd/Makefile

index bc8318d7fa47202d06e588719c0402df0810d4b4..1e4cf146c5091744b7eab810e4a746a4c51bd42e 100644 (file)
@@ -1473,8 +1473,22 @@ config CMD_NFS
 
 config CMD_MII
        bool "mii"
-       help
-         Enable MII utility commands.
+       imply CMD_MDIO
+       help
+         If set, allows 802.3(clause 22) MII Management functions interface access
+         The management interface specified in Clause 22 provides
+         a simple, two signal, serial interface to connect a
+         Station Management entity and a managed PHY for providing access
+         to management parameters and services.
+         The interface is referred to as the MII management interface.
+
+config CMD_MDIO
+       bool "mdio"
+       depends on PHYLIB
+       help
+         If set, allows Enable 802.3(clause 45) MDIO interface registers access
+         The MDIO interface is orthogonal to the MII interface and extends
+         it by adding access to more registers through indirect addressing.
 
 config CMD_PING
        bool "ping"
index e87c2f16259fb582fd44aa1493cd12a8c9f6ee2f..3ac710454652019078b3f64557ee6d81d37a7b12 100644 (file)
@@ -89,9 +89,7 @@ obj-$(CONFIG_CMD_MEMORY) += mem.o
 obj-$(CONFIG_CMD_IO) += io.o
 obj-$(CONFIG_CMD_MFSL) += mfsl.o
 obj-$(CONFIG_CMD_MII) += mii.o
-ifdef CONFIG_PHYLIB
-obj-$(CONFIG_CMD_MII) += mdio.o
-endif
+obj-$(CONFIG_CMD_MDIO) += mdio.o
 obj-$(CONFIG_CMD_MISC) += misc.o
 obj-$(CONFIG_CMD_MMC) += mmc.o
 obj-$(CONFIG_MP) += mp.o