]> Git Repo - u-boot.git/commitdiff
arm: socfpga: Enable DWMMC for SOCFPGA
authorChin Liang See <[email protected]>
Fri, 19 Sep 2014 09:28:23 +0000 (04:28 -0500)
committerMarek Vasut <[email protected]>
Mon, 6 Oct 2014 15:46:51 +0000 (17:46 +0200)
Enable the DesignWare MMC controller driver support
for SOCFPGA Cyclone5 dev kit

Signed-off-by: Chin Liang See <[email protected]>
Signed-off-by: Marek Vasut <[email protected]>
Cc: Dinh Nguyen <[email protected]>
Cc: Pavel Machek <[email protected]>
Cc: Marek Vasut <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: Albert Aribaud <[email protected]>
Cc: Wolfgang Denk <[email protected]>
Acked-by: Pavel Machek <[email protected]>
include/configs/socfpga_cyclone5.h

index c8986d9811d82c287d2e79a5b890a80d6104aa15..0da7059241b9acc5232b20bfecbae666adbf5e3a 100644 (file)
 /* Clocks source frequency to watchdog timer */
 #define CONFIG_DW_WDT_CLOCK_KHZ                25000
 
+/*
+ * MMC support
+ */
+#define CONFIG_MMC
+#ifdef CONFIG_MMC
+#define CONFIG_BOUNCE_BUFFER
+#define CONFIG_CMD_MMC
+#define CONFIG_GENERIC_MMC
+#define CONFIG_DWMMC
+#define CONFIG_SOCFPGA_DWMMC
+#define CONFIG_SOCFPGA_DWMMC_FIFO_DEPTH        1024
+#define CONFIG_SOCFPGA_DWMMC_DRVSEL    3
+#define CONFIG_SOCFPGA_DWMMC_SMPSEL    0
+/* using smaller max blk cnt to avoid flooding the limited stack we have */
+#define CONFIG_SYS_MMC_MAX_BLK_COUNT     256
+#endif /* CONFIG_MMC */
 
 /*
  * SPL "Second Program Loader" aka Initial Software
This page took 0.036878 seconds and 4 git commands to generate.