aboutsummaryrefslogtreecommitdiff
path: root/include/mvebu_mmc.h
diff options
context:
space:
mode:
authorHarm Berntsen2021-03-30 10:19:41 +0200
committerStefan Roese2021-04-08 08:50:52 +0200
commitc689ae044bf7dc22811a37818988a4533699a541 (patch)
treecf204c4752dcef0e028b5d7bc4e59d71fc648d42 /include/mvebu_mmc.h
parent4a8eac62456d2125785e820f9c0a6d58a8b7fd32 (diff)
mmc: mvebu: convert to driver model
This is a straightforward conversion of the old, non-dm driver. It was done in-place as the deadline for non-dm MMC has passed. Previous commits ensured that no board depends on the old, non-dm variant. Tested on a Kirkwood based board with eMMC. Signed-off-by: Harm Berntsen <harm.berntsen@nedap.com> Tested-by: Harm Berntsen <harm.berntsen@nedap.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Stefan Roese <sr@denx.de> CC: Pantelis Antoniou <panto@antoniou-consulting.com> CC: Stefan Roese <sr@denx.de> CC: Gerald Kerma <drEagle@doukki.net> CC: Simon Glass <sjg@chromium.org> Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
Diffstat (limited to 'include/mvebu_mmc.h')
-rw-r--r--include/mvebu_mmc.h13
1 files changed, 3 insertions, 10 deletions
diff --git a/include/mvebu_mmc.h b/include/mvebu_mmc.h
index a35e5a12ce8..e75c3fa3289 100644
--- a/include/mvebu_mmc.h
+++ b/include/mvebu_mmc.h
@@ -258,17 +258,10 @@
/* Hardware reset */
#define MMC_CAP_HW_RESET (1 << 31)
-struct mvebu_mmc_cfg {
- u32 mvebu_mmc_base;
- u32 mvebu_mmc_clk;
- u8 max_bus_width;
+struct mvebu_mmc_plat {
+ void *iobase;
struct mmc_config cfg;
+ struct mmc mmc;
};
-/*
- * Functions prototypes
- */
-
-int mvebu_mmc_init(struct bd_info *bis);
-
#endif /* __MVEBU_MMC_H__ */