emmc: Modify delay of command line to 1/4 command window [1/1]
authorRuixuan Li <ruixuan.li@amlogic.com>
Wed, 31 Oct 2018 06:41:58 +0000 (14:41 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Tue, 6 Nov 2018 11:17:40 +0000 (04:17 -0700)
PD#SWPL-1184

Problem:
emmc data crc error

Solution:
Modify delay of command line

Verify:
A113d_s400

Change-Id: I7211da9da75569aebaf0c2790e3134e88a6f3077
Signed-off-by: Ruixuan Li <ruixuan.li@amlogic.com>
drivers/amlogic/mmc/aml_sd_emmc_v3.c

index a651193..fac60fb 100644 (file)
@@ -918,7 +918,7 @@ static unsigned int get_emmc_cmd_win(struct mmc_host *mmc)
                cur_size = -1;
        }
        delay2 &= ~(0x3f << 24);
-       delay2 |= ((best_start + best_size / 2) << 24);
+       delay2 |= ((best_start + best_size / 4) << 24);
        writel(delay2, host->base + SD_EMMC_DELAY2_V3);
        emmc_eyetest_log(mmc, 9);
        return max;