mmc: fsl_esdhc: enable dat[4:7] for eMMC4.5 Adapter Card
authorYangbo Lu <yangbo.lu@freescale.com>
Thu, 17 Sep 2015 02:27:12 +0000 (10:27 +0800)
committerYork Sun <yorksun@freescale.com>
Mon, 2 Nov 2015 16:49:51 +0000 (08:49 -0800)
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>
Reviewed-by: York Sun <yorksun@freescale.com>
board/freescale/common/qixis.h
drivers/mmc/fsl_esdhc.c

index 51ce9c328de10e8d21eb1741307bf37405b0c8f4..450cd0ddbd553b4a20b8a8ddb1e9dd751abee7b2 100644 (file)
@@ -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
index f36b794969b45373ef1c3b3a0e9a9b6a7306afc1..5c20627c1c18da0c99a8dbc1db2bf856223732d2 100644 (file)
@@ -748,6 +748,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;