diff options
author | Vasily Khoruzhick <anarsoul@gmail.com> | 2012-01-25 22:54:33 +0300 |
---|---|---|
committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2012-03-26 23:09:22 +0200 |
commit | 81f731ca7c387d6ae1560a27118a4c6a09b6e722 (patch) | |
tree | 442876b0f8dac6a6db181353a0cb345b14038b27 | |
parent | 76d4ae251e4a2f7724f4462baccc2779074fa937 (diff) | |
download | u-boot-imx-81f731ca7c387d6ae1560a27118a4c6a09b6e722.zip u-boot-imx-81f731ca7c387d6ae1560a27118a4c6a09b6e722.tar.gz u-boot-imx-81f731ca7c387d6ae1560a27118a4c6a09b6e722.tar.bz2 |
zipitz2: use pxa_mmc_gen as MMC driver
Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
-rw-r--r-- | board/zipitz2/zipitz2.c | 8 | ||||
-rw-r--r-- | include/configs/zipitz2.h | 6 |
2 files changed, 12 insertions, 2 deletions
diff --git a/board/zipitz2/zipitz2.c b/board/zipitz2/zipitz2.c index b093c2f..4075fb6 100644 --- a/board/zipitz2/zipitz2.c +++ b/board/zipitz2/zipitz2.c @@ -79,6 +79,14 @@ void dram_init_banksize(void) gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE; } +#ifdef CONFIG_CMD_MMC +int board_mmc_init(bd_t *bis) +{ + pxa_mmc_register(0); + return 0; +} +#endif + #ifdef CONFIG_CMD_SPI struct { diff --git a/include/configs/zipitz2.h b/include/configs/zipitz2.h index 80d78b6..afe1e89 100644 --- a/include/configs/zipitz2.h +++ b/include/configs/zipitz2.h @@ -45,7 +45,8 @@ #define CONFIG_ARCH_CPU_INIT #define CONFIG_BOOTCOMMAND \ - "if mmc init && fatload mmc 0 0xa0000000 uboot.script ; then " \ + "if mmc rescan && ext2load mmc 0 0xa0000000 boot/uboot.script ;"\ + "then " \ "source 0xa0000000; " \ "else " \ "bootm 0x60000; " \ @@ -85,7 +86,8 @@ */ #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 |