From patchwork Tue Mar 12 16:17:11 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Warren X-Patchwork-Id: 227075 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 6F3252C0092 for ; Wed, 13 Mar 2013 03:19:25 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 3D50D4A253; Tue, 12 Mar 2013 17:19:22 +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 gLBiJTUKk6Y8; Tue, 12 Mar 2013 17:19:21 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5FA564A26A; Tue, 12 Mar 2013 17:19:02 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id F14244A25E for ; Tue, 12 Mar 2013 17:18:44 +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 lel1XLeuQbg7 for ; Tue, 12 Mar 2013 17:18:35 +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-f41.google.com (mail-pb0-f41.google.com [209.85.160.41]) by theia.denx.de (Postfix) with ESMTPS id 0935A4A227 for ; Tue, 12 Mar 2013 17:18:33 +0100 (CET) Received: by mail-pb0-f41.google.com with SMTP id um15so11758pbc.14 for ; Tue, 12 Mar 2013 09:18:31 -0700 (PDT) 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=EGc5HpgaqDH3h93dKNIf5Yfz4nH2CUd9W0o5H4KQBpA=; b=CgHa4SDHZOxwivtvYUo+dWhUf2fgu4ED/lXDz3WZ93lCG0w+hjPbKc+wcWPzvA8yWp 0WwXlAKfU5jJhiMJ0bLnisCmawlAehtqHT8NXN0OR7lsgHj4yyYwepCbCBL5y/l4yL+9 UIIZPUPdDurGF2gNUWEbuY1wsaoHAfOX/eKaw/Bg+V9yzJS7mSykVD9kO56XIXhj+hWV P2OSa6xAEvm8HDXtaEg/DBxr4omiZrUQDJZpf6IeMSHS8/M/ANPxzT11grAkzGmZZ+wH YY9yf01k1wDsyiU+zS//KSxDuVxoNnA4d7P1s3d1xDb3fadbb7GurKSaAN79kchkPbsg ivKQ== X-Received: by 10.68.225.73 with SMTP id ri9mr39036690pbc.70.1363105111849; Tue, 12 Mar 2013 09:18:31 -0700 (PDT) Received: from localhost.localdomain (ip68-230-103-25.ph.ph.cox.net. [68.230.103.25]) by mx.google.com with ESMTPS id ql7sm10078177pbb.2.2013.03.12.09.18.29 (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 12 Mar 2013 09:18:30 -0700 (PDT) From: Tom Warren To: u-boot@lists.denx.de Date: Tue, 12 Mar 2013 09:17:11 -0700 Message-Id: <1363105031-30296-5-git-send-email-twarren@nvidia.com> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1363105031-30296-1-git-send-email-twarren@nvidia.com> References: <1363105031-30296-1-git-send-email-twarren@nvidia.com> X-NVConfidentiality: public Cc: swarren@nvidia.com, afleming@freescale.com, Tom Warren , twarren.nvidia@gmail.com Subject: [U-Boot] [PATCH 4/4] Tegra114: MMC: Enable DT MMC driver support for Tegra114 Dalmore 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 Dalmore E1611 board, 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/30). Signed-off-by: Tom Warren Reviewed-by: Stephen Warren --- include/configs/dalmore.h | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/include/configs/dalmore.h b/include/configs/dalmore.h index b1a6e34..afce56a 100644 --- a/include/configs/dalmore.h +++ b/include/configs/dalmore.h @@ -50,7 +50,17 @@ #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 + +/* 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 #define MACH_TYPE_DALMORE 4304 /* not yet in mach-types.h */