diff options
Diffstat (limited to 'include/mmc.h')
-rw-r--r-- | include/mmc.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/include/mmc.h b/include/mmc.h index 534c317b43..df4255b828 100644 --- a/include/mmc.h +++ b/include/mmc.h @@ -754,12 +754,22 @@ int mmc_set_bkops_enable(struct mmc *mmc); /** * Start device initialization and return immediately; it does not block on + * polling OCR (operation condition register) status. Useful for checking + * the presence of SD/eMMC when no card detect logic is available. + * + * @param mmc Pointer to a MMC device struct + * @return 0 on success, <0 on error. + */ +int mmc_get_op_cond(struct mmc *mmc); + +/** + * Start device initialization and return immediately; it does not block on * polling OCR (operation condition register) status. Then you should call * mmc_init, which would block on polling OCR status and complete the device * initializatin. * * @param mmc Pointer to a MMC device struct - * @return 0 on success, IN_PROGRESS on waiting for OCR status, <0 on error. + * @return 0 on success, <0 on error. */ int mmc_start_init(struct mmc *mmc); |