sdio: set sdio hs mode co_phase [1/1]

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>
This commit is contained in:
Nan Li
2019-02-26 10:19:07 +08:00
committed by Luke Go
parent c1c5ab56e3
commit f64eb7fe5e

View 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;