diff mbox

[U-Boot,1/1] net: phy: micrel: add support for KSZ8021RNL & KSZ8031RNL

Message ID 1441830591-21256-1-git-send-email-slemieux.tyco@gmail.com
State Accepted
Delegated to: Joe Hershberger
Headers show

Commit Message

Sylvain Lemieux Sept. 9, 2015, 8:29 p.m. UTC
From: Sylvain Lemieux <slemieux@tycoint.com>

This patch adds support for Micrel KSZ8021RNL & KSZ8031RNL.

Signed-off-by: Sylvain Lemieux <slemieux@tycoint.com>
---
Note:
I am sending the patch using <slemieux.tyco@gmail.com>,
until I can submit patch using my regular e-mail <slemieux@tycoint.com>.

 drivers/net/phy/micrel.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

Comments

Joe Hershberger Sept. 11, 2015, 12:47 a.m. UTC | #1
Hi Sylvain,

On Wed, Sep 9, 2015 at 3:29 PM,  <slemieux.tyco@gmail.com> wrote:
> From: Sylvain Lemieux <slemieux@tycoint.com>
>
> This patch adds support for Micrel KSZ8021RNL & KSZ8031RNL.
>
> Signed-off-by: Sylvain Lemieux <slemieux@tycoint.com>

Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Joe Hershberger Oct. 29, 2015, 7:27 p.m. UTC | #2
On Wed, Sep 9, 2015 at 3:29 PM,  <slemieux.tyco@gmail.com> wrote:
> From: Sylvain Lemieux <slemieux@tycoint.com>
>
> This patch adds support for Micrel KSZ8021RNL & KSZ8031RNL.
>
> Signed-off-by: Sylvain Lemieux <slemieux@tycoint.com>

Applied to u-boot-net/master, thanks!
-Joe
diff mbox

Patch

diff --git a/drivers/net/phy/micrel.c b/drivers/net/phy/micrel.c
index 49f444a..cbec928 100644
--- a/drivers/net/phy/micrel.c
+++ b/drivers/net/phy/micrel.c
@@ -22,6 +22,16 @@  static struct phy_driver KSZ804_driver = {
 	.shutdown = &genphy_shutdown,
 };
 
+static struct phy_driver KSZ8031_driver = {
+	.name = "Micrel KSZ8021/KSZ8031",
+	.uid = 0x221550,
+	.mask = 0xfffff0,
+	.features = PHY_BASIC_FEATURES,
+	.config = &genphy_config,
+	.startup = &genphy_startup,
+	.shutdown = &genphy_shutdown,
+};
+
 static struct phy_driver KSZ8081_driver = {
 	.name = "Micrel KSZ8081",
 	.uid = 0x221560,
@@ -282,6 +292,7 @@  static struct phy_driver ksz9031_driver = {
 int phy_micrel_init(void)
 {
 	phy_register(&KSZ804_driver);
+	phy_register(&KSZ8031_driver);
 	phy_register(&KSZ8081_driver);
 #ifdef CONFIG_PHY_MICREL_KSZ9021
 	phy_register(&ksz9021_driver);