mmc: Optimize the configuration of host driver. [1/1]

PD#SWPL-176339

Problem:
Enable configs of host driver.

Solution:
Enable configs:
MMC_CAP2_NO_PRESCAN_POWERUP
MMC_CAP2_FULL_PWR_CYCLE
post-power-on-delay-ms: 1

Verify:
S7_BH201

Change-Id: Ief422f439e67ccaec2b281dbb70b2b8f3b529987
Signed-off-by: jinbiao <jinbiao.ou@amlogic.com>
This commit is contained in:
jinbiao
2024-07-05 05:08:11 +00:00
committed by gerrit autosubmit
parent ce2aff7df5
commit bbb6bfadbb
2 changed files with 13 additions and 0 deletions
@@ -846,6 +846,9 @@
tx_delay = <17>;
src_clk_rate = <1152000000>;
cap-mmc-crypto;
no-prescan-powerup;
full-pwr-cycle;
post-power-on-delay-ms = <1>;
// nwr_cnt = <0>;
// resets = <&reset RESET_SD_EMMC_C>;
};
+10
View File
@@ -197,6 +197,16 @@ int amlogic_of_parse(struct mmc_host *host)
mmc->sd_clk_sample = true;
else
mmc->sd_clk_sample = false;
if (device_property_read_bool(dev, "wait-while-busy"))
host->caps |= MMC_CAP_WAIT_WHILE_BUSY;
if (device_property_read_bool(dev, "no-prescan-powerup"))
host->caps2 |= MMC_CAP2_NO_PRESCAN_POWERUP;
if (device_property_read_bool(dev, "full-pwr-cycle"))
host->caps2 |= MMC_CAP2_FULL_PWR_CYCLE;
/* Get the wifi model that needs to be optimized */
if (device_property_read_u32(dev, "vendor-id", &mmc->vendor_id) < 0)
mmc->vendor_id = 0;