From patchwork Thu Feb 14 07:54:52 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 220387 X-Patchwork-Delegate: twarren@nvidia.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 8EB362C0085 for ; Thu, 14 Feb 2013 18:55:18 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 2E7644A1A7; Thu, 14 Feb 2013 08:55:15 +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 f5IuxPLv-gJ3; Thu, 14 Feb 2013 08:55:15 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id EF8F44A184; Thu, 14 Feb 2013 08:55:10 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 90E824A184 for ; Thu, 14 Feb 2013 08:55:01 +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 27zPXOxlc9Q4 for ; Thu, 14 Feb 2013 08:55:00 +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 moutng.kundenserver.de (moutng.kundenserver.de [212.227.17.8]) by theia.denx.de (Postfix) with ESMTPS id 252804A17E for ; Thu, 14 Feb 2013 08:54:57 +0100 (CET) Received: from mailbox.adnet.avionic-design.de (mailbox.avionic-design.de [109.75.18.3]) by mrelayeu.kundenserver.de (node=mreu4) with ESMTP (Nemesis) id 0Mh2oO-1UJ9BA2fa4-00M54J; Thu, 14 Feb 2013 08:54:56 +0100 Received: from localhost (localhost [127.0.0.1]) by mailbox.adnet.avionic-design.de (Postfix) with ESMTP id F35CD2A2813D; Thu, 14 Feb 2013 08:54:55 +0100 (CET) X-Virus-Scanned: amavisd-new at avionic-design.de Received: from mailbox.adnet.avionic-design.de ([127.0.0.1]) by localhost (mailbox.avionic-design.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9b-Ae9l9doZg; Thu, 14 Feb 2013 08:54:54 +0100 (CET) Received: from mailman.adnet.avionic-design.de (mailman.adnet.avionic-design.de [172.20.31.172]) by mailbox.adnet.avionic-design.de (Postfix) with ESMTP id A48752A28241; Thu, 14 Feb 2013 08:54:54 +0100 (CET) Received: from localhost (avionic-0098.adnet.avionic-design.de [172.20.31.233]) by mailman.adnet.avionic-design.de (Postfix) with ESMTP id 1F58610046C; Thu, 14 Feb 2013 08:54:50 +0100 (CET) From: Thierry Reding To: Tom Warren Date: Thu, 14 Feb 2013 08:54:52 +0100 Message-Id: <1360828494-16207-2-git-send-email-thierry.reding@avionic-design.de> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1360828494-16207-1-git-send-email-thierry.reding@avionic-design.de> References: <1360828494-16207-1-git-send-email-thierry.reding@avionic-design.de> X-Provags-ID: V02:K0:6q8Pwez+DbeZ7Zs/mH/LzvqDuW4jt3Kv+eqew1K/jXz ifv0b52QvMx1RRvE5KzH0Dxg04gRRbRfjrsCbT2a6lGase6k/d nJ4IVzwkwuh6O2RbR/8bsHf7qBfdUSsMilkQH73/Jjghd8MnuJ xNZCJFAs2uu6epLjPGIB0EgatraHPOUb4OApA7fnCioAbtie0Q +jjj44NIevkSLWX6CbD5O466HYdMc4tjeez5LyB80UJN90Hj+c LzHqXdqcLeUiZ3aFU8MuY8KdMPwYxx9tiEMyMYMNGwTbqaiPCi dbJuJXmhky3hlFymqWi+CQlyxYZJTMf5w3m0jFvlk6nmPMbQbR BRysFsgV8o79UG58VUeeDHruAORLi0dvYBpYeG4QIBtTwbYpM4 mxY8unMm1kSai6u080asMh16xIF31s6nzwRMGEco9IP/cKbz/K GDP2m Cc: u-boot@lists.denx.de Subject: [U-Boot] [PATCH 2/4] Tegra: Medcom-Wide: Enable NAND and boot script 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 Boot script support brings Medcom-Wide in line with other Tegra boards. In order to enable booting a Linux kernel with initial ramdisk, also add support for the new FIT image type. Signed-off-by: Thierry Reding --- include/configs/medcom-wide.h | 34 ++++++++++++++++++++-------------- 1 file changed, 20 insertions(+), 14 deletions(-) diff --git a/include/configs/medcom-wide.h b/include/configs/medcom-wide.h index bae4ba0..ea8e83f 100644 --- a/include/configs/medcom-wide.h +++ b/include/configs/medcom-wide.h @@ -44,14 +44,29 @@ #define CONFIG_BOARD_EARLY_INIT_F #define CONFIG_BOARD_LATE_INIT -#define CONFIG_ENV_IS_NOWHERE - /* SD/MMC */ #define CONFIG_MMC #define CONFIG_GENERIC_MMC #define CONFIG_TEGRA_MMC #define CONFIG_CMD_MMC +#define CONFIG_DOS_PARTITION +#define CONFIG_EFI_PARTITION +#define CONFIG_FS_EXT4 +#define CONFIG_FS_FAT +#define CONFIG_CMD_EXT2 +#define CONFIG_CMD_FAT +#define CONFIG_CMD_FS_GENERIC + +/* NAND support */ +#define CONFIG_CMD_NAND +#define CONFIG_TEGRA_NAND +#define CONFIG_SYS_MAX_NAND_DEVICE 1 + +/* Environment in NAND, aligned to start of last sector */ +#define CONFIG_ENV_IS_IN_NAND +#define CONFIG_ENV_OFFSET (SZ_512M - SZ_128K) /* 128K sectors */ + /* USB host support */ #define CONFIG_USB_EHCI #define CONFIG_USB_EHCI_TEGRA @@ -66,18 +81,6 @@ #define CONFIG_CMD_NET #define CONFIG_CMD_DHCP -#define CONFIG_DOS_PARTITION -#define CONFIG_EFI_PARTITION -#define CONFIG_CMD_EXT2 -#define CONFIG_CMD_FAT - -#define CONFIG_FIT - -#define CONFIG_BOOTCOMMAND \ - "mmc rescan;" \ - "ext2load mmc 0 0x17000000 /boot/uImage;" \ - "bootm" - /* LCD support */ #define CONFIG_LCD #define CONFIG_PWM_TEGRA @@ -85,6 +88,9 @@ #define LCD_BPP LCD_COLOR16 #define CONFIG_SYS_WHITE_ON_BLACK +/* support the new (FDT-based) image format */ +#define CONFIG_FIT + #include "tegra-common-post.h" #endif /* __CONFIG_H */