From patchwork Tue Mar 24 10:32:24 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Ellero X-Patchwork-Id: 453788 X-Patchwork-Delegate: joe.hershberger@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 184AD1400D5 for ; Tue, 24 Mar 2015 21:32:44 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5A9D34A04C; Tue, 24 Mar 2015 11:32:42 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rc937e-emOoj; Tue, 24 Mar 2015 11:32:42 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id E59004A03C; Tue, 24 Mar 2015 11:32:41 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 822A04A03C for ; Tue, 24 Mar 2015 11:32:39 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id N7Fujz5saH3g for ; Tue, 24 Mar 2015 11:32:39 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from smtpcmd01217.aruba.it (smtpcmd01217.aruba.it [62.149.158.217]) by theia.denx.de (Postfix) with ESMTP id 4A7684A033 for ; Tue, 24 Mar 2015 11:32:35 +0100 (CET) Received: from mint-VirtualBox.asem.intra ([151.22.77.226]) by smtpcmd01.ad.aruba.it with bizsmtp id 7NYY1q00G4sxKhB01NYYtu; Tue, 24 Mar 2015 11:32:35 +0100 From: Luca Ellero To: u-boot@lists.denx.de Date: Tue, 24 Mar 2015 11:32:24 +0100 Message-Id: <1427193144-9913-1-git-send-email-luca.ellero@brickedbrain.com> X-Mailer: git-send-email 1.7.10.4 Cc: marex@denx.de, trini@konsulko.com, pavel@denx.de, phdm@macqel.be Subject: [U-Boot] [PATCH] net: phy: micrel: add support for KSZ8081MNX X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" This patch adds a support for KSZ8081MNX in MII mode. Signed-off-by: Luca Ellero Acked-by: Pavel Machek --- drivers/net/phy/micrel.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/net/phy/micrel.c b/drivers/net/phy/micrel.c index 1815b29..49f444a 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 KSZ8081_driver = { + .name = "Micrel KSZ8081", + .uid = 0x221560, + .mask = 0xfffff0, + .features = PHY_BASIC_FEATURES, + .config = &genphy_config, + .startup = &genphy_startup, + .shutdown = &genphy_shutdown, +}; + /** * KSZ8895 */ @@ -272,6 +282,7 @@ static struct phy_driver ksz9031_driver = { int phy_micrel_init(void) { phy_register(&KSZ804_driver); + phy_register(&KSZ8081_driver); #ifdef CONFIG_PHY_MICREL_KSZ9021 phy_register(&ksz9021_driver); #else