summaryrefslogtreecommitdiff
path: root/include/mmc.h
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2016-07-31 20:31:13 -0400
committerTom Rini <trini@konsulko.com>2016-07-31 20:31:13 -0400
commit26fb8db0f4d1e7c118b5e8f3a8849f359b91c166 (patch)
treee804df1f0dc8fdf6cfe825f711f930c80d545f02 /include/mmc.h
parentfcada3b05e56c9b22bf5f92ba94fa80449452e76 (diff)
parentdd63fbc70a5fa59677c86695ebad341834fec172 (diff)
Merge git://git.denx.de/u-boot-rockchip
Diffstat (limited to 'include/mmc.h')
-rw-r--r--include/mmc.h6
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);