]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
PXA: vpac270: Enable the new generic MMC driver
authorMarek Vasut <marek.vasut@gmail.com>
Sun, 28 Aug 2011 04:30:40 +0000 (06:30 +0200)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Tue, 15 Nov 2011 21:24:50 +0000 (22:24 +0100)
Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
board/vpac270/vpac270.c
include/configs/vpac270.h

index 43bbdff70e23fb4d5bb1a644552be130bb733d47..cf8e7b61db9393e9d8d5eb46ecb7a305e1bbc7c0 100644 (file)
@@ -21,6 +21,7 @@
 
 #include <common.h>
 #include <asm/arch/hardware.h>
+#include <asm/arch/regs-mmc.h>
 #include <netdev.h>
 #include <serial.h>
 #include <asm/io.h>
@@ -72,6 +73,14 @@ void dram_init_banksize(void)
 #endif
 }
 
+#ifdef CONFIG_CMD_MMC
+int board_mmc_init(bd_t *bis)
+{
+       pxa_mmc_register(0);
+       return 0;
+}
+#endif
+
 #ifdef CONFIG_CMD_USB
 int usb_board_init(void)
 {
index 9db4d999b713fe206f5087aea92a158a2fa364b8..dd68c66dfa36ac32dfc04e3222a59552622f8510 100644 (file)
  */
 #ifdef CONFIG_CMD_MMC
 #define        CONFIG_MMC
-#define        CONFIG_PXA_MMC
+#define        CONFIG_GENERIC_MMC
+#define        CONFIG_PXA_MMC_GENERIC
 #define        CONFIG_SYS_MMC_BASE             0xF0000000
 #define        CONFIG_CMD_FAT
 #define        CONFIG_CMD_EXT2