From patchwork Wed Jul 15 23:28:14 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Rae X-Patchwork-Id: 496013 X-Patchwork-Delegate: trini@ti.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 0F5111402B2 for ; Thu, 16 Jul 2015 09:29:12 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 4DD604B67F; Thu, 16 Jul 2015 01:29:09 +0200 (CEST) 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 reFNEwGeRggc; Thu, 16 Jul 2015 01:29:09 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id D1DAF4B65A; Thu, 16 Jul 2015 01:29:08 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 9CA064B632 for ; Thu, 16 Jul 2015 01:29:06 +0200 (CEST) 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 mD3aVKj1cXVx for ; Thu, 16 Jul 2015 01:29:06 +0200 (CEST) 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 mail-gw2-out.broadcom.com (mail-gw2-out.broadcom.com [216.31.210.63]) by theia.denx.de (Postfix) with ESMTP id 1F0C24B67F for ; Thu, 16 Jul 2015 01:28:59 +0200 (CEST) X-IronPort-AV: E=Sophos;i="5.15,483,1432623600"; d="scan'208";a="69939437" Received: from irvexchcas07.broadcom.com (HELO IRVEXCHCAS07.corp.ad.broadcom.com) ([10.9.208.55]) by mail-gw2-out.broadcom.com with ESMTP; 15 Jul 2015 16:46:44 -0700 Received: from IRVEXCHSMTP1.corp.ad.broadcom.com (10.9.207.51) by IRVEXCHCAS07.corp.ad.broadcom.com (10.9.208.55) with Microsoft SMTP Server (TLS) id 14.3.235.1; Wed, 15 Jul 2015 16:28:58 -0700 Received: from mail-irva-13.broadcom.com (10.10.10.20) by IRVEXCHSMTP1.corp.ad.broadcom.com (10.9.207.51) with Microsoft SMTP Server id 14.3.235.1; Wed, 15 Jul 2015 16:28:58 -0700 Received: from mail.broadcom.com (unknown [10.136.4.105]) by mail-irva-13.broadcom.com (Postfix) with ESMTP id 5129440FE5; Wed, 15 Jul 2015 16:26:51 -0700 (PDT) From: Steve Rae To: Date: Wed, 15 Jul 2015 16:28:14 -0700 Message-ID: <1437002894-27289-3-git-send-email-srae@broadcom.com> X-Mailer: git-send-email 1.8.5 In-Reply-To: <1437002894-27289-1-git-send-email-srae@broadcom.com> References: <1437002894-27289-1-git-send-email-srae@broadcom.com> MIME-Version: 1.0 Cc: Steve Rae , Tom Rini , Jan Kiszka , Tom Warren , Jiandong Zheng Subject: [U-Boot] [PATCH 2/2] arm: bcmcygnus: Enable Ethernet support 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: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" From: Jiandong Zheng Enable BCM SF2 ethernet and PHY for BCM Cygnus SoC Signed-off-by: Jiandong Zheng Signed-off-by: Steve Rae Acked-by: Joe Hershberger --- arch/arm/include/asm/arch-bcmcygnus/configs.h | 11 +++++++++++ board/broadcom/bcm_ep/board.c | 11 +++++++++++ 2 files changed, 22 insertions(+) diff --git a/arch/arm/include/asm/arch-bcmcygnus/configs.h b/arch/arm/include/asm/arch-bcmcygnus/configs.h index 5354637..3c07160 100644 --- a/arch/arm/include/asm/arch-bcmcygnus/configs.h +++ b/arch/arm/include/asm/arch-bcmcygnus/configs.h @@ -22,4 +22,15 @@ #define CONFIG_CONS_INDEX 3 #define CONFIG_SYS_NS16550_COM3 0x18023000 +/* Ethernet */ +#define CONFIG_BCM_SF2_ETH +#define CONFIG_BCM_SF2_ETH_GMAC + +#define CONFIG_PHYLIB +#define CONFIG_PHY_BROADCOM +#define CONFIG_PHY_RESET_DELAY 10000 /* PHY reset delay in us*/ + +#define CONFIG_CMD_PING +#define CONFIG_CMD_MII + #endif /* __ARCH_CONFIGS_H */ diff --git a/board/broadcom/bcm_ep/board.c b/board/broadcom/bcm_ep/board.c index eaad0b3..c28b203 100644 --- a/board/broadcom/bcm_ep/board.c +++ b/board/broadcom/bcm_ep/board.c @@ -7,6 +7,7 @@ #include #include #include +#include #include #include @@ -67,3 +68,13 @@ void smp_waitloop(unsigned previous_address) { } #endif + +#ifdef CONFIG_BCM_SF2_ETH +int board_eth_init(bd_t *bis) +{ + int rc = -1; + printf("Registering BCM sf2 eth\n"); + rc = bcm_sf2_eth_register(bis, 0); + return rc; +} +#endif