sdio: set sdio hs mode co_phase [1/1]
authorNan Li <nan.li@amlogic.com>
Tue, 26 Feb 2019 02:19:07 +0000 (10:19 +0800)
committerLuan Yuan <luan.yuan@amlogic.com>
Mon, 1 Apr 2019 12:52:32 +0000 (20:52 +0800)
PD#SWPL-5152

Problem:
Setup time in sdio highspeed mode of g12a is
inconsistent with the protocol standard.

Solution:
set co_phase = 2.

Verify:
u212

Change-Id: Ifc4576ce83c810c2ae5cbd57fe53d12959a9acca
Signed-off-by: Nan Li <nan.li@amlogic.com>
drivers/amlogic/mmc/aml_sd_emmc_v3.c

index db5d282..b133554 100644 (file)
@@ -343,7 +343,8 @@ static void aml_sd_emmc_set_timing_v3(struct amlsd_platform *pdata,
                clkc->core_phase = para->hs2.core_phase;
                clkc->tx_phase = para->hs2.tx_phase;
        } else if (timing == MMC_TIMING_SD_HS) {
-               if (aml_card_type_non_sdio(pdata))
+               if (aml_card_type_non_sdio(pdata)
+                       || (host->data->chip_type == MMC_CHIP_G12A))
                        clkc->core_phase = para->sd_hs.core_phase;
                if (pdata->calc_f) {
                        clkc->core_phase = para->calc.core_phase;