From patchwork Tue Feb 26 20:46:36 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Warren X-Patchwork-Id: 223393 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 6A57B2C0087 for ; Wed, 27 Feb 2013 07:48:01 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A92C14A092; Tue, 26 Feb 2013 21:47:51 +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 pozMTU2Y5mv6; Tue, 26 Feb 2013 21:47:51 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 933DF4A0B0; Tue, 26 Feb 2013 21:47:36 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 053914A049 for ; Tue, 26 Feb 2013 21:47:26 +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 w1zAsgx8TigT for ; Tue, 26 Feb 2013 21:47:24 +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-pb0-f52.google.com (mail-pb0-f52.google.com [209.85.160.52]) by theia.denx.de (Postfix) with ESMTPS id 25F954A053 for ; Tue, 26 Feb 2013 21:47:08 +0100 (CET) Received: by mail-pb0-f52.google.com with SMTP id ma3so2597389pbc.11 for ; Tue, 26 Feb 2013 12:47:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:x-nvconfidentiality; bh=MqaYn7vKXCkoEu/09PqQUbauktzn8gycnv6OH3RtBuc=; b=ktcesw/2+ZEdOpKO6AMJbVKDqUAwRIiejy5PYjmk3ZD7In1U0rhiqKi5zW3GfJ6qpJ jBkolVo7vYe8AREQeEMtDe4igjER4sA1ybtI6SelIjvrvsrXi/S+4UTT1onXGjtJI0gs 6JTdec7iHuN3K9g82Z/EBOvR/zPOy5u85eWYqjuqEYyYCCRCvxj0ZB4pjCLIphrUFCEm HYYZNO9b5WFmgM60M89sc6ysYW+iTHnSg29dqClXmnNX/TtCLHH+CpJ7X+34tG+UUMid uA+T19jGiLnI1ZRz6fyMjKEyJjOexnpYX9pTKPG0Xt/Rlvh3/VimeY9bYQAYY9qEnaiQ rGeA== X-Received: by 10.68.196.129 with SMTP id im1mr25388070pbc.206.1361911626836; Tue, 26 Feb 2013 12:47:06 -0800 (PST) Received: from localhost.localdomain (ip68-230-103-25.ph.ph.cox.net. [68.230.103.25]) by mx.google.com with ESMTPS id dx17sm2573303pac.17.2013.02.26.12.47.04 (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 26 Feb 2013 12:47:05 -0800 (PST) From: Tom Warren To: u-boot@lists.denx.de Date: Tue, 26 Feb 2013 13:46:36 -0700 Message-Id: <1361911596-16518-6-git-send-email-twarren@nvidia.com> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1361911596-16518-1-git-send-email-twarren@nvidia.com> References: <1361911596-16518-1-git-send-email-twarren@nvidia.com> X-NVConfidentiality: public Cc: afleming@freescale.com, Tom Warren , swarren@nvidia.com, twarren.nvidia@gmail.com Subject: [U-Boot] [PATCH 5/5] Tegra30: MMC: Enable DT MMC driver support for Tegra30 Cardhu boards 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 Tested on my Cardhu-A04 tablet, eMMC and SD-Card work fine, can load a kernel off of an SD card OK, card detect works, and the env is now stored in eMMC (end of the 2nd 'boot' sector, same as Tegra20). Signed-off-by: Tom Warren --- include/configs/cardhu.h | 20 +++++++++++++++++++- include/configs/tegra30-common.h | 3 +++ 2 files changed, 22 insertions(+), 1 deletions(-) diff --git a/include/configs/cardhu.h b/include/configs/cardhu.h index 1616b39..18c7eb8 100644 --- a/include/configs/cardhu.h +++ b/include/configs/cardhu.h @@ -47,7 +47,25 @@ #define CONFIG_SYS_I2C_SPEED 100000 #define CONFIG_CMD_I2C -#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 + +/* Environment in eMMC, at the end of 2nd "boot sector" */ +#define CONFIG_ENV_IS_IN_MMC +#define CONFIG_ENV_OFFSET ((512 * 1024) - CONFIG_ENV_SIZE) +#define CONFIG_SYS_MMC_ENV_DEV 0 +#define CONFIG_SYS_MMC_ENV_PART 2 /* SPI */ #define CONFIG_TEGRA_SLINK diff --git a/include/configs/tegra30-common.h b/include/configs/tegra30-common.h index 04517e1..bd1dfe8 100644 --- a/include/configs/tegra30-common.h +++ b/include/configs/tegra30-common.h @@ -86,4 +86,7 @@ /* Total I2C ports on Tegra30 */ #define TEGRA_I2C_NUM_CONTROLLERS 5 +/* Misc utility code */ +#define CONFIG_BOUNCE_BUFFER + #endif /* _TEGRA30_COMMON_H_ */