aboutsummaryrefslogtreecommitdiff
path: root/include/mmc.h
diff options
context:
space:
mode:
authorSean Anderson2020-09-15 10:44:45 -0400
committerTom Rini2020-09-30 08:52:46 -0400
commit68fd6026623a60a718c69a86efc644c396c5d834 (patch)
treec6080ea550e5606eaea71d210d25d2c25c79c80c /include/mmc.h
parent6dcc2819ae984ddbcdd63cee0a4319f150f46a9f (diff)
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 82562193cc4..75bcaaf6b35 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);