summaryrefslogtreecommitdiff
path: root/drivers/mmc/arm_pl180_mmci.h
diff options
context:
space:
mode:
authorPatrice Chotard <patrice.chotard@st.com>2017-10-23 11:57:34 +0300
committerTom Rini <trini@konsulko.com>2017-11-17 15:44:13 +0300
commit5829fe2d59d8c088dadc43dedb36a657d791970c (patch)
tree1c2dc0e3639b9b4dfa6ebe8176184ebdfbc16841 /drivers/mmc/arm_pl180_mmci.h
parent5f256fe71dd064063f8390926922085c2c7c14fc (diff)
downloadu-boot-5829fe2d59d8c088dadc43dedb36a657d791970c.tar.xz
mmc: arm_pl180_mmci: add .getcd callback
Add .getcd callback to check is MMC card is present Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
Diffstat (limited to 'drivers/mmc/arm_pl180_mmci.h')
-rw-r--r--drivers/mmc/arm_pl180_mmci.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/mmc/arm_pl180_mmci.h b/drivers/mmc/arm_pl180_mmci.h
index b935288704..9df4b75470 100644
--- a/drivers/mmc/arm_pl180_mmci.h
+++ b/drivers/mmc/arm_pl180_mmci.h
@@ -191,6 +191,10 @@ struct pl180_mmc_host {
unsigned int pwr_init;
int version2;
struct mmc_config cfg;
+#ifdef CONFIG_DM_MMC
+ struct gpio_desc cd_gpio;
+ bool cd_inverted;
+#endif
};
int arm_pl180_mmci_init(struct pl180_mmc_host *host, struct mmc **mmc);