|
@@ -129,6 +129,7 @@ struct mmc_card {
|
|
|
/* (missing CIA registers) */
|
|
|
#define MMC_QUIRK_BROKEN_CLK_GATING (1<<3) /* clock gating the sdio bus will make card fail */
|
|
|
#define MMC_QUIRK_NONSTD_FUNC_IF (1<<4) /* SDIO card has nonstd function interfaces */
|
|
|
+#define MMC_QUIRK_DISABLE_CD (1<<5) /* disconnect CD/DAT[3] resistor */
|
|
|
|
|
|
unsigned int erase_size; /* erase size in sectors */
|
|
|
unsigned int erase_shift; /* if erase unit is power 2 */
|
|
@@ -184,6 +185,11 @@ static inline int mmc_blksz_for_byte_mode(const struct mmc_card *c)
|
|
|
return c->quirks & MMC_QUIRK_BLKSZ_FOR_BYTE_MODE;
|
|
|
}
|
|
|
|
|
|
+static inline int mmc_card_disable_cd(const struct mmc_card *c)
|
|
|
+{
|
|
|
+ return c->quirks & MMC_QUIRK_DISABLE_CD;
|
|
|
+}
|
|
|
+
|
|
|
static inline int mmc_card_nonstd_func_interface(const struct mmc_card *c)
|
|
|
{
|
|
|
return c->quirks & MMC_QUIRK_NONSTD_FUNC_IF;
|