From patchwork Sat Apr 16 21:54:08 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: matt.waddel@linaro.org X-Patchwork-Id: 91503 X-Patchwork-Delegate: afleming@freescale.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 A7880B7014 for ; Sun, 17 Apr 2011 07:55:31 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 90B30280FE; Sat, 16 Apr 2011 23:55:18 +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 6gFKIMlGLg+W; Sat, 16 Apr 2011 23:55:18 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 2CF01280F6; Sat, 16 Apr 2011 23:55:09 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C1714280D9 for ; Sat, 16 Apr 2011 23:55:05 +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 aZV3jc68c3P4 for ; Sat, 16 Apr 2011 23:55:01 +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-gy0-f172.google.com (mail-gy0-f172.google.com [209.85.160.172]) by theia.denx.de (Postfix) with ESMTPS id 12893280DA for ; Sat, 16 Apr 2011 23:55:00 +0200 (CEST) Received: by mail-gy0-f172.google.com with SMTP id 3so1191901gyf.3 for ; Sat, 16 Apr 2011 14:55:00 -0700 (PDT) Received: by 10.100.25.19 with SMTP id 19mr621962any.157.1302990900774; Sat, 16 Apr 2011 14:55:00 -0700 (PDT) Received: from localhost.localdomain (c-98-202-116-201.hsd1.ut.comcast.net [98.202.116.201]) by mx.google.com with ESMTPS id x37sm3905694ana.34.2011.04.16.14.54.58 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 16 Apr 2011 14:54:59 -0700 (PDT) From: matt.waddel@linaro.org To: u-boot@lists.denx.de Date: Sat, 16 Apr 2011 15:54:08 -0600 Message-Id: <1302990848-4225-4-git-send-email-matt.waddel@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1302990848-4225-1-git-send-email-matt.waddel@linaro.org> References: <1299129759-30678-3-git-send-email-matt.waddel@linaro.org> <1302990848-4225-1-git-send-email-matt.waddel@linaro.org> Cc: Matt Waddel , patches@linaro.org Subject: [U-Boot] [PATCH V4 3/3] ARMV7: Vexpress: Add MMC support X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.9 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 From: Matt Waddel Added the board specific definitions to use the MMCI device. Signed-off-by: Matt Waddel --- board/armltd/vexpress/ca9x4_ct_vxp.c | 9 +++++++++ include/configs/ca9x4_ct_vxp.h | 4 ++++ 2 files changed, 13 insertions(+), 0 deletions(-) diff --git a/board/armltd/vexpress/ca9x4_ct_vxp.c b/board/armltd/vexpress/ca9x4_ct_vxp.c index ce1be1e..3566b95 100644 --- a/board/armltd/vexpress/ca9x4_ct_vxp.c +++ b/board/armltd/vexpress/ca9x4_ct_vxp.c @@ -86,6 +86,15 @@ int board_eth_init(bd_t *bis) return rc; } +int cpu_mmc_init(bd_t *bis) +{ + int rc = 0; +#ifdef CONFIG_ARM_PL180_MMCI + rc = arm_pl180_mmci_init(); +#endif + return rc; +} + static void flash__init(void) { /* Setup the sytem control register to allow writing to flash */ diff --git a/include/configs/ca9x4_ct_vxp.h b/include/configs/ca9x4_ct_vxp.h index 63f003d..4ab58c0 100644 --- a/include/configs/ca9x4_ct_vxp.h +++ b/include/configs/ca9x4_ct_vxp.h @@ -86,6 +86,10 @@ #define CONFIG_MMC 1 #define CONFIG_CMD_MMC #define CONFIG_GENERIC_MMC +#define CONFIG_ARM_PL180_MMCI +#define CONFIG_ARM_PL180_MMCI_BASE 0x10005000 +#define CONFIG_SYS_MMC_MAX_BLK_COUNT 127 +#define CONFIG_ARM_PL180_MMCI_CLOCK_FREQ 6250000 /* BOOTP options */ #define CONFIG_BOOTP_BOOTFILESIZE