sdio: config autoclock for c3. [1/1]

PD#SWPL-115224

Problem:
don't config auto clock

Solution:
config auto clock

Verify:
c3

Change-Id: I5479d9c58e8365655b89d9b98a6213a74002755b
Signed-off-by: Long <long.yu@amlogic.com>
This commit is contained in:
Long
2023-03-14 19:39:14 +08:00
committed by gerrit autosubmit
parent 58dce34739
commit 5ec6ff86a3
3 changed files with 9 additions and 3 deletions
+1
View File
@@ -352,6 +352,7 @@
clock-names = "core", "mux0", "mux1",
"clkin0", "clkin1";
mmc_debug_flag;
auto-clock-sdio;
resets = <&reset RESET_SD_EMMC_A>;
};
+7 -2
View File
@@ -165,6 +165,11 @@ int amlogic_of_parse(struct mmc_host *host)
else
mmc->run_pxp_flag = 0;
if (device_property_read_bool(dev, "auto-clock-sdio"))
mmc->auto_clk = true;
else
mmc->auto_clk = false;
return 0;
}
@@ -521,8 +526,8 @@ static int no_pxp_clk_set(struct meson_host *host, struct mmc_ios *ios,
}
src_clk = host->clk[1];
cfg |= CFG_AUTO_CLK;
/* sdio sdr104 set clk always on default */
if (aml_card_type_sdio(host))
/* sdio set clk always on default */
if (aml_card_type_sdio(host) && !host->auto_clk)
cfg &= ~CFG_AUTO_CLK;
break;
case MMC_TIMING_LEGACY:
+1 -1
View File
@@ -185,7 +185,7 @@ struct meson_host {
struct aml_tuning_para para;
int run_pxp_flag;
int nwr_cnt;
bool first_init_flag;
bool auto_clk;
bool ignore_desc_busy;
bool use_intf3_tuning;
bool src_clk_cfg_done;