]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
ARMV7: Vexpress: Add MMC support
authorMatt Waddel <matt.waddel@linaro.org>
Sat, 16 Apr 2011 11:54:08 +0000 (11:54 +0000)
committerAndy Fleming <afleming@freescale.com>
Fri, 29 Apr 2011 08:20:01 +0000 (03:20 -0500)
Added the board specific definitions to use the MMCI device.

Signed-off-by: Matt Waddel <matt.waddel@linaro.org>
board/armltd/vexpress/ca9x4_ct_vxp.c
include/configs/ca9x4_ct_vxp.h

index ce1be1e7665c39b5ca6d9bbf607bc78ee820697a..3566b958e7db6f504aa11caf367ead897ea7b3d0 100644 (file)
@@ -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 */
index 2a87a798d5a16fbd88c21c1ad502e6daacc55a77..c6fac32dbbdd7fd2d4817d23fc8ed0924ef25b26 100644 (file)
 #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