mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-09 12:13:00 -04:00
tsec: Add TSEC_FIBER flag
The TSEC_FIBER flag should be set when a PHY is operating with an external fiber interface. Currently it is only used to notify a user that the PHY is operating in fiber mode. A short description was also added to the other TSEC flag defines so that it is clear how they differ from one another. Signed-off-by: Peter Tyser <ptyser@xes-inc.com> Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
This commit is contained in:
parent
8abb8dcc8d
commit
5f6b144221
@ -617,6 +617,7 @@ static uint mii_parse_BCM5482_sr(uint mii_reg, struct tsec_private *priv)
|
|||||||
{
|
{
|
||||||
if (BCM8482_is_serdes(priv)) {
|
if (BCM8482_is_serdes(priv)) {
|
||||||
mii_parse_BCM5482_serdes_sr(priv);
|
mii_parse_BCM5482_serdes_sr(priv);
|
||||||
|
priv->flags |= TSEC_FIBER;
|
||||||
} else {
|
} else {
|
||||||
/* Wait for auto-negotiation to complete or fail */
|
/* Wait for auto-negotiation to complete or fail */
|
||||||
mii_parse_sr(mii_reg, priv);
|
mii_parse_sr(mii_reg, priv);
|
||||||
@ -940,8 +941,9 @@ static void adjust_link(struct eth_device *dev)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("Speed: %d, %s duplex\n", priv->speed,
|
printf("Speed: %d, %s duplex%s\n", priv->speed,
|
||||||
(priv->duplexity) ? "full" : "half");
|
(priv->duplexity) ? "full" : "half",
|
||||||
|
(priv->flags & TSEC_FIBER) ? ", fiber mode" : "");
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
printf("%s: No link.\n", dev->name);
|
printf("%s: No link.\n", dev->name);
|
||||||
|
@ -584,9 +584,9 @@ typedef struct tsec
|
|||||||
|
|
||||||
/* This flag currently only has
|
/* This flag currently only has
|
||||||
* meaning if we're using the eTSEC */
|
* meaning if we're using the eTSEC */
|
||||||
#define TSEC_REDUCED (1 << 1)
|
#define TSEC_REDUCED (1 << 1) /* MAC-PHY interface uses RGMII */
|
||||||
|
#define TSEC_SGMII (1 << 2) /* MAC-PHY interface uses SGMII */
|
||||||
#define TSEC_SGMII (1 << 2)
|
#define TSEC_FIBER (1 << 3) /* PHY uses fiber, eg 1000 Base-X */
|
||||||
|
|
||||||
struct tsec_private {
|
struct tsec_private {
|
||||||
volatile tsec_t *regs;
|
volatile tsec_t *regs;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user