From patchwork Thu Oct 13 09:23:23 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 119395 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 79FABB6F80 for ; Thu, 13 Oct 2011 20:24:08 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A2DB128C81; Thu, 13 Oct 2011 11:23:55 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de 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 LkRgyf-8KSUR; Thu, 13 Oct 2011 11:23:55 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 8CA6928C8C; Thu, 13 Oct 2011 11:23:43 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C947028C4B for ; Thu, 13 Oct 2011 11:23:40 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de 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 bbkgwnTc9Q7D for ; Thu, 13 Oct 2011 11:23:40 +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-ey0-f172.google.com (mail-ey0-f172.google.com [209.85.215.172]) by theia.denx.de (Postfix) with ESMTPS id 7056A28C5D for ; Thu, 13 Oct 2011 11:23:31 +0200 (CEST) Received: by mail-ey0-f172.google.com with SMTP id 24so1806151eyg.3 for ; Thu, 13 Oct 2011 02:23:31 -0700 (PDT) Received: by 10.223.7.18 with SMTP id b18mr4849273fab.31.1318497811035; Thu, 13 Oct 2011 02:23:31 -0700 (PDT) Received: from localhost ([178.23.216.97]) by mx.google.com with ESMTPS id o22sm8861701fab.11.2011.10.13.02.23.30 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 13 Oct 2011 02:23:30 -0700 (PDT) From: Michal Simek To: u-boot@lists.denx.de Date: Thu, 13 Oct 2011 11:23:23 +0200 Message-Id: <1318497803-21874-4-git-send-email-monstr@monstr.eu> X-Mailer: git-send-email 1.5.5.1 In-Reply-To: <1318497803-21874-3-git-send-email-monstr@monstr.eu> References: <1318497803-21874-1-git-send-email-monstr@monstr.eu> <1318497803-21874-2-git-send-email-monstr@monstr.eu> <1318497803-21874-3-git-send-email-monstr@monstr.eu> Subject: [U-Boot] [PATCH 3/3] microblaze: Wire up axi_ethernet driver initialization X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.9 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Initialize axi_ethernet driver. Signed-off-by: Michal Simek --- .../xilinx/microblaze-generic/microblaze-generic.c | 6 ++++++ include/configs/microblaze-generic.h | 4 ++++ 2 files changed, 10 insertions(+), 0 deletions(-) diff --git a/board/xilinx/microblaze-generic/microblaze-generic.c b/board/xilinx/microblaze-generic/microblaze-generic.c index 9b2952f..c4c13a6 100644 --- a/board/xilinx/microblaze-generic/microblaze-generic.c +++ b/board/xilinx/microblaze-generic/microblaze-generic.c @@ -72,6 +72,12 @@ int fsl_init2 (void) { int board_eth_init(bd_t *bis) { int ret = 0; + +#ifdef CONFIG_XILINX_AXIEMAC + ret |= xilinx_axiemac_initialize(bis, XILINX_AXIEMAC_BASEADDR, + XILINX_AXIDMA_BASEADDR); +#endif + #ifdef CONFIG_XILINX_EMACLITE u32 txpp = 0; u32 rxpp = 0; diff --git a/include/configs/microblaze-generic.h b/include/configs/microblaze-generic.h index 09ff7c4..6b3fd76 100644 --- a/include/configs/microblaze-generic.h +++ b/include/configs/microblaze-generic.h @@ -68,6 +68,10 @@ # define CONFIG_XILINX_LL_TEMAC 1 # define CONFIG_SYS_ENET #endif +#if defined(XILINX_AXIEMAC_BASEADDR) +# define CONFIG_XILINX_AXIEMAC 1 +# define CONFIG_SYS_ENET +#endif #undef ET_DEBUG