From patchwork Wed Dec 21 19:28:09 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephan Linz X-Patchwork-Id: 132724 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 A6C82B6FD4 for ; Thu, 22 Dec 2011 06:29:54 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id CE779280C4; Wed, 21 Dec 2011 20:29:51 +0100 (CET) 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 6RPzK0wLqQyP; Wed, 21 Dec 2011 20:29:51 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 77A7E280CD; Wed, 21 Dec 2011 20:29:34 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 1D122280C9 for ; Wed, 21 Dec 2011 20:29:29 +0100 (CET) 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 T6rg03f2u7mR for ; Wed, 21 Dec 2011 20:29:28 +0100 (CET) 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 mo-p00-ob.rzone.de (mo-p00-ob.rzone.de [81.169.146.162]) by theia.denx.de (Postfix) with ESMTPS id 46BB0280C2 for ; Wed, 21 Dec 2011 20:29:26 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; t=1324495765; l=1266; s=domk; d=li-pro.net; h=References:In-Reply-To:Date:Subject:Cc:To:From:X-RZG-CLASS-ID: X-RZG-AUTH; bh=/2UXQw0EKy+By0zCwuGVvA09msg=; b=lXlyobtK+iWrl/G419bgA+sScIKaO75TC9eVcSm3+EbgF+ieRB6UbkfJZqwfSqRKn5A DTKpcnN3VXv744f3XenZHeiGoC4x1XxRAA7SyIFukC+q9zH/8D2CXfMfRFnPomrX/8XBS u85S8PMb2a/o6xdcA5ZlUkTlL3oIYuzMO2Y= X-RZG-AUTH: :IGUKb2CkcrLHmZv+FHarxbxlXmJO7WRQLa+vsyW+4RLunWeioNrxLvcBGpha X-RZG-CLASS-ID: mo00 Received: from localhost.localdomain (i588283AD.versanet.de [88.130.131.173]) by post.strato.de (mrclete mo43) (RZmta 26.15 DYNA|AUTH) with ESMTPA id Q05f1anBLH6PwN ; Wed, 21 Dec 2011 20:29:04 +0100 (MET) From: Stephan Linz To: u-boot@lists.denx.de Date: Wed, 21 Dec 2011 20:28:09 +0100 Message-Id: <1324495689-3970-3-git-send-email-linz@li-pro.net> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <20111220225629.7EF1E19E5E2D@gemini.denx.de> References: <20111220225629.7EF1E19E5E2D@gemini.denx.de> Cc: Stephan Linz Subject: [U-Boot] [PATCH 3/3] microblaze: Wire up LL_TEMAC driver initialization X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 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 From: Michal Simek Initialize ll_temac driver. Signed-off-by: Michal Simek Signed-off-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 c4c13a6..955cc34 100644 --- a/board/xilinx/microblaze-generic/microblaze-generic.c +++ b/board/xilinx/microblaze-generic/microblaze-generic.c @@ -90,5 +90,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; }