mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
mmc: dw_mmc: Add more capabilities field
This patch adds another capabilities field for MMC_CAPS2_XXX. Signed-off-by: Seungwon Jeon <[email protected]> Signed-off-by: Chris Ball <[email protected]>
This commit is contained in:
parent
6fe8890d02
commit
4f408cc67a
2 changed files with 7 additions and 0 deletions
|
|
@ -1681,6 +1681,12 @@ static int __init dw_mci_init_slot(struct dw_mci *host, unsigned int id)
|
|||
else
|
||||
mmc->caps = 0;
|
||||
|
||||
if (host->pdata->caps2)
|
||||
mmc->caps2 = host->pdata->caps2;
|
||||
else
|
||||
mmc->caps2 = 0;
|
||||
|
||||
|
||||
if (host->pdata->get_bus_wd)
|
||||
if (host->pdata->get_bus_wd(slot->id) >= 4)
|
||||
mmc->caps |= MMC_CAP_4_BIT_DATA;
|
||||
|
|
|
|||
Loading…
Reference in a new issue