emmc: clean emmc reg val for probe [1/1]

PD#SWPL-2286

Problem:
emmc response crc error in emmc init.

Solution:
clean emmc reg val from uboot to kernel.

Verify:
w400

Change-Id: I6a4763187f18e9e284c887c5c788f3a88c8548ff
Signed-off-by: Nan Li <nan.li@amlogic.com>
This commit is contained in:
Nan Li
2018-11-20 11:43:26 +08:00
committed by Dongjin Kim
parent 9a769bcb49
commit 9ffc4e8fdf
2 changed files with 5 additions and 0 deletions

View File

@@ -1381,6 +1381,8 @@ static int meson_mmc_clk_init(struct amlsd_host *host)
u32 vconf = 0;
struct sd_emmc_config *pconf = (struct sd_emmc_config *)&vconf;
writel(0, host->base + SD_EMMC_ADJUST);
writel(0, host->base + SD_EMMC_DELAY);
writel(0, host->base + SD_EMMC_CLOCK);
ret = aml_emmc_clktree_init(host);
if (ret)

View File

@@ -117,6 +117,9 @@ int meson_mmc_clk_init_v3(struct amlsd_host *host)
struct sd_emmc_config *pconf = (struct sd_emmc_config *)&vconf;
struct mmc_phase *init = &(host->data->sdmmc.init);
writel(0, host->base + SD_EMMC_ADJUST_V3);
writel(0, host->base + SD_EMMC_DELAY1_V3);
writel(0, host->base + SD_EMMC_DELAY2_V3);
writel(0, host->base + SD_EMMC_CLOCK_V3);
#ifndef SD_EMMC_CLK_CTRL
ret = aml_emmc_clktree_init(host);