projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4bc5e19
)
drivers: mmc: omap_hsmmc: request cd and wp gpios when DM_MMC is defined
author
Mugunthan V N
<mugunthanvnm@ti.com>
Mon, 4 Apr 2016 11:58:01 +0000
(17:28 +0530)
committer
Tom Rini
<trini@konsulko.com>
Mon, 18 Apr 2016 16:29:16 +0000
(12:29 -0400)
Add request gpio for CD and WP gpios, so that the gpio can be
used for the respective purposes.
Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
drivers/mmc/omap_hsmmc.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/omap_hsmmc.c
b/drivers/mmc/omap_hsmmc.c
index 1071314157779468eddebb12f7edb789b7d133c4..85a832bd420f6d706df9912b0eb3c161915c2469 100644
(file)
--- a/
drivers/mmc/omap_hsmmc.c
+++ b/
drivers/mmc/omap_hsmmc.c
@@
-820,6
+820,11
@@
static int omap_hsmmc_probe(struct udevice *dev)
if (mmc == NULL)
return -1;
+#ifdef OMAP_HSMMC_USE_GPIO
+ gpio_request_by_name(dev, "cd-gpios", 0, &priv->cd_gpio, GPIOD_IS_IN);
+ gpio_request_by_name(dev, "wp-gpios", 0, &priv->wp_gpio, GPIOD_IS_IN);
+#endif
+
upriv->mmc = mmc;
return 0;