AVR32: Enable MMC support
authorHaavard Skinnemoen <hskinnemoen@atmel.com>
Sun, 17 Dec 2006 17:56:46 +0000 (18:56 +0100)
committerHaavard Skinnemoen <hskinnemoen@atmel.com>
Sat, 14 Apr 2007 14:14:06 +0000 (16:14 +0200)
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>
board/atmel/atstk1000/atstk1000.c
include/configs/atstk1002.h

index 407752cb43605e831aec3520ef72a7ac375bf725..6618963cc0e4ed6a17c07877b7ccaf0c27b20b6b 100644 (file)
@@ -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;
 }
index 5e63ef89154527e04ab5758a86cb2bf46a106822..ed3ee5a1648b6b7b74b3f889ced0b9cf79c385bf 100644 (file)
@@ -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
                                         /* | 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                \
                )
 
 #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