From patchwork Fri Jun 23 12:57:38 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Leroy X-Patchwork-Id: 780004 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3wvJR80wd9z9sNZ for ; Fri, 23 Jun 2017 22:58:28 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id DA9E0C21DDC; Fri, 23 Jun 2017 12:57:58 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 532A1C21DCB; Fri, 23 Jun 2017 12:57:50 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 88712C21DC9; Fri, 23 Jun 2017 12:57:44 +0000 (UTC) Received: from pegase1.c-s.fr (pegase1.c-s.fr [93.17.236.30]) by lists.denx.de (Postfix) with ESMTPS id 9E895C21DA1 for ; Fri, 23 Jun 2017 12:57:39 +0000 (UTC) Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 3wvJPv357Rz9ttBW; Fri, 23 Jun 2017 14:57:23 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id 3ewSbSCt9bEN; Fri, 23 Jun 2017 14:57:23 +0200 (CEST) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 3wvJPv2dNWz9ttBK; Fri, 23 Jun 2017 14:57:23 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 333158BCF0; Fri, 23 Jun 2017 14:57:39 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id pfOwvy_2j-qD; Fri, 23 Jun 2017 14:57:39 +0200 (CEST) Received: from PO15451.localdomain (po15451.idsi0.si.c-s.fr [172.25.231.8]) by messagerie.si.c-s.fr (Postfix) with ESMTP id B8FF68BCE8; Fri, 23 Jun 2017 14:57:38 +0200 (CEST) Received: by localhost.localdomain (Postfix, from userid 0) id 99F536A48A; Fri, 23 Jun 2017 14:57:38 +0200 (CEST) Message-Id: In-Reply-To: References: From: Christophe Leroy To: Wolfgang Denk , Heiko Schocher , Tom Rini Date: Fri, 23 Jun 2017 14:57:38 +0200 (CEST) Cc: u-boot@lists.denx.de Subject: [U-Boot] [PATCH 1/4] powerpc, 8xx: add support for LXT973 PHY X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 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" LXT973 PHY is a PHY of the LXT970 family. This patch ensures the fec driver supports it. Signed-off-by: Christophe Leroy Reviewed-by: Tom Rini Reviewed-by: Wolfgang Denk --- arch/powerpc/cpu/mpc8xx/fec.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/powerpc/cpu/mpc8xx/fec.c b/arch/powerpc/cpu/mpc8xx/fec.c index b27310fffb..680d286964 100644 --- a/arch/powerpc/cpu/mpc8xx/fec.c +++ b/arch/powerpc/cpu/mpc8xx/fec.c @@ -738,6 +738,7 @@ static void fec_halt(struct eth_device* dev) */ #define PHY_ID_LXT970 0x78100000 /* LXT970 */ #define PHY_ID_LXT971 0x001378e0 /* LXT971 and 972 */ +#define PHY_ID_LXT973 0x00137A10 /* LXT973 */ #define PHY_ID_82555 0x02a80150 /* Intel 82555 */ #define PHY_ID_QS6612 0x01814400 /* QS6612 */ #define PHY_ID_AMD79C784 0x00225610 /* AMD 79C784 */ @@ -814,6 +815,9 @@ static int mii_discover_phy(struct eth_device *dev) case PHY_ID_LXT971: printf("LXT971\n"); break; + case PHY_ID_LXT973: + printf("LXT973\n"); + break; case PHY_ID_82555: printf("82555\n"); break;