mmc: sdhci-s3c: Support additional host capabilities
authorJeongbae Seo <jeongbae.seo@samsung.com>
Fri, 8 Oct 2010 08:46:20 +0000 (17:46 +0900)
committerChris Ball <cjb@laptop.org>
Sun, 9 Jan 2011 04:52:21 +0000 (23:52 -0500)
This patch adds support for additional host capabilities like SD/MMC
high speed, SDHCI bus width, etc.

Signed-off-by: Jeongbae Seo <jeongbae.seo@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/sdhci-s3c.c

index aacb862ecc8a979f8022b8e0dd3428ed26c15baa..a7710f557849200b9b3d9641ad004472f41d6395 100644 (file)
@@ -427,6 +427,10 @@ static int __devinit sdhci_s3c_probe(struct platform_device *pdev)
        /* HSMMC on Samsung SoCs uses SDCLK as timeout clock */
        host->quirks |= SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK;
 
+       /* It supports additional host capabilities if needed */
+       if (pdata->host_caps)
+               host->mmc->caps |= pdata->host_caps;
+
        ret = sdhci_add_host(host);
        if (ret) {
                dev_err(dev, "sdhci_add_host() failed\n");