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)
committerJianxin Pan <jianxin.pan@amlogic.com>
Fri, 1 Mar 2019 02:54:40 +0000 (18:54 -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 802b590..5fa4284 100644 (file)
@@ -374,7 +374,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;