From patchwork Fri Mar 8 17:37:27 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rini X-Patchwork-Id: 226178 X-Patchwork-Delegate: marek.vasut@gmail.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 42B8D2C03A2 for ; Sat, 9 Mar 2013 04:39:37 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id EDF354A3E4; Fri, 8 Mar 2013 18:38:50 +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 t+e8KT7KFpja; Fri, 8 Mar 2013 18:38:50 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 568974A40C; Fri, 8 Mar 2013 18:38:12 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 7C6B04A40C for ; Fri, 8 Mar 2013 18:37:53 +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 KVc+7ekBz5th for ; Fri, 8 Mar 2013 18:37:52 +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 mail-gh0-f179.google.com (mail-gh0-f179.google.com [209.85.160.179]) by theia.denx.de (Postfix) with ESMTPS id 2C1A64A3E2 for ; Fri, 8 Mar 2013 18:37:44 +0100 (CET) Received: by mail-gh0-f179.google.com with SMTP id r14so297804ghr.10 for ; Fri, 08 Mar 2013 09:37:43 -0800 (PST) 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=s570rFaKB4SP0yKkfv9U9VfgdGvv0/ej2l0xWZzeVqE=; b=RmDIqqPH7Be8aowj8Aj/2edwCbu2PZ/L3TyVBX8CyTjmvKWK8cvvgfEeYEfCMCvCYE HWRoYFPieQqv2unlkEf2yz5ecPs7puVev5qMnA7Fh4lVRD1CVEZc54un4ZJCHjKWPB8j G/fbHouh2vNUa10z46jTnE4N79GCOhGMVUus0DaiKJvh8l8vlCiayMUiRJKSIiZx2PgG bxB/yxXFGdhlLD4xEyn98OiYVePdFGJeIrVydm/YSxHFVisqQZKyeWOJP0kRQHX1zrIE pRunyMPbIQxIu7Vgv5UTYKn9YcbP7U72y4XjNJwgagsSigbE2xSmJWka75k0q90CRulx Gvxg== X-Received: by 10.236.179.37 with SMTP id g25mr2373675yhm.47.1362764263550; Fri, 08 Mar 2013 09:37:43 -0800 (PST) Received: from localhost.localdomain (cpe-065-184-250-089.ec.res.rr.com. [65.184.250.89]) by mx.google.com with ESMTPS id v43sm8924053yhm.11.2013.03.08.09.37.42 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 08 Mar 2013 09:37:42 -0800 (PST) From: Tom Rini To: u-boot@lists.denx.de Date: Fri, 8 Mar 2013 12:37:27 -0500 Message-Id: <1362764249-15547-9-git-send-email-trini@ti.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1362764249-15547-1-git-send-email-trini@ti.com> References: <1362764249-15547-1-git-send-email-trini@ti.com> Cc: Tom Rini Subject: [U-Boot] [PATCH v5 8/9] am335x_evm: Add CONFIG_CMD_MTDPARTS and relevant defaults 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 --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: - Add CONFIG_CMD_MTDPARTS and relevant information to am335x_evm include/configs/am335x_evm.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h index 59647d1..61b861d 100644 --- a/include/configs/am335x_evm.h +++ b/include/configs/am335x_evm.h @@ -60,6 +60,8 @@ "fdtfile=\0" \ "console=ttyO0,115200n8\0" \ "optargs=\0" \ + "mtdids=" MTDIDS_DEFAULT "\0" \ + "mtdparts=" MTDPARTS_DEFAULT "\0" \ "mmcdev=0\0" \ "mmcroot=/dev/mmcblk0p2 ro\0" \ "mmcrootfstype=ext4 rootwait\0" \ @@ -341,6 +343,13 @@ /* NAND support */ #ifdef CONFIG_NAND #define CONFIG_CMD_NAND +#define CONFIG_CMD_MTDPARTS +#define MTDIDS_DEFAULT "nand0=omap2-nand.0" +#define MTDPARTS_DEFAULT "mtdparts=omap2-nand.0:128k(SPL)," \ + "128k(SPL.backup1)," \ + "128k(SPL.backup2)," \ + "128k(SPL.backup3),1920k(u-boot)," \ + "128k(u-boot-env),5m(kernel),-(rootfs)" #define CONFIG_NAND_OMAP_GPMC #define GPMC_NAND_ECC_LP_x16_LAYOUT 1 #define CONFIG_SYS_NAND_BASE (0x08000000) /* physical address */