mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
mmc: sdhci: get voltage from sdhc host
We use host->ocr_mask to hold the voltage get from device-tree node, In case host->ocr_mask was available, we use host->ocr_mask as the final available voltage can be used by MMC/SD/SDIO card. Signed-off-by: Haijun Zhang <[email protected]> Reviewed-by: Anton Vorontsov <[email protected]> Signed-off-by: Chris Ball <[email protected]>
This commit is contained in:
parent
6e9e318b30
commit
c0b887b66c
2 changed files with 4 additions and 0 deletions
|
|
@ -3119,6 +3119,9 @@ int sdhci_add_host(struct sdhci_host *host)
|
|||
SDHCI_MAX_CURRENT_MULTIPLIER;
|
||||
}
|
||||
|
||||
if (host->ocr_mask)
|
||||
ocr_avail = host->ocr_mask;
|
||||
|
||||
mmc->ocr_avail = ocr_avail;
|
||||
mmc->ocr_avail_sdio = ocr_avail;
|
||||
if (host->ocr_avail_sdio)
|
||||
|
|
|
|||
Loading…
Reference in a new issue