public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] socfpga: Enable DWMMC for SOCFPGA
@ 2014-09-19  9:28 Chin Liang See
  2014-09-19 11:41 ` Marek Vasut
  0 siblings, 1 reply; 2+ messages in thread
From: Chin Liang See @ 2014-09-19  9:28 UTC (permalink / raw)
  To: u-boot

To enable the DesignWare MMC controller driver support
for SOCFPGA Cyclone5 dev kit

Signed-off-by: Chin Liang See <clsee@altera.com>
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>
---
 include/configs/socfpga_cyclone5.h |   18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/include/configs/socfpga_cyclone5.h b/include/configs/socfpga_cyclone5.h
index 32175b7..f9fafac 100644
--- a/include/configs/socfpga_cyclone5.h
+++ b/include/configs/socfpga_cyclone5.h
@@ -252,6 +252,24 @@
 /* Clocks source frequency to watchdog timer */
 #define CONFIG_DW_WDT_CLOCK_KHZ		25000
 
+/*
+ * MMC support
+ */
+#define CONFIG_MMC
+#ifdef CONFIG_MMC
+#define CONFIG_CMD_MMC
+#define CONFIG_SDMMC_BASE		(SOCFPGA_SDMMC_ADDRESS)
+#define CONFIG_SDMMC_HOST_HS
+#define CONFIG_GENERIC_MMC		1
+#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
+#define CONFIG_BOUNCE_BUFFER
+/* 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
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [U-Boot] [PATCH] socfpga: Enable DWMMC for SOCFPGA
  2014-09-19  9:28 [U-Boot] [PATCH] socfpga: Enable DWMMC for SOCFPGA Chin Liang See
@ 2014-09-19 11:41 ` Marek Vasut
  0 siblings, 0 replies; 2+ messages in thread
From: Marek Vasut @ 2014-09-19 11:41 UTC (permalink / raw)
  To: u-boot

On Friday, September 19, 2014 at 11:28:23 AM, Chin Liang See wrote:
> To enable the DesignWare MMC controller driver support
> for SOCFPGA Cyclone5 dev kit
> 
> Signed-off-by: Chin Liang See <clsee@altera.com>
> 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>
> ---
>  include/configs/socfpga_cyclone5.h |   18 ++++++++++++++++++
>  1 file changed, 18 insertions(+)
> 
> diff --git a/include/configs/socfpga_cyclone5.h
> b/include/configs/socfpga_cyclone5.h index 32175b7..f9fafac 100644
> --- a/include/configs/socfpga_cyclone5.h
> +++ b/include/configs/socfpga_cyclone5.h
> @@ -252,6 +252,24 @@
>  /* Clocks source frequency to watchdog timer */
>  #define CONFIG_DW_WDT_CLOCK_KHZ		25000
> 
> +/*
> + * MMC support
> + */
> +#define CONFIG_MMC
> +#ifdef CONFIG_MMC
> +#define CONFIG_CMD_MMC
> +#define CONFIG_SDMMC_BASE		(SOCFPGA_SDMMC_ADDRESS)

This symbol doesn't exist.

> +#define CONFIG_SDMMC_HOST_HS

This symbol doesn't exist.

> +#define CONFIG_GENERIC_MMC		1

You don't actually need to define this to have a value.

> +#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
> +#define CONFIG_BOUNCE_BUFFER
> +/* using smaller max blk cnt to avoid flooding the limited stack we have
> */ +#define CONFIG_SYS_MMC_MAX_BLK_COUNT     256

This is something I am wondering about (btw. you might have seen a FIXME tag in 
my repository right next to this code). Do we really need this in U-Boot or is 
this portion SPL specific ? Or do we even need this limit at all ?
[...]

Anyway, I will pick them in my tree and add a bit more magic sause to them , 
then re-post the whole series.

Best regards,
Marek Vasut

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-09-19 11:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-19  9:28 [U-Boot] [PATCH] socfpga: Enable DWMMC for SOCFPGA Chin Liang See
2014-09-19 11:41 ` Marek Vasut

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox