Commit ddcbed04a21857cb0a457b0ff3de26c750815632
Committed by
Marek Vasut
1 parent
13e81d45f8
Exists in
v2017.01-smarct4x
and in
37 other branches
arm: socfpga: Enable DWMMC for SOCFPGA
Enable the DesignWare MMC controller driver support for SOCFPGA Cyclone5 dev kit Signed-off-by: Chin Liang See <clsee@altera.com> Signed-off-by: Marek Vasut <marex@denx.de> Cc: Dinh Nguyen <dinguyen@altera.com> Cc: Pavel Machek <pavel@denx.de> Cc: Marek Vasut <marex@denx.de> Cc: Tom Rini <trini@ti.com> Cc: Albert Aribaud <albert.u.boot@aribaud.net> Cc: Wolfgang Denk <wd@denx.de> Acked-by: Pavel Machek <pavel@denx.de>
Showing 1 changed file with 16 additions and 0 deletions Side-by-side Diff
include/configs/socfpga_cyclone5.h
... | ... | @@ -251,6 +251,22 @@ |
251 | 251 | /* Clocks source frequency to watchdog timer */ |
252 | 252 | #define CONFIG_DW_WDT_CLOCK_KHZ 25000 |
253 | 253 | |
254 | +/* | |
255 | + * MMC support | |
256 | + */ | |
257 | +#define CONFIG_MMC | |
258 | +#ifdef CONFIG_MMC | |
259 | +#define CONFIG_BOUNCE_BUFFER | |
260 | +#define CONFIG_CMD_MMC | |
261 | +#define CONFIG_GENERIC_MMC | |
262 | +#define CONFIG_DWMMC | |
263 | +#define CONFIG_SOCFPGA_DWMMC | |
264 | +#define CONFIG_SOCFPGA_DWMMC_FIFO_DEPTH 1024 | |
265 | +#define CONFIG_SOCFPGA_DWMMC_DRVSEL 3 | |
266 | +#define CONFIG_SOCFPGA_DWMMC_SMPSEL 0 | |
267 | +/* using smaller max blk cnt to avoid flooding the limited stack we have */ | |
268 | +#define CONFIG_SYS_MMC_MAX_BLK_COUNT 256 | |
269 | +#endif /* CONFIG_MMC */ | |
254 | 270 | |
255 | 271 | /* |
256 | 272 | * SPL "Second Program Loader" aka Initial Software |