summaryrefslogtreecommitdiffstats
path: root/commands/Kconfig
diff options
context:
space:
mode:
authorAntony Pavlov <antonynpavlov@gmail.com>2012-10-18 12:54:33 +0400
committerSascha Hauer <s.hauer@pengutronix.de>2012-10-30 10:24:12 +0100
commitde053ed91c2b2ac05527f87acd0cfee0270a23a3 (patch)
tree200a320eb62d0a38b667ffe1092162c71513800c /commands/Kconfig
parent735775a7c425525bda130fa3db6287735e0b1843 (diff)
downloadbarebox-de053ed91c2b2ac05527f87acd0cfee0270a23a3.tar.gz
barebox-de053ed91c2b2ac05527f87acd0cfee0270a23a3.tar.xz
add 'miitool' command to view media-independent interface status
This command is based on the 'mii-diag' and 'mii-tool' Unix utilities, but it lacks routines to manipulate MII state (e.g. reset MII, restart autonegotiation or force MII mode). This version of the 'miitool' command has no GbE support, but we can upgrade it in the future. The GbE support patch for generic 'mii-tool' is here http://ftp.debian.org/debian/pool/main/n/net-tools/net-tools_1.60-24.2.diff.gz EXAMPLE: barebox:/ miitool -vv /dev/phy0 negotiated 100baseTx-FD, link ok registers for MII PHY: 3100 782d 0013 78e2 01e1 45e1 0007 2001 0000 ffff ffff ffff ffff ffff ffff ffff 0084 4780 0000 0000 0422 0000 0000 0000 0000 0000 0080 0000 ffff 0000 0000 3660 product info: Level One LXT971A rev 2 basic mode: autonegotiation enabled basic status: autonegotiation complete, link ok capabilities: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD advertising: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD link partner: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/Kconfig')
-rw-r--r--commands/Kconfig11
1 files changed, 11 insertions, 0 deletions
diff --git a/commands/Kconfig b/commands/Kconfig
index 2d336384a7..0ab958a5b2 100644
--- a/commands/Kconfig
+++ b/commands/Kconfig
@@ -620,6 +620,17 @@ config CMD_USB
help
The usb command allows to rescan for USB devices.
+config CMD_MIITOOL
+ tristate
+ depends on PHYLIB
+ prompt "miitool"
+ help
+ The miitool command allows to view media-independent interface status.
+ The default short output reports the negotiated link speed and
+ link status for selected MII. The '-v' option displays more
+ detailed MII status information, such as MII capabilities,
+ current advertising mode, and link partner capabilities.
+
config CMD_CLK
tristate
depends on COMMON_CLK