]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - arch/arm/lib/board.c
Save environment data to mmc.
[karo-tx-uboot.git] / arch / arm / lib / board.c
index 54519b0e1d87fb0b3c4cebfac70c6f5a158b74ee..e17f182e182da3fcab7299d982b2d5e60034f692 100644 (file)
@@ -347,6 +347,16 @@ void start_armboot (void)
        dataflash_print_info();
 #endif
 
+#ifdef CONFIG_GENERIC_MMC
+/*
+ * MMC initialization is called before relocating env.
+ * Thus It is required that operations like pin multiplexer
+ * be put in board_init.
+ */
+       puts ("MMC:   ");
+       mmc_initialize (gd->bd);
+#endif
+
        /* initialize environment */
        env_relocate ();
 
@@ -419,11 +429,6 @@ extern void davinci_eth_set_mac_addr (const u_int8_t *addr);
        board_late_init ();
 #endif
 
-#ifdef CONFIG_GENERIC_MMC
-       puts ("MMC:   ");
-       mmc_initialize (gd->bd);
-#endif
-
 #ifdef CONFIG_BITBANGMII
        bb_miiphy_init();
 #endif