All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 0/3] Enable eMMC on mx6qsabresd board
@ 2012-12-31  0:14 Shawn Guo
  2012-12-31  0:14 ` [U-Boot] [PATCH 1/3] fsl_esdhc: add MMC_MODE_HC host_caps Shawn Guo
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Shawn Guo @ 2012-12-31  0:14 UTC (permalink / raw)
  To: u-boot

The series is to enable the use of eMMC on mx6qsabresd board, so that
we do not need to carry an external card to boot the board.  The DDR
mode support for eMMC is not included.

Shawn Guo (3):
  fsl_esdhc: add MMC_MODE_HC host_caps
  mx6qsabresd: add usdhc2 and usdhc4 support
  mx6qsabresd: use on-board eMMC to store environment

 board/freescale/mx6qsabresd/mx6qsabresd.c |   80 ++++++++++++++++++++++++++---
 drivers/mmc/fsl_esdhc.c                   |    3 +-
 include/configs/mx6qsabre_common.h        |    2 -
 include/configs/mx6qsabreauto.h           |    5 ++
 include/configs/mx6qsabresd.h             |    6 +++
 5 files changed, 87 insertions(+), 9 deletions(-)

-- 
1.7.9.5

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

* [U-Boot] [PATCH 1/3] fsl_esdhc: add MMC_MODE_HC host_caps
  2012-12-31  0:14 [U-Boot] [PATCH 0/3] Enable eMMC on mx6qsabresd board Shawn Guo
@ 2012-12-31  0:14 ` Shawn Guo
  2012-12-31  3:59   ` Shawn Guo
  2013-01-05 16:59   ` Stefano Babic
  2012-12-31  0:14 ` [U-Boot] [PATCH 2/3] mx6qsabresd: add usdhc2 and usdhc4 support Shawn Guo
                   ` (2 subsequent siblings)
  3 siblings, 2 replies; 12+ messages in thread
From: Shawn Guo @ 2012-12-31  0:14 UTC (permalink / raw)
  To: u-boot

All esdhc variants we know should support high capacity MMC cards,
so let's add MMC_MODE_HC host_caps unconditionally to support those
MMC cards (capacity > 2 GB).

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
---
 drivers/mmc/fsl_esdhc.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c
index e93e38a..29f3122 100644
--- a/drivers/mmc/fsl_esdhc.c
+++ b/drivers/mmc/fsl_esdhc.c
@@ -262,6 +262,7 @@ static void check_and_invalidate_dcache_range
 	unsigned end = start+size ;
 	invalidate_dcache_range(start, end);
 }
