summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaavard Skinnemoen <hskinnemoen@atmel.com>2006-12-17 18:56:46 +0100
committerHaavard Skinnemoen <hskinnemoen@atmel.com>2007-04-14 16:14:06 +0200
commit8e6875183cdca91c134408d119d4abcd48ef6856 (patch)
tree8deb0ed677d6fedfb6f140f8d5f68f44065e8ed3
parentfc26c97bb6df41b4a95662c34054fe912387bf38 (diff)
downloadu-boot-imx-8e6875183cdca91c134408d119d4abcd48ef6856.zip
u-boot-imx-8e6875183cdca91c134408d119d4abcd48ef6856.tar.gz
u-boot-imx-8e6875183cdca91c134408d119d4abcd48ef6856.tar.bz2
AVR32: Enable MMC support
Set up the portmux for the MMC interface and enable the MMC driver along with support for DOS partitions, ext2 and FAT filesystems. Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
-rw-r--r--board/atmel/atstk1000/atstk1000.c3
-rw-r--r--include/configs/atstk1002.h9
2 files changed, 9 insertions, 3 deletions
diff --git a/board/atmel/atstk1000/atstk1000.c b/board/atmel/atstk1000/atstk1000.c
index 407752c..6618963 100644
--- a/board/atmel/atstk1000/atstk1000.c
+++ b/board/atmel/atstk1000/atstk1000.c
@@ -53,6 +53,9 @@ int board_early_init_f(void)
gpio_enable_macb0();
gpio_enable_macb1();
#endif
+#if defined(CONFIG_MMC)
+ gpio_enable_mmci();
+#endif
return 0;
}
diff --git a/include/configs/atstk1002.h b/include/configs/atstk1002.h
index 5e63ef8..ed3ee5a 100644
--- a/include/configs/atstk1002.h
+++ b/include/configs/atstk1002.h
@@ -68,6 +68,8 @@
#undef CONFIG_USART3
/* User serviceable stuff */
+#define CONFIG_DOS_PARTITION 1
+
#define CONFIG_CMDLINE_TAG 1
#define CONFIG_SETUP_MEMORY_TAGS 1
#define CONFIG_INITRD_TAG 1
@@ -138,11 +140,11 @@
/* | CFG_CMD_SAVES */ \
/* | CFG_CMD_SPI */ \
/* | CFG_CMD_PING */ \
- /* | CFG_CMD_MMC */ \
- /* | CFG_CMD_FAT */ \
+ | CFG_CMD_MMC \
+ | CFG_CMD_FAT \
| CFG_CMD_IMLS \
/* | CFG_CMD_ITEST */ \
- /* | CFG_CMD_EXT2 */ \
+ | CFG_CMD_EXT2 \
| CFG_CMD_JFFS2 \
)
@@ -153,6 +155,7 @@
#define CONFIG_PIO2 1
#define CFG_NR_PIOS 5
#define CFG_HSDRAMC 1
+#define CONFIG_MMC 1
#define CFG_DCACHE_LINESZ 32
#define CFG_ICACHE_LINESZ 32