From patchwork Fri Apr 19 13:41:59 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Otavio Salvador X-Patchwork-Id: 237949 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 BCD3A2C013F for ; Fri, 19 Apr 2013 23:43:41 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 43FFF4A3FF; Fri, 19 Apr 2013 15:43:14 +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 GtvUj4gaH+no; Fri, 19 Apr 2013 15:43:14 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C764C4A3F3; Fri, 19 Apr 2013 15:42:47 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 1D26E4A3D7 for ; Fri, 19 Apr 2013 15:42:43 +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 vr7cyn9ZVjjQ for ; Fri, 19 Apr 2013 15:42:39 +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-ye0-f179.google.com (mail-ye0-f179.google.com [209.85.213.179]) by theia.denx.de (Postfix) with ESMTPS id A67694A3DF for ; Fri, 19 Apr 2013 15:42:36 +0200 (CEST) Received: by mail-ye0-f179.google.com with SMTP id q7so609167yen.10 for ; Fri, 19 Apr 2013 06:42:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references; bh=GzvQzUpTqeRiKhZYMoNDAL5pK46dYKxzogFrz8wg99w=; b=KRaY8wotsecqNsqRCAZTeegVi+Docsj1a7MXARUL4QaylW+p2Ao8LR5eR1r7ZGpErc SBv0jtooP12nBpzcgumG8ZfGprIsrJPT69BaMNkZS9q0UzlPMEs6EB4c+2sjTsKttJ5H RASkD1jS/coDpe3p17nbPglXsOa3rAKKRX/CBoG4PhlMdBb8ZHrbKyDlsC1CG39cadc3 qSz8W7wYLqht3eNM/+L/oldPhOtUyhIQKfOdBjCqi2wqOS+1XLvla/scCbQ9aPyYmG1M ZLk/oTFgoRO2X5KZqkeqbXUmdGLaSZjKJ/pmtl7tE4fNZzKT2TH6NajKJxsgwi+StxGt OU3w== X-Received: by 10.236.98.66 with SMTP id u42mr11495353yhf.157.1366378953481; Fri, 19 Apr 2013 06:42:33 -0700 (PDT) Received: from nano.lab.ossystems.com.br ([187.23.144.59]) by mx.google.com with ESMTPS id x33sm24645868yhn.18.2013.04.19.06.42.31 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 19 Apr 2013 06:42:32 -0700 (PDT) From: Otavio Salvador To: U-Boot Mailing List Date: Fri, 19 Apr 2013 10:41:59 -0300 Message-Id: <1366378923-15615-3-git-send-email-otavio@ossystems.com.br> X-Mailer: git-send-email 1.8.1 In-Reply-To: <1366378923-15615-1-git-send-email-otavio@ossystems.com.br> References: <1366378923-15615-1-git-send-email-otavio@ossystems.com.br> Cc: Fabio Estevam , Otavio Salvador Subject: [U-Boot] [PATCH v3 3/7] wandboard: Use env storage info for mmcdev/mmcpart 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 This makes environment and mmcdev/mmcpart in sync with SYS_MMC_ENV_DEV and SYS_MMC_ENV_PART settings. Signed-off-by: Otavio Salvador --- Changes in v3: - New patch Changes in v2: None include/configs/wandboard.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/configs/wandboard.h b/include/configs/wandboard.h index 120e3f6..bd3e727 100644 --- a/include/configs/wandboard.h +++ b/include/configs/wandboard.h @@ -97,8 +97,8 @@ "fdt_addr=0x11000000\0" \ "boot_fdt=try\0" \ "ip_dyn=yes\0" \ - "mmcdev=0\0" \ - "mmcpart=2\0" \ + "mmcdev=" __stringify(CONFIG_SYS_MMC_ENV_DEV) "\0" \ + "mmcpart=" __stringify(CONFIG_SYS_MMC_ENV_PART) "\0" \ "mmcroot=/dev/mmcblk0p3 rootwait rw\0" \ "mmcargs=setenv bootargs console=${console},${baudrate} " \ "root=${mmcroot}\0" \ @@ -198,6 +198,7 @@ #define CONFIG_ENV_IS_IN_MMC #define CONFIG_ENV_OFFSET (6 * 64 * 1024) #define CONFIG_SYS_MMC_ENV_DEV 0 +#define CONFIG_SYS_MMC_ENV_PART 2 #define CONFIG_OF_LIBFDT #define CONFIG_CMD_BOOTZ