summaryrefslogtreecommitdiff
path: root/drivers/mmc/mmc_private.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-06-13 08:30:18 +0300
committerSimon Glass <sjg@chromium.org>2016-07-11 23:06:44 +0300
commitc40704f4b13a19a95aa13965c0f1f6a93b5574c0 (patch)
treed3ed36ea61e7887fa5238c0fb0ff49004784823d /drivers/mmc/mmc_private.h
parent5aed4cbba07526d1a575f07f45b4d10d8cdca11e (diff)
downloadu-boot-c40704f4b13a19a95aa13965c0f1f6a93b5574c0.tar.xz
mmc: Move MMC boot code into its own file
Rather than having an #ifdef in the main mmc.c file, control this feature from the Makefile by moving the code into its own file. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/mmc/mmc_private.h')
-rw-r--r--drivers/mmc/mmc_private.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/mmc/mmc_private.h b/drivers/mmc/mmc_private.h
index cfc4aca18d..3d189ba78e 100644
--- a/drivers/mmc/mmc_private.h
+++ b/drivers/mmc/mmc_private.h
@@ -106,4 +106,15 @@ void mmc_list_add(struct mmc *mmc);
*/
int mmc_switch_part(struct mmc *mmc, unsigned int part_num);
+/**
+ * mmc_switch() - Issue and MMC switch mode command
+ *
+ * @mmc: MMC device
+ * @set: Unused
+ * @index: Cmdarg index
+ * @value: Cmdarg value
+ * @return 0 if OK, -ve on error
+ */
+int mmc_switch(struct mmc *mmc, u8 set, u8 index, u8 value);
+
#endif /* _MMC_PRIVATE_H_ */