mirror of
https://github.com/hardkernel/kernel_common_drivers.git
synced 2026-06-25 12:03:48 +09:00
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:
@@ -352,6 +352,7 @@
|
||||
clock-names = "core", "mux0", "mux1",
|
||||
"clkin0", "clkin1";
|
||||
mmc_debug_flag;
|
||||
auto-clock-sdio;
|
||||
resets = <&reset RESET_SD_EMMC_A>;
|
||||
};
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user