summaryrefslogtreecommitdiff
path: root/include/mmc.h
diff options
context:
space:
mode:
authorSean Anderson <seanga2@gmail.com>2020-09-15 17:44:45 +0300
committerTom Rini <trini@konsulko.com>2020-09-30 15:52:46 +0300
commit68fd6026623a60a718c69a86efc644c396c5d834 (patch)
treec6080ea550e5606eaea71d210d25d2c25c79c80c /include/mmc.h
parent6dcc2819ae984ddbcdd63cee0a4319f150f46a9f (diff)
downloadu-boot-68fd6026623a60a718c69a86efc644c396c5d834.tar.xz
mmc: Add mmc_dev()
This macro is necessary for arasan_zynqmp_dll_reset to compile. Signed-off-by: Sean Anderson <seanga2@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org> Tested-by: Patrick Delaunay <patrick.delaunay@st.com>
Diffstat (limited to 'include/mmc.h')
-rw-r--r--include/mmc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/mmc.h b/include/mmc.h
index 82562193cc..75bcaaf6b3 100644
--- a/include/mmc.h
+++ b/include/mmc.h
@@ -888,6 +888,8 @@ void mmc_set_preinit(struct mmc *mmc, int preinit);
#define mmc_host_is_spi(mmc) 0
#endif
+#define mmc_dev(x) ((x)->dev)
+
void board_mmc_power_init(void);
int board_mmc_init(struct bd_info *bis);
int cpu_mmc_init(struct bd_info *bis);