From patchwork Fri Sep 16 20:35:17 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Timothy Pearson X-Patchwork-Id: 671122 X-Patchwork-Delegate: joel@jms.id.au Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3sbRrP2tS0z9s5g for ; Sat, 17 Sep 2016 06:36:05 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=raptorengineering.com header.i=@raptorengineering.com header.b=Uk11/iM5; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 3sbRrP1BDzzDsfL for ; Sat, 17 Sep 2016 06:36:05 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=raptorengineering.com header.i=@raptorengineering.com header.b=Uk11/iM5; dkim-atps=neutral X-Original-To: openbmc@lists.ozlabs.org Delivered-To: openbmc@lists.ozlabs.org Received: from mail.rptsys.com (mail.rptsys.com [192.119.205.245]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3sbRqx6VYdzDsds for ; Sat, 17 Sep 2016 06:35:40 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=raptorengineering.com header.i=@raptorengineering.com header.b=Uk11/iM5; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by mail.rptsys.com (Postfix) with ESMTP id 962FA64114E; Fri, 16 Sep 2016 15:35:36 -0500 (CDT) Received: from mail.rptsys.com ([127.0.0.1]) by localhost (vali.starlink.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id kKjlr7w3hPG1; Fri, 16 Sep 2016 15:35:35 -0500 (CDT) Received: from localhost (localhost [127.0.0.1]) by mail.rptsys.com (Postfix) with ESMTP id D9401641138; Fri, 16 Sep 2016 15:35:34 -0500 (CDT) DKIM-Filter: OpenDKIM Filter v2.9.2 mail.rptsys.com D9401641138 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raptorengineering.com; s=B8E824E6-0BE2-11E6-931D-288C65937AAD; t=1474058134; bh=0OCIyj9wN5x7UvizD3SJzILOs6IEzhIBlcl73h2PIP8=; h=From:To:Subject:Date:Message-Id; b=Uk11/iM5SYDfCa9464ThL7bzZCjyOh5WUhza9g4EzFzQ3tYNSGL4MBE46jJfE1Ho5 Z+VwfcRTalZbvcrzYFsQeeEezhD+cEyQc+XWq/dIA0UQn9rTb5SQ2Cfs0wfLzf2C0J qHiZyqKaVRQ3V6UBcFYoCRRXsqkoFzvGhPACSvKw= X-Virus-Scanned: amavisd-new at rptsys.com Received: from mail.rptsys.com ([127.0.0.1]) by localhost (vali.starlink.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id a86uOxJMJdrL; Fri, 16 Sep 2016 15:35:34 -0500 (CDT) Received: from apollo.starlink.edu (apollo.starlink.edu [192.168.3.54]) by mail.rptsys.com (Postfix) with ESMTP id 9FB3E64103E; Fri, 16 Sep 2016 15:35:34 -0500 (CDT) From: Timothy Pearson To: openbmc@lists.ozlabs.org Subject: [PATCH 01/17] phy/broadcom: Add support for the BCM54210E Date: Fri, 16 Sep 2016 15:35:17 -0500 Message-Id: <1474058133-27363-2-git-send-email-tpearson@raptorengineering.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1474058133-27363-1-git-send-email-tpearson@raptorengineering.com> References: <1474058133-27363-1-git-send-email-tpearson@raptorengineering.com> X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Cyril Bur MIME-Version: 1.0 Errors-To: openbmc-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "openbmc" From: Joel Stanley Signed-off-by: Joel Stanley Signed-off-by: Cyril Bur --- drivers/net/phy/broadcom.c | 13 +++++++++++++ include/linux/brcmphy.h | 2 ++ 2 files changed, 15 insertions(+) diff --git a/drivers/net/phy/broadcom.c b/drivers/net/phy/broadcom.c index 870327e..2d5ba6a 100644 --- a/drivers/net/phy/broadcom.c +++ b/drivers/net/phy/broadcom.c @@ -592,6 +592,18 @@ static struct phy_driver broadcom_drivers[] = { .read_status = genphy_read_status, .ack_interrupt = brcm_fet_ack_interrupt, .config_intr = brcm_fet_config_intr, +}, { + .phy_id = PHY_ID_BCM54210E, + .phy_id_mask = 0xfffffff0, + .name = "Broadcom BCM54210E", + .features = PHY_GBIT_FEATURES | + SUPPORTED_Pause | SUPPORTED_Asym_Pause, + .flags = PHY_HAS_MAGICANEG | PHY_HAS_INTERRUPT, + .config_init = bcm54xx_config_init, + .config_aneg = genphy_config_aneg, + .read_status = genphy_read_status, + .ack_interrupt = bcm_phy_ack_intr, + .config_intr = bcm_phy_config_intr, } }; module_phy_driver(broadcom_drivers); @@ -609,6 +621,7 @@ static struct mdio_device_id __maybe_unused broadcom_tbl[] = { { PHY_ID_BCM57780, 0xfffffff0 }, { PHY_ID_BCMAC131, 0xfffffff0 }, { PHY_ID_BCM5241, 0xfffffff0 }, + { PHY_ID_BCM54210E, 0xfffffff0}, { } }; diff --git a/include/linux/brcmphy.h b/include/linux/brcmphy.h index e3354b7..f26fc51 100644 --- a/include/linux/brcmphy.h +++ b/include/linux/brcmphy.h @@ -35,6 +35,8 @@ #define PHY_ID_BCM_CYGNUS 0xae025200 +#define PHY_ID_BCM54210E 0x600d84a0 + #define PHY_BCM_OUI_MASK 0xfffffc00 #define PHY_BCM_OUI_1 0x00206000 #define PHY_BCM_OUI_2 0x0143bc00