Patchwork [U-Boot] phylib: add atheros ar803x phy

login
register
mail settings
Submitter Heiko Schocher
Date June 4, 2013, 8:58 a.m.
Message ID <1370336280-14330-1-git-send-email-hs@denx.de>
Download mbox | patch
Permalink /patch/248505/
State Accepted
Delegated to: Joe Hershberger
Headers show

Comments

Heiko Schocher - June 4, 2013, 8:58 a.m.
add atheros ar803x phy, used on the upcoming siemens boards.

Signed-off-by: Heiko Schocher <hs@denx.de>
Cc: Andy Fleming <afleming@freescale.com>
Cc: Joe Hershberger <joe.hershberger@gmail.com>
---
 drivers/net/phy/atheros.c | 11 +++++++++++
 1 Datei geändert, 11 Zeilen hinzugefügt(+)
Joe Hershberger - July 8, 2013, 4:23 p.m.
On Tue, Jun 4, 2013 at 3:58 AM, Heiko Schocher <hs@denx.de> wrote:
> add atheros ar803x phy, used on the upcoming siemens boards.
>
> Signed-off-by: Heiko Schocher <hs@denx.de>
> Cc: Andy Fleming <afleming@freescale.com>
> Cc: Joe Hershberger <joe.hershberger@gmail.com>

Applied, Thanks.
-Joe

Patch

diff --git a/drivers/net/phy/atheros.c b/drivers/net/phy/atheros.c
index 9b3808b..297e671 100644
--- a/drivers/net/phy/atheros.c
+++ b/drivers/net/phy/atheros.c
@@ -40,9 +40,20 @@  static struct phy_driver AR8021_driver =  {
 	.shutdown = genphy_shutdown,
 };
 
+static struct phy_driver AR8031_driver =  {
+	.name = "AR8031",
+	.uid = 0x4dd074,
+	.mask = 0xfffff0,
+	.features = PHY_GBIT_FEATURES,
+	.config = genphy_config,
+	.startup = genphy_startup,
+	.shutdown = genphy_shutdown,
+};
+
 int phy_atheros_init(void)
 {
 	phy_register(&AR8021_driver);
+	phy_register(&AR8031_driver);
 
 	return 0;
 }