Forgot to answer this part:

On 13/08/14 15:55, Igor Grinberg wrote:
Hi Nikita,

[...]

+}
+#else
+static void cm_fx6_setup_ecspi(void) { }
+#endif
+
+void board_init_f(ulong dummy)
+{
+       gd = &gdata;
+       enable_usdhc_clk(1, 2);

can this be done inside board_mmc_init() or even in a common location
like fsl_esdhc_initialize()?

This is actually here for DMA, not MMC. usdhc3_clk_root is a clock
source for APBH DMA, and I have to make sure it is activated or else
DMA init will hang when booting from SPI flash (when booting from MMC,
the boot rom takes care of turning this clock on).

I'll move it to the NAND patch.
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to