Commit 451931ea authored by T Karthik Reddy's avatar T Karthik Reddy Committed by Peng Fan
Browse files

mmc: sdhci: Read cd-gpio from devicetree

This patch reads cd-gpio property from devicetree
Signed-off-by: default avatarT Karthik Reddy <>
Signed-off-by: default avatarMichal Simek <>
Reviewed-by: Peng Fan's avatarPeng Fan <>
parent 86a94e7b
......@@ -590,6 +590,12 @@ static int sdhci_set_ios(struct mmc *mmc)
static int sdhci_init(struct mmc *mmc)
struct sdhci_host *host = mmc->priv;
struct udevice *dev = mmc->dev;
gpio_request_by_name(dev, "cd-gpio", 0,
&host->cd_gpio, GPIOD_IS_IN);
sdhci_reset(host, SDHCI_RESET_ALL);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment