diff options
author | Patrice Chotard <patrice.chotard@st.com> | 2017-10-23 10:57:34 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-11-17 07:44:13 -0500 |
commit | 5829fe2d59d8c088dadc43dedb36a657d791970c (patch) | |
tree | 1c2dc0e3639b9b4dfa6ebe8176184ebdfbc16841 /drivers/mmc/arm_pl180_mmci.h | |
parent | 5f256fe71dd064063f8390926922085c2c7c14fc (diff) |
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.h | 4 |
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); |