mirror of
https://github.com/hardkernel/kernel_common_drivers.git
synced 2026-06-25 12:03:48 +09:00
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:
committed by
gerrit autosubmit
parent
ce2aff7df5
commit
bbb6bfadbb
@@ -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>;
|
||||
};
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user