From patchwork Wed Aug 31 10:57:53 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 112532 X-Patchwork-Delegate: monstr@monstr.eu 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 BA8A1B6F7B for ; Wed, 31 Aug 2011 20:58:59 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5089A280E6; Wed, 31 Aug 2011 12:58:48 +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 VwJjiPJU3Myq; Wed, 31 Aug 2011 12:58:48 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 9C58D28108; Wed, 31 Aug 2011 12:58:35 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 515CF280DF for ; Wed, 31 Aug 2011 12:58:21 +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 vWgbhTxks+Ty for ; Wed, 31 Aug 2011 12:58:20 +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-bw0-f44.google.com (mail-bw0-f44.google.com [209.85.214.44]) by theia.denx.de (Postfix) with ESMTPS id 33EC8280A9 for ; Wed, 31 Aug 2011 12:58:07 +0200 (CEST) Received: by mail-bw0-f44.google.com with SMTP id r4so611525bka.3 for ; Wed, 31 Aug 2011 03:58:06 -0700 (PDT) Received: by 10.204.135.140 with SMTP id n12mr174549bkt.182.1314788286787; Wed, 31 Aug 2011 03:58:06 -0700 (PDT) Received: from localhost ([178.23.216.97]) by mx.google.com with ESMTPS id t14sm328045bkd.1.2011.08.31.03.58.05 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 31 Aug 2011 03:58:06 -0700 (PDT) From: Michal Simek To: u-boot@lists.denx.de Date: Wed, 31 Aug 2011 12:57:53 +0200 Message-Id: <1314788276-26107-6-git-send-email-monstr@monstr.eu> X-Mailer: git-send-email 1.5.5.1 In-Reply-To: <1314788276-26107-5-git-send-email-monstr@monstr.eu> References: <1314788276-26107-1-git-send-email-monstr@monstr.eu> <1314788276-26107-2-git-send-email-monstr@monstr.eu> <1314788276-26107-3-git-send-email-monstr@monstr.eu> <1314788276-26107-4-git-send-email-monstr@monstr.eu> <1314788276-26107-5-git-send-email-monstr@monstr.eu> Subject: [U-Boot] [PATCH 5/8] microblaze: Wire up LL_TEMAC 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 ll_temac driver. Signed-off-by: Michal Simek Acked-by: Stephan Linz --- .../xilinx/microblaze-generic/microblaze-generic.c | 16 ++++++++++++++++ 1 files changed, 16 insertions(+), 0 deletions(-) diff --git a/board/xilinx/microblaze-generic/microblaze-generic.c b/board/xilinx/microblaze-generic/microblaze-generic.c index 9b2952f..87acc6b 100644 --- a/board/xilinx/microblaze-generic/microblaze-generic.c +++ b/board/xilinx/microblaze-generic/microblaze-generic.c @@ -84,5 +84,21 @@ int board_eth_init(bd_t *bis) ret |= xilinx_emaclite_initialize(bis, XILINX_EMACLITE_BASEADDR, txpp, rxpp); #endif + +#ifdef CONFIG_XILINX_LL_TEMAC +# ifdef XILINX_LLTEMAC_FIFO_BASEADDR + ret |= xilinx_ll_temac_initialize(bis, XILINX_LLTEMAC_BASEADDR, + 0, XILINX_LLTEMAC_FIFO_BASEADDR); +# elif XILINX_LLTEMAC_SDMA_CTRL_BASEADDR +# if XILINX_LLTEMAC_SDMA_USE_DCR == 1 + ret |= xilinx_ll_temac_initialize(bis, XILINX_LLTEMAC_BASEADDR, + 3, XILINX_LLTEMAC_SDMA_CTRL_BASEADDR); +# else + ret |= xilinx_ll_temac_initialize(bis, XILINX_LLTEMAC_BASEADDR, + 1, XILINX_LLTEMAC_SDMA_CTRL_BASEADDR); +# endif +# endif +#endif + return ret; }