SDHCI: add no hi-speed bit quirk support
PATCH 1/1 SDHCI: add no hi-speed bit quirk support
Some SDHCI controllr like s5pc110 doesn't have HISPD bit at HOSTCTL register.
Signed-off-by Kyungmin Park <[email protected]>
---
drivers/mmc/host/sdhci.c +2 -1
@@ -1164,7 +1164,8 @@ static void sdhci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)else ctrl &= ~SDHCI_CTRL_4BITBUS ; -if (ios->timing ==MMC_TIMING_SD_HS ) +if (ios->timing ==MMC_TIMING_SD_HS && + !(host->quirks &SDHCI_QUIRK_NO_HISPD_BIT )) ctrl |=SDHCI_CTRL_HISPD ;else ctrl &= ~SDHCI_CTRL_HISPD ;
drivers/mmc/host/sdhci.h +2 -0
@@ -240,6 +240,8 @@ struct sdhci_host {#define SDHCI_QUIRK_CAP_CLOCK_BASE_BROKEN (1<<25)/* Controller cannot support End Attribute in NOP ADMA descriptor */ #define SDHCI_QUIRK_NO_ENDATTR_IN_NOPDESC (1<<26) +/* Controller doesn't have HISPD bit field in HI-SPEED SD card */ +#define SDHCI_QUIRK_NO_HISPD_BIT (1<<27)int irq;/* Device IRQ */ void __iomem * ioaddr;/* Mapped address */