]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
mmc: sdhci-omap: Add support for MMC/SD controller in k2g SoC
authorKishon Vijay Abraham I <kishon@ti.com>
Fri, 27 Apr 2018 11:47:20 +0000 (17:17 +0530)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 3 May 2018 07:37:12 +0000 (09:37 +0200)
Add support for the new compatible added specifically to support
k2g's MMC/SD controller.

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-omap.c

index 2232a9974b216ce697b8ee67e2ffc5de7a2f4e4a..b11c846dd8a1922dfa92b4f113d86f22338d6a4e 100644 (file)
@@ -720,6 +720,10 @@ static const struct sdhci_pltfm_data sdhci_omap_pdata = {
        .ops = &sdhci_omap_ops,
 };
 
+static const struct sdhci_omap_data k2g_data = {
+       .offset = 0x200,
+};
+
 static const struct sdhci_omap_data dra7_data = {
        .offset = 0x200,
        .flags  = SDHCI_OMAP_REQUIRE_IODELAY,
@@ -727,6 +731,7 @@ static const struct sdhci_omap_data dra7_data = {
 
 static const struct of_device_id omap_sdhci_match[] = {
        { .compatible = "ti,dra7-sdhci", .data = &dra7_data },
+       { .compatible = "ti,k2g-sdhci", .data = &k2g_data },
        {},
 };
 MODULE_DEVICE_TABLE(of, omap_sdhci_match);