diff options
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/host/mmci.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/mmc/host/mmci.c b/drivers/mmc/host/mmci.c index 57cfd5f7cb24..aa26e810b7ad 100644 --- a/drivers/mmc/host/mmci.c +++ b/drivers/mmc/host/mmci.c | |||
@@ -1392,6 +1392,17 @@ static void mmci_dt_populate_generic_pdata(struct device_node *np, | |||
1392 | { | 1392 | { |
1393 | int bus_width = 0; | 1393 | int bus_width = 0; |
1394 | 1394 | ||
1395 | if (of_get_property(np, "st,sig-dir-dat0", NULL)) | ||
1396 | pdata->sigdir |= MCI_ST_DATA0DIREN; | ||
1397 | if (of_get_property(np, "st,sig-dir-dat2", NULL)) | ||
1398 | pdata->sigdir |= MCI_ST_DATA2DIREN; | ||
1399 | if (of_get_property(np, "st,sig-dir-dat31", NULL)) | ||
1400 | pdata->sigdir |= MCI_ST_DATA31DIREN; | ||
1401 | if (of_get_property(np, "st,sig-dir-dat74", NULL)) | ||
1402 | pdata->sigdir |= MCI_ST_DATA74DIREN; | ||
1403 | if (of_get_property(np, "st,sig-dir-cmd", NULL)) | ||
1404 | pdata->sigdir |= MCI_ST_CMDDIREN; | ||
1405 | |||
1395 | pdata->gpio_wp = of_get_named_gpio(np, "wp-gpios", 0); | 1406 | pdata->gpio_wp = of_get_named_gpio(np, "wp-gpios", 0); |
1396 | pdata->gpio_cd = of_get_named_gpio(np, "cd-gpios", 0); | 1407 | pdata->gpio_cd = of_get_named_gpio(np, "cd-gpios", 0); |
1397 | 1408 | ||