From patchwork Tue Mar 1 00:05:37 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: 253 Return-Path: Delivered-To: unknown Received: from imap.gmail.com (74.125.159.109) by localhost6.localdomain6 with IMAP4-SSL; 08 Jun 2011 14:41:14 -0000 Delivered-To: patches@linaro.org Received: by 10.224.19.208 with SMTP id c16cs118965qab; Mon, 28 Feb 2011 16:06:32 -0800 (PST) Received: by 10.231.12.131 with SMTP id x3mr5958588ibx.76.1298937992252; Mon, 28 Feb 2011 16:06:32 -0800 (PST) Received: from mail-iy0-f178.google.com (mail-iy0-f178.google.com [209.85.210.178]) by mx.google.com with ESMTPS id 16si10734792ibc.29.2011.02.28.16.06.32 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 28 Feb 2011 16:06:32 -0800 (PST) Received-SPF: neutral (google.com: 209.85.210.178 is neither permitted nor denied by best guess record for domain of matt.waddel@linaro.org) client-ip=209.85.210.178; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.210.178 is neither permitted nor denied by best guess record for domain of matt.waddel@linaro.org) smtp.mail=matt.waddel@linaro.org Received: by mail-iy0-f178.google.com with SMTP id 8so4272529iyj.37 for ; Mon, 28 Feb 2011 16:06:32 -0800 (PST) Received: by 10.43.58.129 with SMTP id wk1mr5702781icb.456.1298937991955; Mon, 28 Feb 2011 16:06:31 -0800 (PST) Received: from localhost.localdomain (c-98-202-116-201.hsd1.ut.comcast.net [98.202.116.201]) by mx.google.com with ESMTPS id yf11sm3471379icb.8.2011.02.28.16.06.30 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 28 Feb 2011 16:06:31 -0800 (PST) From: matt.waddel@linaro.org To: u-boot@lists.denx.de Cc: patches@linaro.org, Matt Waddel Subject: [PATCH V2 3/3] ARMV7: Vexpress: Add MMC support Date: Mon, 28 Feb 2011 17:05:37 -0700 Message-Id: <1298937937-22759-3-git-send-email-matt.waddel@linaro.org> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1298601325-12112-1-git-send-email-matt.waddel@linaro.org> References: <1298601325-12112-1-git-send-email-matt.waddel@linaro.org> 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..92cb6be 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_MMCI + rc = arm_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..52fb5df 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_MMCI +#define CONFIG_ARM_MMCI_BASE 0x10005000 +#define CONFIG_SYS_MMC_MAX_BLK_COUNT 127 +#define CONFIG_ARM_MMCI_CLOCK_FREQ 6250000 /* BOOTP options */ #define CONFIG_BOOTP_BOOTFILESIZE