mmc: host: rk_sdmmc:

Add rk32 mmc controller with cap HW_RESET support, default N.
This commit is contained in:
lintao 2014-05-06 15:19:24 +08:00
parent 36bc2f8d00
commit 55bf73c13b
3 changed files with 6 additions and 1 deletions

View File

@ -82,6 +82,8 @@ Required Properties:
* vmmc-supply: The phandle to the regulator to use for vmmc. If this is
specified we'll defer probe until we can find this regulator.
* poll-hw-reset: need hardware reset for some eMMCs with VCCQ always supplied when powered up
to enter idle state.
Example: adding device info in dtsi file

View File

@ -211,7 +211,8 @@ &emmc {
bootpart-no-access;
ignore-pm-notify;
keep-power-in-suspend;
status = "okay";
//poll-hw-reset
status = "okay";
};
&sdmmc {

View File

@ -2761,6 +2761,8 @@ static int dw_mci_init_slot(struct dw_mci *host, unsigned int id)
mmc->caps |= MMC_CAP_POWER_OFF_CARD;
if (of_find_property(host->dev->of_node, "cap-sdio-irq", NULL))
mmc->caps |= MMC_CAP_SDIO_IRQ;
if (of_find_property(host->dev->of_node, "poll-hw-reset", NULL))
mmc->caps |= MMC_CAP_HW_RESET;
if (of_find_property(host->dev->of_node, "full-pwr-cycle", NULL))
mmc->caps2 |= MMC_CAP2_FULL_PWR_CYCLE;
if (of_find_property(host->dev->of_node, "keep-power-in-suspend", NULL))