mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-19 05:31:32 +00:00
net: phy: broadcom: Add BCM Cygnus PHY
Add Ethernet PHY for BCM Cygnus SoC Signed-off-by: Jiandong Zheng <jdzheng@broadcom.com> Signed-off-by: Steve Rae <srae@broadcom.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
This commit is contained in:
parent
59370f3fcd
commit
1b564cecc3
1 changed files with 29 additions and 0 deletions
|
@ -137,6 +137,24 @@ static int bcm5482_config(struct phy_device *phydev)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int bcm_cygnus_startup(struct phy_device *phydev)
|
||||||
|
{
|
||||||
|
/* Read the Status (2x to make sure link is right) */
|
||||||
|
genphy_update_link(phydev);
|
||||||
|
genphy_parse_link(phydev);
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
static int bcm_cygnus_config(struct phy_device *phydev)
|
||||||
|
{
|
||||||
|
genphy_config_aneg(phydev);
|
||||||
|
|
||||||
|
phy_reset(phydev);
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Find out if PHY is in copper or serdes mode by looking at Expansion Reg
|
* Find out if PHY is in copper or serdes mode by looking at Expansion Reg
|
||||||
* 0x42 - "Operating Mode Status Register"
|
* 0x42 - "Operating Mode Status Register"
|
||||||
|
@ -264,11 +282,22 @@ static struct phy_driver BCM5482S_driver = {
|
||||||
.shutdown = &genphy_shutdown,
|
.shutdown = &genphy_shutdown,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static struct phy_driver BCM_CYGNUS_driver = {
|
||||||
|
.name = "Broadcom CYGNUS GPHY",
|
||||||
|
.uid = 0xae025200,
|
||||||
|
.mask = 0xfffff0,
|
||||||
|
.features = PHY_GBIT_FEATURES,
|
||||||
|
.config = &bcm_cygnus_config,
|
||||||
|
.startup = &bcm_cygnus_startup,
|
||||||
|
.shutdown = &genphy_shutdown,
|
||||||
|
};
|
||||||
|
|
||||||
int phy_broadcom_init(void)
|
int phy_broadcom_init(void)
|
||||||
{
|
{
|
||||||
phy_register(&BCM5482S_driver);
|
phy_register(&BCM5482S_driver);
|
||||||
phy_register(&BCM5464S_driver);
|
phy_register(&BCM5464S_driver);
|
||||||
phy_register(&BCM5461S_driver);
|
phy_register(&BCM5461S_driver);
|
||||||
|
phy_register(&BCM_CYGNUS_driver);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue