diff options
author | Simon Glass <sjg@chromium.org> | 2016-06-12 23:30:18 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2016-07-11 14:06:44 -0600 |
commit | c40704f4b13a19a95aa13965c0f1f6a93b5574c0 (patch) | |
tree | d3ed36ea61e7887fa5238c0fb0ff49004784823d /drivers/mmc/mmc_private.h | |
parent | 5aed4cbba07526d1a575f07f45b4d10d8cdca11e (diff) |
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.h | 11 |
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_ */ |