emmc: Modify delay of command line to 1/4 command window [1/1]

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>
This commit is contained in:
Ruixuan Li
2018-10-31 14:41:58 +08:00
committed by Jianxin Pan
parent 336a642594
commit 9d19ae4ae8

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