summaryrefslogtreecommitdiff
path: root/drivers/net/phy
diff options
context:
space:
mode:
authorAmit Singh Tomar <amittomer25@gmail.com>2020-05-09 19:55:10 +0530
committerTom Rini <trini@konsulko.com>2020-07-07 16:09:22 -0400
commitb0778d9c2c221a13b7b977bd8eb397a16ff36fe0 (patch)
tree825184ce2436c281e2c08263195ffba462c4a5d2 /drivers/net/phy
parent3a217346051ac8876d63becd12b6ddb7a72e82f9 (diff)
downloadu-boot-b0778d9c2c221a13b7b977bd8eb397a16ff36fe0.tar.gz
u-boot-b0778d9c2c221a13b7b977bd8eb397a16ff36fe0.tar.bz2
u-boot-b0778d9c2c221a13b7b977bd8eb397a16ff36fe0.zip
net: phy: realtek: Add support for RTL8201F PHY module.
This patch adds support for Realtek PHY RTL8201F 10/100Mbs (with variants: RTL8201FN and RTL8201FL) PHYceiver. It is present on Actions Semi Cubieboard7 board. Signed-off-by: Amit Singh Tomar <amittomer25@gmail.com>
Diffstat (limited to 'drivers/net/phy')
-rw-r--r--drivers/net/phy/realtek.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/drivers/net/phy/realtek.c b/drivers/net/phy/realtek.c
index b4612c1cfd..feffdccabc 100644
--- a/drivers/net/phy/realtek.c
+++ b/drivers/net/phy/realtek.c
@@ -159,6 +159,14 @@ static int rtl8211x_config(struct phy_device *phydev)
return 0;
}
+/* RealTek RTL8201F */
+static int rtl8201f_config(struct phy_device *phydev)
+{
+ genphy_config_aneg(phydev);
+
+ return 0;
+}
+
static int rtl8211f_config(struct phy_device *phydev)
{
u16 reg;
@@ -398,12 +406,24 @@ static struct phy_driver RTL8211F_driver = {
.writeext = &rtl8211f_phy_extwrite,
};
+/* Support for RTL8201F PHY */
+static struct phy_driver RTL8201F_driver = {
+ .name = "RealTek RTL8201F 10/100Mbps Ethernet",
+ .uid = 0x1cc816,
+ .mask = 0xffffff,
+ .features = PHY_BASIC_FEATURES,
+ .config = &rtl8201f_config,
+ .startup = &rtl8211e_startup,
+ .shutdown = &genphy_shutdown,
+};
+
int phy_realtek_init(void)
{
phy_register(&RTL8211B_driver);
phy_register(&RTL8211E_driver);
phy_register(&RTL8211F_driver);
phy_register(&RTL8211DN_driver);
+ phy_register(&RTL8201F_driver);
return 0;
}