summaryrefslogtreecommitdiff
path: root/include/mmc.h
diff options
context:
space:
mode:
authorTom Rini <trini@ti.com>2013-09-20 14:06:10 -0400
committerTom Rini <trini@ti.com>2013-09-20 14:06:10 -0400
commitd0b961684eb5757211e9463f5f24c3175e453798 (patch)
tree8983f37db54071f95c39be404e48b7116b808fda /include/mmc.h
parent03c1bb242548e4e9d267d784861ccd69a1887aa0 (diff)
parent2c011847c129491084a19c753a039a3441b7dce4 (diff)
downloadu-boot-imx-d0b961684eb5757211e9463f5f24c3175e453798.zip
u-boot-imx-d0b961684eb5757211e9463f5f24c3175e453798.tar.gz
u-boot-imx-d0b961684eb5757211e9463f5f24c3175e453798.tar.bz2
Merge branch 'master' of git://git.denx.de/u-boot-mmc
Diffstat (limited to 'include/mmc.h')
-rw-r--r--include/mmc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/mmc.h b/include/mmc.h
index 228d771..214b9ed 100644
--- a/include/mmc.h
+++ b/include/mmc.h
@@ -335,7 +335,11 @@ int mmc_start_init(struct mmc *mmc);
void mmc_set_preinit(struct mmc *mmc, int preinit);
#ifdef CONFIG_GENERIC_MMC
+#ifdef CONFIG_MMC_SPI
#define mmc_host_is_spi(mmc) ((mmc)->host_caps & MMC_MODE_SPI)
+#else
+#define mmc_host_is_spi(mmc) 0
+#endif
struct mmc *mmc_spi_init(uint bus, uint cs, uint speed, uint mode);
#else
int mmc_legacy_init(int verbose);