From patchwork Mon Aug 20 16:45:37 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rini X-Patchwork-Id: 178875 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 B9FEF2C00A6 for ; Tue, 21 Aug 2012 02:46:23 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 24B1A284FF; Mon, 20 Aug 2012 18:46:22 +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 juCkw5xJhtF0; Mon, 20 Aug 2012 18:46:21 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B081228504; Mon, 20 Aug 2012 18:46:05 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 3547828498 for ; Mon, 20 Aug 2012 18:46:02 +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 OVnWfmu3b2qB for ; Mon, 20 Aug 2012 18:46:01 +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-pz0-f44.google.com (mail-pz0-f44.google.com [209.85.210.44]) by theia.denx.de (Postfix) with ESMTPS id 57C2A282C9 for ; Mon, 20 Aug 2012 18:45:59 +0200 (CEST) Received: by dakr19 with SMTP id r19so2835194dak.3 for ; Mon, 20 Aug 2012 09:45:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=oz5EeAwtFSTR0XWiWlaIG6rtq7hmpust5bg3rkYF/Ak=; b=srHkAtisYzM91vx07mRRmD1hilxpUQQOMe/TM901+cNVVuehCaWzDQlC6fL6n6d3y4 mVT84Kc6sNIhRPgAZ3cd13lv4goR66Dq6zBXp550gp5vpUMB1Yp+J8NZlq00K3fMC7oB OqE2dz4ulqbFmpsNxwKXDIPJPuT3zbuoP8N1XUD5Eakn2BPpfyR1ETVGkodQ3354c8Id E3TCNYzWwT+lfmLyZPTIgVQtFq72m0fJaer+qJnCEgRe9RYu28m7mfkML//QB8RLGqIJ mKvB1g9wIHrVYPg2sqSXCtAdKPxt/DBFkpJ2ldAMi9TkKa8Jxl+9BTSt1UL8qCC7wjFR nCCw== Received: by 10.68.201.234 with SMTP id kd10mr36313329pbc.141.1345481157665; Mon, 20 Aug 2012 09:45:57 -0700 (PDT) Received: from localhost.localdomain (ip68-230-54-74.ph.ph.cox.net. [68.230.54.74]) by mx.google.com with ESMTPS id qn3sm11423096pbc.6.2012.08.20.09.45.56 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 20 Aug 2012 09:45:57 -0700 (PDT) From: Tom Rini To: u-boot@lists.denx.de Date: Mon, 20 Aug 2012 09:45:37 -0700 Message-Id: <1345481154-7050-3-git-send-email-trini@ti.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1345481154-7050-1-git-send-email-trini@ti.com> References: <1345481154-7050-1-git-send-email-trini@ti.com> Cc: Sudhakar Rajashekhara , Christian Riesch Subject: [U-Boot] [PATCH v2 02/18] spl_mmc: Make FAT checks / calls guarded with CONFIG_SPL_FAT_SUPPORT 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 Signed-off-by: Tom Rini --- arch/arm/cpu/armv7/omap-common/spl_mmc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/cpu/armv7/omap-common/spl_mmc.c b/arch/arm/cpu/armv7/omap-common/spl_mmc.c index 2f921bb..7552f6c 100644 --- a/arch/arm/cpu/armv7/omap-common/spl_mmc.c +++ b/arch/arm/cpu/armv7/omap-common/spl_mmc.c @@ -84,6 +84,7 @@ end: } } +#ifdef CONFIG_SPL_FAT_SUPPORT static void mmc_load_image_fat(struct mmc *mmc) { s32 err; @@ -116,6 +117,7 @@ end: hang(); } } +#endif void spl_mmc_load_image(void) { @@ -140,9 +142,11 @@ void spl_mmc_load_image(void) if (boot_mode == MMCSD_MODE_RAW) { debug("boot mode - RAW\n"); mmc_load_image_raw(mmc); +#ifdef CONFIG_SPL_FAT_SUPPORT } else if (boot_mode == MMCSD_MODE_FAT) { debug("boot mode - FAT\n"); mmc_load_image_fat(mmc); +#endif } else { puts("spl: wrong MMC boot mode\n"); hang();