From patchwork Wed May 8 22:45:53 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rini X-Patchwork-Id: 242656 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 E82842C00F0 for ; Thu, 9 May 2013 08:46:49 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 014424A138; Thu, 9 May 2013 00:46: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 jq0+LAIyceWt; Thu, 9 May 2013 00:46:42 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 1E6DB4A11C; Thu, 9 May 2013 00:46:24 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 867D24A116 for ; Thu, 9 May 2013 00:46:21 +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 pRYJG-6ZjmfB for ; Thu, 9 May 2013 00:46:16 +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-yh0-f41.google.com (mail-yh0-f41.google.com [209.85.213.41]) by theia.denx.de (Postfix) with ESMTPS id 03E914A10D for ; Thu, 9 May 2013 00:46:04 +0200 (CEST) Received: by mail-yh0-f41.google.com with SMTP id i72so599314yha.28 for ; Wed, 08 May 2013 15:46:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:from:to:subject:date:message-id:x-mailer :in-reply-to:references; bh=Ah3CWm5KSdmEJ4PkjsFgXUmWhVxOtLUHtDeLE2Jvrts=; b=DXERw2nWEbA8OSIVGPf5Xukv6SLjvftIlFMJaqtndcZHqBZdjp1/IUsJSJ/UptS9PG Xo80quutPCH4L+2z3onrBFXCFjmY37fzHib6sZ6oFEKTRL/Rn/U9hBPOoOJUYWrsgK+h t+2eoFLhZOi7FalXeYmLpfs2xsmDfj6rXI0N7DnFa6El6PmaZ1B89vbvblDzoH0met8M NTklR1IeYXoxBZq5hwTLTM3W//o7WODOt7ZT/OtKjaBkiJ0cHN5Zs/e54NCPuJtOn2sM aqwIBV7NU8PaNQAqPxw3RzbApda3so357Au4dIuLu7jMMwjx9XN94orm5C6nu0hl9ejD wMUw== X-Received: by 10.236.34.130 with SMTP id s2mr8115953yha.98.1368053163314; Wed, 08 May 2013 15:46:03 -0700 (PDT) Received: from localhost.localdomain (cpe-065-184-250-089.ec.res.rr.com. [65.184.250.89]) by mx.google.com with ESMTPSA id w12sm826162yhj.19.2013.05.08.15.46.01 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 08 May 2013 15:46:02 -0700 (PDT) From: Tom Rini To: u-boot@lists.denx.de Date: Wed, 8 May 2013 18:45:53 -0400 Message-Id: <1368053157-28317-2-git-send-email-trini@ti.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1368053157-28317-1-git-send-email-trini@ti.com> References: <1368053157-28317-1-git-send-email-trini@ti.com> Subject: [U-Boot] [PATCH 2/6] am335x_evm: Add MTDPARTS info for SPI flash 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 --- include/configs/am335x_evm.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h index 945ec09..004a06a 100644 --- a/include/configs/am335x_evm.h +++ b/include/configs/am335x_evm.h @@ -436,6 +436,13 @@ # define CONFIG_ENV_SPI_MAX_HZ CONFIG_SF_DEFAULT_SPEED # define CONFIG_ENV_OFFSET (892 << 10) /* 892 KiB in */ # define CONFIG_ENV_SECT_SIZE (4 << 10) /* 4 KB sectors */ +#define CONFIG_CMD_MTDPARTS +#define MTDIDS_DEFAULT "nor0=physmap-flash.0" +#define MTDPARTS_DEFAULT "mtdparts=physmap-flash.0:128k(SPL)," \ + "128k(SPL.backup1)," \ + "128k(SPL.backup2)," \ + "128k(SPL.backup3),384k(u-boot)," \ + "4k(u-boot-env),3464k(kernel),-(rootfs)" #endif /* SPI support */ /* Unsupported features */