summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHarm Berntsen <[email protected]>2021-03-30 10:19:41 +0200
committerStefan Roese <[email protected]>2021-04-08 08:50:52 +0200
commitc689ae044bf7dc22811a37818988a4533699a541 (patch)
treecf204c4752dcef0e028b5d7bc4e59d71fc648d42 /include
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 <[email protected]> Tested-by: Harm Berntsen <[email protected]> Reviewed-by: Simon Glass <[email protected]> Reviewed-by: Stefan Roese <[email protected]> CC: Pantelis Antoniou <[email protected]> CC: Stefan Roese <[email protected]> CC: Gerald Kerma <[email protected]> CC: Simon Glass <[email protected]> Reviewed-by: Jaehoon Chung <[email protected]>
Diffstat (limited to 'include')
-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__ */