From patchwork Sat Sep 22 20:50:38 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Eric Benard X-Patchwork-Id: 186161 X-Patchwork-Delegate: sbabic@denx.de 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 C9BA52C0096 for ; Sun, 23 Sep 2012 06:51:12 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 4EFDE2808A; Sat, 22 Sep 2012 22:51:10 +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 KDTccxFrfBma; Sat, 22 Sep 2012 22:51:10 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 3B0EE2808D; Sat, 22 Sep 2012 22:51:02 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 550572808D for ; Sat, 22 Sep 2012 22:50:59 +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 rH0PTBAqobyt for ; Sat, 22 Sep 2012 22:50:58 +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 smtp3-g21.free.fr (smtp3-g21.free.fr [212.27.42.3]) by theia.denx.de (Postfix) with ESMTP id 42B7528085 for ; Sat, 22 Sep 2012 22:50:49 +0200 (CEST) Received: from localhost.localdomain (unknown [82.233.81.124]) by smtp3-g21.free.fr (Postfix) with ESMTP id 5C4D1A6228; Sat, 22 Sep 2012 22:50:45 +0200 (CEST) From: =?UTF-8?q?Eric=20B=C3=A9nard?= To: u-boot@lists.denx.de Date: Sat, 22 Sep 2012 22:50:38 +0200 Message-Id: <1348347039-26521-2-git-send-email-eric@eukrea.com> X-Mailer: git-send-email 1.7.7.6 In-Reply-To: <1348347039-26521-1-git-send-email-eric@eukrea.com> References: <1348347039-26521-1-git-send-email-eric@eukrea.com> MIME-Version: 1.0 Subject: [U-Boot] [PATCH 2/3] mx25: fix compilation when CONFIG_FSL_ESDHC is enabled 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: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de else we get : generic.c: In function 'get_clocks': generic.c:210: error: 'MXC_ESDHC_CLK' undeclared (first use in this function) please note this fix is a hack similar to the one used in arch/arm/cpu/arm1136/mx35/generic.c and will pevent the usage of eSDHC2 (as done on i/MX35). Signed-off-by: Eric BĂ©nard --- arch/arm/cpu/arm926ejs/mx25/generic.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/cpu/arm926ejs/mx25/generic.c b/arch/arm/cpu/arm926ejs/mx25/generic.c index cb74b82..6a3a8b3 100644 --- a/arch/arm/cpu/arm926ejs/mx25/generic.c +++ b/arch/arm/cpu/arm926ejs/mx25/generic.c @@ -207,7 +207,7 @@ int cpu_eth_init(bd_t *bis) int get_clocks(void) { #ifdef CONFIG_FSL_ESDHC - gd->sdhc_clk = mxc_get_clock(MXC_ESDHC_CLK); + gd->sdhc_clk = mxc_get_clock(MXC_ESDHC1_CLK); #endif return 0; }