summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2009-05-18 15:48:44 +0200
committerMarc Kleine-Budde <mkl@pengutronix.de>2009-05-18 16:20:04 +0200
commit4a770377d1e12682a4ed19692c8d2898afe67a0e (patch)
treeb84c5dedda7d6db26ca4ab67bd77ef090b6f6934 /include
parent26a8987c46ff250ba3ecee9b4112fca07844800c (diff)
downloadbarebox-4a770377d1e12682a4ed19692c8d2898afe67a0e.tar.gz
barebox-4a770377d1e12682a4ed19692c8d2898afe67a0e.tar.xz
[miiphy] add feature to force link present
If a NIC's MII isn't connected to a PHY but directly to a switch port, the switch doesn't sent a link signal to the NIC. (Because strictly speaking, there isn't any ethernet link at all.) This patch adds a force link feature to the phy, to cope with this situation. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/miiphy.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/miiphy.h b/include/miiphy.h
index 1a31fb0f90..550b6d00d8 100644
--- a/include/miiphy.h
+++ b/include/miiphy.h
@@ -10,7 +10,8 @@
#include <driver.h>
-#define MIIPHY_FORCE_10 1
+#define MIIPHY_FORCE_10 (1 << 0)
+#define MIIPHY_FORCE_LINK (1 << 1)
#define MII_BMCR 0x00 /* Basic mode control register */
#define MII_BMSR 0x01 /* Basic mode status register */