diff options
author | Tom Rini <trini@konsulko.com> | 2016-07-31 20:31:13 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-07-31 20:31:13 -0400 |
commit | 26fb8db0f4d1e7c118b5e8f3a8849f359b91c166 (patch) | |
tree | e804df1f0dc8fdf6cfe825f711f930c80d545f02 /include/mmc.h | |
parent | fcada3b05e56c9b22bf5f92ba94fa80449452e76 (diff) | |
parent | dd63fbc70a5fa59677c86695ebad341834fec172 (diff) |
Merge git://git.denx.de/u-boot-rockchip
Diffstat (limited to 'include/mmc.h')
-rw-r--r-- | include/mmc.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/mmc.h b/include/mmc.h index 8f309f1..dd47f34 100644 --- a/include/mmc.h +++ b/include/mmc.h @@ -503,6 +503,12 @@ void mmc_set_clock(struct mmc *mmc, uint clock); struct mmc *find_mmc_device(int dev_num); int mmc_set_dev(int dev_num); void print_mmc_devices(char separator); + +/** + * get_mmc_num() - get the total MMC device number + * + * @return 0 if there is no MMC device, else the number of devices + */ int get_mmc_num(void); int mmc_hwpart_config(struct mmc *mmc, const struct mmc_hwpart_conf *conf, enum mmc_hwpart_conf_mode mode); |