public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [v2, 1/4] mmc: fsl_esdhc: enable dat[4:7] for eMMC4.5 Adapter Card
@ 2015-09-17  2:27 Yangbo Lu
  2015-11-02 21:02 ` York Sun
  0 siblings, 1 reply; 2+ messages in thread
From: Yangbo Lu @ 2015-09-17  2:27 UTC (permalink / raw)
  To: u-boot

If adapter card type identification is supported for platform, we would
enable dat[4:7] for eMMC4.5 Adapter Card.

Signed-off-by: Yangbo Lu <yangbo.lu@freescale.com>
---
Changes for v2:
	- Modified the commit message
	- Added a patch enabling EVDD automatic control
---
 board/freescale/common/qixis.h | 2 ++
 drivers/mmc/fsl_esdhc.c        | 3 +++
 2 files changed, 5 insertions(+)

diff --git a/board/freescale/common/qixis.h b/board/freescale/common/qixis.h
index 51ce9c3..450cd0d 100644
--- a/board/freescale/common/qixis.h
+++ b/board/freescale/common/qixis.h
@@ -127,6 +127,8 @@ void qixis_write_i2c(unsigned int reg, u8 value);
 #define QIXIS_ESDHC_NO_ADAPTER                  0x7	/* No Card is Present*/
 #define QIXIS_SDCLKIN		0x08
 #define QIXIS_SDCLKOUT		0x02
+#define QIXIS_DAT5_6_7		0X02
+#define QIXIS_DAT4		0X01
 #endif
 
 #endif
diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c
index 0b37002..639ec02 100644
--- a/drivers/mmc/fsl_esdhc.c
+++ b/drivers/mmc/fsl_esdhc.c
@@ -747,6 +747,9 @@ void mmc_adapter_card_type_ident(void)
 
 	switch (card_id) {
 	case QIXIS_ESDHC_ADAPTER_TYPE_EMMC45:
+		value = QIXIS_READ(brdcfg[5]);
+		value |= (QIXIS_DAT4 | QIXIS_DAT5_6_7);
+		QIXIS_WRITE(brdcfg[5], value);
 		break;
 	case QIXIS_ESDHC_ADAPTER_TYPE_SDMMC_LEGACY:
 		break;
-- 
2.1.0.27.g96db324

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

* [U-Boot] [v2, 1/4] mmc: fsl_esdhc: enable dat[4:7] for eMMC4.5 Adapter Card
  2015-09-17  2:27 [U-Boot] [v2, 1/4] mmc: fsl_esdhc: enable dat[4:7] for eMMC4.5 Adapter Card Yangbo Lu
@ 2015-11-02 21:02 ` York Sun
  0 siblings, 0 replies; 2+ messages in thread
From: York Sun @ 2015-11-02 21:02 UTC (permalink / raw)
  To: u-boot



On 09/16/2015 07:27 PM, Yangbo Lu wrote:
> If adapter card type identification is supported for platform, we would
> enable dat[4:7] for eMMC4.5 Adapter Card.
> 
> Signed-off-by: Yangbo Lu <yangbo.lu@freescale.com>
> ---
> Changes for v2:
> 	- Modified the commit message
> 	- Added a patch enabling EVDD automatic control

Applied to u-boot-mpc85xx, awaiting upstream. Thanks.

York

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

end of thread, other threads:[~2015-11-02 21:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-17  2:27 [U-Boot] [v2, 1/4] mmc: fsl_esdhc: enable dat[4:7] for eMMC4.5 Adapter Card Yangbo Lu
2015-11-02 21:02 ` York Sun

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