+
 /*
  * Sends a command out on the bus.  Takes the mmc pointer,
  * a command pointer, and an optional data pointer.
@@ -577,7 +578,7 @@ int fsl_esdhc_initialize(bd_t *bis, struct fsl_esdhc_cfg *cfg)
 		return -1;
 	}
 
-	mmc->host_caps = MMC_MODE_4BIT | MMC_MODE_8BIT;
+	mmc->host_caps = MMC_MODE_4BIT | MMC_MODE_8BIT | MMC_MODE_HC;
 
 	if (caps & ESDHC_HOSTCAPBLT_HSS)
 		mmc->host_caps |= MMC_MODE_HS_52MHz | MMC_MODE_HS;
-- 
1.7.9.5

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

* [U-Boot] [PATCH 2/3] mx6qsabresd: add usdhc2 and usdhc4 support
  2012-12-31  0:14 [U-Boot] [PATCH 0/3] Enable eMMC on mx6qsabresd board Shawn Guo
  2012-12-31  0:14 ` [U-Boot] [PATCH 1/3] fsl_esdhc: add MMC_MODE_HC host_caps Shawn Guo
@ 2012-12-31  0:14 ` Shawn Guo
  2013-01-05 17:02   ` Stefano Babic
  2012-12-31  0:15 ` [U-Boot] [PATCH 3/3] mx6qsabresd: use on-board eMMC to store environment Shawn Guo
  2012-12-31  0:22 ` [U-Boot] [PATCH 0/3] Enable eMMC on mx6qsabresd board Shawn Guo
  3 siblings, 1 reply; 12+ messages in thread
From: Shawn Guo @ 2012-12-31  0:14 UTC (permalink / raw)
  To: u-boot

The on-board number of available usdhc devices is something board
specific.  The patch moves CONFIG_SYS_FSL_USDHC_NUM out of
mx6qsabre_common.h and adds usdhc2 and usdhc4 support for mx6qsabresd
board.

To keep the default mmc device for environment same as before (usdhc3),
it moves CONFIG_SYS_MMC_ENV_DEV out of mx6qsabre_common.h and changes
it to 1 for mx6qsabresd.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
---
 board/freescale/mx6qsabresd/mx6qsabresd.c |   80 ++++++++++++++++++++++++++---
 include/configs/mx6qsabre_common.h        |    2 -
 include/configs/mx6qsabreauto.h           |    5 ++
 include/configs/mx6qsabresd.h             |    5 ++
 4 files changed, 84 insertions(+), 8 deletions(-)

diff --git a/board/freescale/mx6qsabresd/mx6qsabresd.c b/board/freescale/mx6qsabresd/mx6qsabresd.c
index 0240fb5..65c4a1a 100644
--- a/board/freescale/mx6qsabresd/mx6qsabresd.c
+++ b/board/freescale/mx6qsabresd/mx6qsabresd.c
@@ -86,6 +86,20 @@ static void setup_iomux_enet(void)
 	gpio_set_value(IMX_GPIO_NR(1, 25), 1);
 }
 
+iomux_v3_cfg_t const usdhc2_pads[] = {
+	MX6Q_PAD_SD2_CLK__USDHC2_CLK	| MUX_PAD_CTRL(USDHC_PAD_CTRL),
+	MX6Q_PAD_SD2_CMD__USDHC2_CMD	| MUX_PAD_CTRL(USDHC_PAD_CTRL),
+	MX6Q_PAD_SD2_DAT0__USDHC2_DAT0	| MUX_PAD_CTRL(USDHC_PAD_CTRL),
+	MX6Q_PAD_SD2_DAT1__USDHC2_DAT1	| MUX_PAD_CTRL(USDHC_PAD_CTRL),
+	MX6Q_PAD_SD2_DAT2__USDHC2_DAT2	| MUX_PAD_CTRL(USDHC_PAD_CTRL),
+	MX6Q_PAD_SD2_DAT3__USDHC2_DAT3	| MUX_PAD_CTRL(USDHC_PAD_CTRL),
+	MX6Q_PAD_NANDF_D4__USDHC2_DAT4	| MUX_PAD_CTRL(USDHC_PAD_CTRL),
+	MX6Q_PAD_NANDF_D5__USDHC2_DAT5	| MUX_PAD_CTRL(USDHC_PAD_CTRL),
+	MX6Q_PAD_NANDF_D6__USDHC2_DAT6	| MUX_PAD_CTRL(USDHC_PAD_CTRL),
+	MX6Q_PAD_NANDF_D7__USDHC2_DAT7	| MUX_PAD_CTRL(USDHC_PAD_CTRL),
+	MX6Q_PAD_NANDF_D2__GPIO_2_2	| MUX_PAD_CTRL(NO_PAD_CTRL), /* CD */
+};
+
 iomux_v3_cfg_t const usdhc3_pads[] = {
 	MX6Q_PAD_SD3_CLK__USDHC3_CLK   | MUX_PAD_CTRL(USDHC_PAD_CTRL),
 	MX6Q_PAD_SD3_CMD__USDHC3_CMD   | MUX_PAD_CTRL(USDHC_PAD_CTRL),
@@ -100,28 +114,82 @@ iomux_v3_cfg_t const usdhc3_pads[] = {
 	MX6Q_PAD_NANDF_D0__GPIO_2_0    | MUX_PAD_CTRL(NO_PAD_CTRL), /* CD */
 };
 
+iomux_v3_cfg_t const usdhc4_pads[] = {
+	MX6Q_PAD_SD4_CLK__USDHC4_CLK   | MUX_PAD_CTRL(USDHC_PAD_CTRL),
+	MX6Q_PAD_SD4_CMD__USDHC4_CMD   | MUX_PAD_CTRL(USDHC_PAD_CTRL),
+	MX6Q_PAD_SD4_DAT0__USDHC4_DAT0 | MUX_PAD_CTRL(USDHC_PAD_CTRL),
+	MX6Q_PAD_SD4_DAT1__USDHC4_DAT1 | MUX_PAD_CTRL(USDHC_PAD_CTRL),
+	MX6Q_PAD_SD4_DAT2__USDHC4_DAT2 | MUX_PAD_CTRL(USDHC_PAD_CTRL),
+	MX6Q_PAD_SD4_DAT3__USDHC4_DAT3 | MUX_PAD_CTRL(USDHC_PAD_CTRL),
+	MX6Q_PAD_SD4_DAT4__USDHC4_DAT4 | MUX_PAD_CTRL(USDHC_PAD_CTRL),
+	MX6Q_PAD_SD4_DAT5__USDHC4_DAT5 | MUX_PAD_CTRL(USDHC_PAD_CTRL),
+	MX6Q_PAD_SD4_DAT6__USDHC4_DAT6 | MUX_PAD_CTRL(USDHC_PAD_CTRL),
+	MX6Q_PAD_SD4_DAT7__USDHC4_DAT7 | MUX_PAD_CTRL(USDHC_PAD_CTRL),
+};
+
 static void setup_iomux_uart(void)
 {
 	imx_iomux_v3_setup_multiple_pads(uart1_pads, ARRAY_SIZE(uart1_pads));
 }
 
 #ifdef CONFIG_FSL_ESDHC
-struct fsl_esdhc_cfg usdhc_cfg[1] = {
+struct fsl_esdhc_cfg usdhc_cfg[3] = {
+	{USDHC2_BASE_ADDR},
 	{USDHC3_BASE_ADDR},
+	{USDHC4_BASE_ADDR},
 };
 
+#define USDHC2_CD_GPIO	IMX_GPIO_NR(2, 2)
+#define USDHC3_CD_GPIO	IMX_GPIO_NR(2, 0)
+
 int board_mmc_getcd(struct mmc *mmc)
 {
-	gpio_direction_input(IMX_GPIO_NR(2, 0));
-	return !gpio_get_value(IMX_GPIO_NR(2, 0));
+	struct fsl_esdhc_cfg *cfg = (struct fsl_esdhc_cfg *)mmc->priv;
+
+	switch (cfg->esdhc_base) {
+	case USDHC2_BASE_ADDR:
+		return !gpio_get_value(USDHC2_CD_GPIO);
+	case USDHC3_BASE_ADDR:
+		return !gpio_get_value(USDHC3_CD_GPIO);
+	default:
+		return 1; /* eMMC/uSDHC4 is always present */
+	}
 }
 
 int board_mmc_init(bd_t *bis)
 {
-	imx_iomux_v3_setup_multiple_pads(usdhc3_pads, ARRAY_SIZE(usdhc3_pads));
+	int i;
+
+	for (i = 0; i < CONFIG_SYS_FSL_USDHC_NUM; i++) {
+		switch (i) {
+		case 0:
+			imx_iomux_v3_setup_multiple_pads(
+				usdhc2_pads, ARRAY_SIZE(usdhc2_pads));
+			gpio_direction_input(USDHC2_CD_GPIO);
+			usdhc_cfg[0].sdhc_clk = mxc_get_clock(MXC_ESDHC2_CLK);
+			break;
+		case 1:
+			imx_iomux_v3_setup_multiple_pads(
+				usdhc3_pads, ARRAY_SIZE(usdhc3_pads));
+			gpio_direction_input(USDHC3_CD_GPIO);
+			usdhc_cfg[1].sdhc_clk = mxc_get_clock(MXC_ESDHC3_CLK);
+			break;
+		case 2:
+			imx_iomux_v3_setup_multiple_pads(
+				usdhc4_pads, ARRAY_SIZE(usdhc4_pads));
+			usdhc_cfg[2].sdhc_clk = mxc_get_clock(MXC_ESDHC4_CLK);
+			break;
+		default:
+			printf("Warning: you configured more USDHC controllers"
+				"(%d) than supported by the board\n", i + 1);
+			return 0;
+	       }
+
+	       if (fsl_esdhc_initialize(bis, &usdhc_cfg[i]))
+			printf("Warning: failed to initialize mmc dev %d\n", i);
+	}
 
-	usdhc_cfg[0].sdhc_clk = mxc_get_clock(MXC_ESDHC3_CLK);
-	return fsl_esdhc_initialize(bis, &usdhc_cfg[0]);
+	return 0;
 }
 #endif
 
diff --git a/include/configs/mx6qsabre_common.h b/include/configs/mx6qsabre_common.h
index 9a25480..bd2fb10 100644
--- a/include/configs/mx6qsabre_common.h
+++ b/include/configs/mx6qsabre_common.h
@@ -41,7 +41,6 @@
 #define CONFIG_FSL_ESDHC
 #define CONFIG_FSL_USDHC
 #define CONFIG_SYS_FSL_ESDHC_ADDR      0
-#define CONFIG_SYS_FSL_USDHC_NUM       2
 
 #define CONFIG_MMC
 #define CONFIG_CMD_MMC
@@ -166,7 +165,6 @@
 
 #if defined(CONFIG_ENV_IS_IN_MMC)
 #define CONFIG_ENV_OFFSET		(6 * 64 * 1024)
-#define CONFIG_SYS_MMC_ENV_DEV		0
 #endif
 
 #define CONFIG_OF_LIBFDT
diff --git a/include/configs/mx6qsabreauto.h b/include/configs/mx6qsabreauto.h
index 760f3ce..f1ff201 100644
--- a/include/configs/mx6qsabreauto.h
+++ b/include/configs/mx6qsabreauto.h
@@ -20,4 +20,9 @@
 
 #include "mx6qsabre_common.h"
 
+#define CONFIG_SYS_FSL_USDHC_NUM	2
+#if defined(CONFIG_ENV_IS_IN_MMC)
+#define CONFIG_SYS_MMC_ENV_DEV		0
+#endif
+
 #endif                         /* __MX6QSABREAUTO_CONFIG_H */
diff --git a/include/configs/mx6qsabresd.h b/include/configs/mx6qsabresd.h
index 771d129..227d410 100644
--- a/include/configs/mx6qsabresd.h
+++ b/include/configs/mx6qsabresd.h
@@ -25,4 +25,9 @@
 
 #include "mx6qsabre_common.h"
 
+#define CONFIG_SYS_FSL_USDHC_NUM	3
+#if defined(CONFIG_ENV_IS_IN_MMC)
+#define CONFIG_SYS_MMC_ENV_DEV		1
+#endif
+
 #endif                         /* __MX6QSABRESD_CONFIG_H */
-- 
1.7.9.5

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

* [U-Boot] [PATCH 3/3] mx6qsabresd: use on-board eMMC to store environment
  2012-12-31  0:14 [U-Boot] [PATCH 0/3] Enable eMMC on mx6qsabresd board Shawn Guo
  2012-12-31  0:14 ` [U-Boot] [PATCH 1/3] fsl_esdhc: add MMC_MODE_HC host_caps Shawn Guo
  2012-12-31  0:14 ` [U-Boot] [PATCH 2/3] mx6qsabresd: add usdhc2 and usdhc4 support Shawn Guo
@ 2012-12-31  0:15 ` Shawn Guo
  2013-01-05 17:01   ` Stefano Babic
  2012-12-31  0:22 ` [U-Boot] [PATCH 0/3] Enable eMMC on mx6qsabresd board Shawn Guo
  3 siblings, 1 reply; 12+ messages in thread
From: Shawn Guo @ 2012-12-31  0:15 UTC (permalink / raw)
  To: u-boot

It makes more sense to use on-board eMMC to store environments.  The
boot partition 1 is selected by default.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
---
 include/configs/mx6qsabresd.h |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/include/configs/mx6qsabresd.h b/include/configs/mx6qsabresd.h
index 227d410..a1d9285 100644
--- a/include/configs/mx6qsabresd.h
+++ b/include/configs/mx6qsabresd.h
@@ -27,7 +27,8 @@
 
 #define CONFIG_SYS_FSL_USDHC_NUM	3
 #if defined(CONFIG_ENV_IS_IN_MMC)
-#define CONFIG_SYS_MMC_ENV_DEV		1
+#define CONFIG_SYS_MMC_ENV_DEV		2	/* eMMC/uSDHC4 */
+#define CONFIG_SYS_MMC_ENV_PART		1	/* Boot partition 1 */
 #endif
 
 #endif                         /* __MX6QSABRESD_CONFIG_H */
-- 
1.7.9.5

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

* [U-Boot] [PATCH 0/3] Enable eMMC on mx6qsabresd board
  2012-12-31  0:14 [U-Boot] [PATCH 0/3] Enable eMMC on mx6qsabresd board Shawn Guo
                   ` (2 preceding siblings ...)
  2012-12-31  0:15 ` [U-Boot] [PATCH 3/3] mx6qsabresd: use on-board eMMC to store environment Shawn Guo
@ 2012-12-31  0:22 ` Shawn Guo
  2012-12-31  2:32   ` Fabio Estevam
  2013-01-04  9:08   ` Stefano Babic
  3 siblings, 2 replies; 12+ messages in thread
From: Shawn Guo @ 2012-12-31  0:22 UTC (permalink / raw)
  To: u-boot

On Mon, Dec 31, 2012 at 08:14:57AM +0800, Shawn Guo wrote:
> The series is to enable the use of eMMC on mx6qsabresd board, so that
> we do not need to carry an external card to boot the board.  The DDR
> mode support for eMMC is not included.
> 
> Shawn Guo (3):
>   fsl_esdhc: add MMC_MODE_HC host_caps
>   mx6qsabresd: add usdhc2 and usdhc4 support
>   mx6qsabresd: use on-board eMMC to store environment
> 
Forgot adding [U-Boot] prefix for these patches.  Will do next time.

Shawn

>  board/freescale/mx6qsabresd/mx6qsabresd.c |   80 ++++++++++++++++++++++++++---
>  drivers/mmc/fsl_esdhc.c                   |    3 +-
>  include/configs/mx6qsabre_common.h        |    2 -
>  include/configs/mx6qsabreauto.h           |    5 ++
>  include/configs/mx6qsabresd.h             |    6 +++
>  5 files changed, 87 insertions(+), 9 deletions(-)
> 
> -- 
> 1.7.9.5
> 
> 

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

* [U-Boot] [PATCH 0/3] Enable eMMC on mx6qsabresd board
  2012-12-31  0:22 ` [U-Boot] [PATCH 0/3] Enable eMMC on mx6qsabresd board Shawn Guo
@ 2012-12-31  2:32   ` Fabio Estevam
  2012-12-31  3:54     ` Shawn Guo
  2013-01-04  9:08   ` Stefano Babic
  1 sibling, 1 reply; 12+ messages in thread
From: Fabio Estevam @ 2012-12-31  2:32 UTC (permalink / raw)
  To: u-boot

On Sun, Dec 30, 2012 at 10:22 PM, Shawn Guo <shawn.guo@linaro.org> wrote:
> On Mon, Dec 31, 2012 at 08:14:57AM +0800, Shawn Guo wrote:
>> The series is to enable the use of eMMC on mx6qsabresd board, so that
>> we do not need to carry an external card to boot the board.  The DDR
>> mode support for eMMC is not included.
>>
>> Shawn Guo (3):
>>   fsl_esdhc: add MMC_MODE_HC host_caps
>>   mx6qsabresd: add usdhc2 and usdhc4 support
>>   mx6qsabresd: use on-board eMMC to store environment
>>
> Forgot adding [U-Boot] prefix for these patches.  Will do next time.

No need to add [U-Boot] prefix. This gets added by the mailing list.

Regards,

Fabio Estevam

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

* [U-Boot] [PATCH 0/3] Enable eMMC on mx6qsabresd board
  2012-12-31  2:32   ` Fabio Estevam
@ 2012-12-31  3:54     ` Shawn Guo
  0 siblings, 0 replies; 12+ messages in thread
From: Shawn Guo @ 2012-12-31  3:54 UTC (permalink / raw)
  To: u-boot

On Mon, Dec 31, 2012 at 12:32:12AM -0200, Fabio Estevam wrote:
> No need to add [U-Boot] prefix. This gets added by the mailing list.
> 
Ah, right.  After checking the list from another mailbox, I have seen
the prefix.

Shawn

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

* [U-Boot] [PATCH 1/3] fsl_esdhc: add MMC_MODE_HC host_caps
  2012-12-31  0:14 ` [U-Boot] [PATCH 1/3] fsl_esdhc: add MMC_MODE_HC host_caps Shawn Guo
@ 2012-12-31  3:59   ` Shawn Guo
  2013-01-05 16:59   ` Stefano Babic
  1 sibling, 0 replies; 12+ messages in thread
From: Shawn Guo @ 2012-12-31  3:59 UTC (permalink / raw)
  To: u-boot

On Mon, Dec 31, 2012 at 08:14:58AM +0800, Shawn Guo wrote:
> All esdhc variants we know should support high capacity MMC cards,
> so let's add MMC_MODE_HC host_caps unconditionally to support those
> MMC cards (capacity > 2 GB).
> 
> Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
> ---
>  drivers/mmc/fsl_esdhc.c |    3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c
> index e93e38a..29f3122 100644
> --- a/drivers/mmc/fsl_esdhc.c
> +++ b/drivers/mmc/fsl_esdhc.c
> @@ -262,6 +262,7 @@ static void check_and_invalidate_dcache_range
>  	unsigned end = start+size ;
>  	invalidate_dcache_range(start, end);
>  }
> +

This is an accident coding style cleanup which I forgot recovering.
Hope maintainer is fine with it, otherwise I can resend the patch to
keep it unchanged.

Shawn

>  /*
>   * Sends a command out on the bus.  Takes the mmc pointer,
>   * a command pointer, and an optional data pointer.
> @@ -577,7 +578,7 @@ int fsl_esdhc_initialize(bd_t *bis, struct fsl_esdhc_cfg *cfg)
>  		return -1;
>  	}
>  
> -	mmc->host_caps = MMC_MODE_4BIT | MMC_MODE_8BIT;
> +	mmc->host_caps = MMC_MODE_4BIT | MMC_MODE_8BIT | MMC_MODE_HC;
>  
>  	if (caps & ESDHC_HOSTCAPBLT_HSS)
>  		mmc->host_caps |= MMC_MODE_HS_52MHz | MMC_MODE_HS;
> -- 
> 1.7.9.5
> 
> 

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

* [U-Boot] [PATCH 0/3] Enable eMMC on mx6qsabresd board
  2012-12-31  0:22 ` [U-Boot] [PATCH 0/3] Enable eMMC on mx6qsabresd board Shawn Guo
  2012-12-31  2:32   ` Fabio Estevam
@ 2013-01-04  9:08   ` Stefano Babic
  1 sibling, 0 replies; 12+ messages in thread
From: Stefano Babic @ 2013-01-04  9:08 UTC (permalink / raw)
  To: u-boot

On 31/12/2012 01:22, Shawn Guo wrote:
> On Mon, Dec 31, 2012 at 08:14:57AM +0800, Shawn Guo wrote:
>> The series is to enable the use of eMMC on mx6qsabresd board, so that
>> we do not need to carry an external card to boot the board.  The DDR
>> mode support for eMMC is not included.
>>

Hi Shawn,

>> Shawn Guo (3):
>>   fsl_esdhc: add MMC_MODE_HC host_caps
>>   mx6qsabresd: add usdhc2 and usdhc4 support
>>   mx6qsabresd: use on-board eMMC to store environment
>>
> Forgot adding [U-Boot] prefix for these patches.  Will do next time.

Never mind - and nobody adds [U-Boot] to a patch. I think it is added
automatically by the mailing list server.

Best regards,
Stefano Babic

-- 
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================

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

* [U-Boot] [PATCH 1/3] fsl_esdhc: add MMC_MODE_HC host_caps
  2012-12-31  0:14 ` [U-Boot] [PATCH 1/3] fsl_esdhc: add MMC_MODE_HC host_caps Shawn Guo
  2012-12-31  3:59   ` Shawn Guo
@ 2013-01-05 16:59   ` Stefano Babic
  1 sibling, 0 replies; 12+ messages in thread
From: Stefano Babic @ 2013-01-05 16:59 UTC (permalink / raw)
  To: u-boot

On 31/12/2012 01:14, Shawn Guo wrote:
> All esdhc variants we know should support high capacity MMC cards,
> so let's add MMC_MODE_HC host_caps unconditionally to support those
> MMC cards (capacity > 2 GB).
> 
> Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
> ---
>  drivers/mmc/fsl_esdhc.c |    3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c
> index e93e38a..29f3122 100644
> --- a/drivers/mmc/fsl_esdhc.c
> +++ b/drivers/mmc/fsl_esdhc.c
> @@ -262,6 +262,7 @@ static void check_and_invalidate_dcache_range
>  	unsigned end = start+size ;
>  	invalidate_dcache_range(start, end);
>  }
> +

I drop myself this from the commit.

>  /*
>   * Sends a command out on the bus.  Takes the mmc pointer,
>   * a command pointer, and an optional data pointer.
> @@ -577,7 +578,7 @@ int fsl_esdhc_initialize(bd_t *bis, struct fsl_esdhc_cfg *cfg)
>  		return -1;
>  	}
>  
> -	mmc->host_caps = MMC_MODE_4BIT | MMC_MODE_8BIT;
> +	mmc->host_caps = MMC_MODE_4BIT | MMC_MODE_8BIT | MMC_MODE_HC;
>  
>  	if (caps & ESDHC_HOSTCAPBLT_HSS)
>  		mmc->host_caps |= MMC_MODE_HS_52MHz | MMC_MODE_HS;
> 

Applied to u-boot-imx, thanks.

Best regards,
Stefano Babic

-- 
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================

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

* [U-Boot] [PATCH 3/3] mx6qsabresd: use on-board eMMC to store environment
  2012-12-31  0:15 ` [U-Boot] [PATCH 3/3] mx6qsabresd: use on-board eMMC to store environment Shawn Guo
@ 2013-01-05 17:01   ` Stefano Babic
  0 siblings, 0 replies; 12+ messages in thread
From: Stefano Babic @ 2013-01-05 17:01 UTC (permalink / raw)
  To: u-boot

On 31/12/2012 01:15, Shawn Guo wrote:
> It makes more sense to use on-board eMMC to store environments.  The
> boot partition 1 is selected by default.
> 
> Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
> ---

Applied to u-boot-imx, thanks.

Best regards,
Stefano Babic



-- 
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================

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

* [U-Boot] [PATCH 2/3] mx6qsabresd: add usdhc2 and usdhc4 support
  2012-12-31  0:14 ` [U-Boot] [PATCH 2/3] mx6qsabresd: add usdhc2 and usdhc4 support Shawn Guo
@ 2013-01-05 17:02   ` Stefano Babic
  0 siblings, 0 replies; 12+ messages in thread
From: Stefano Babic @ 2013-01-05 17:02 UTC (permalink / raw)
  To: u-boot

On 31/12/2012 01:14, Shawn Guo wrote:
> The on-board number of available usdhc devices is something board
> specific.  The patch moves CONFIG_SYS_FSL_USDHC_NUM out of
> mx6qsabre_common.h and adds usdhc2 and usdhc4 support for mx6qsabresd
> board.
> 
> To keep the default mmc device for environment same as before (usdhc3),
> it moves CONFIG_SYS_MMC_ENV_DEV out of mx6qsabre_common.h and changes
> it to 1 for mx6qsabresd.
> 
> Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
> ---

Applied to u-boot-imx, thanks.

Best regards,
Stefano Babic


-- 
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================

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

end of thread, other threads:[~2013-01-05 17:02 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-31  0:14 [U-Boot] [PATCH 0/3] Enable eMMC on mx6qsabresd board Shawn Guo
2012-12-31  0:14 ` [U-Boot] [PATCH 1/3] fsl_esdhc: add MMC_MODE_HC host_caps Shawn Guo
2012-12-31  3:59   ` Shawn Guo
2013-01-05 16:59   ` Stefano Babic
2012-12-31  0:14 ` [U-Boot] [PATCH 2/3] mx6qsabresd: add usdhc2 and usdhc4 support Shawn Guo
2013-01-05 17:02   ` Stefano Babic
2012-12-31  0:15 ` [U-Boot] [PATCH 3/3] mx6qsabresd: use on-board eMMC to store environment Shawn Guo
2013-01-05 17:01   ` Stefano Babic
2012-12-31  0:22 ` [U-Boot] [PATCH 0/3] Enable eMMC on mx6qsabresd board Shawn Guo
2012-12-31  2:32   ` Fabio Estevam
2012-12-31  3:54     ` Shawn Guo
2013-01-04  9:08   ` Stefano Babic

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.