summaryrefslogtreecommitdiff
path: root/include/mmc.h
diff options
context:
space:
mode:
authorJaehoon Chung <jh80.chung@samsung.com>2021-02-16 04:16:52 +0300
committerPeng Fan <peng.fan@nxp.com>2021-02-19 10:10:41 +0300
commitcaee38aef71105c6bbc1910bad0e60bdabd053e2 (patch)
tree6cf7cdfccce51040f1deddd9251f82b0ecd62219 /include/mmc.h
parent46938abd2c4c2b605c5af9483fff20ef6772eafc (diff)
downloadu-boot-caee38aef71105c6bbc1910bad0e60bdabd053e2.tar.xz
mmc: pwrseq: add mmc-pwrseq file to provide a generic interface
Add mmc-pwrseq file to provide a generic interface. Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Diffstat (limited to 'include/mmc.h')
-rw-r--r--include/mmc.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/mmc.h b/include/mmc.h
index effccaaca0..8600881705 100644
--- a/include/mmc.h
+++ b/include/mmc.h
@@ -592,6 +592,9 @@ struct mmc_config {
uint f_max;
uint b_max;
unsigned char part_type;
+#ifdef CONFIG_MMC_PWRSEQ
+ struct udevice *pwr_dev;
+#endif
};
struct sd_ssr {
@@ -808,6 +811,17 @@ int mmc_deinit(struct mmc *mmc);
*/
int mmc_of_parse(struct udevice *dev, struct mmc_config *cfg);
+#ifdef CONFIG_MMC_PWRSEQ
+/**
+ * mmc_pwrseq_get_power() - get a power device from device tree
+ *
+ * @dev: MMC device
+ * @cfg: MMC configuration
+ * @return 0 if OK, -ve on error
+ */
+int mmc_pwrseq_get_power(struct udevice *dev, struct mmc_config *cfg);
+#endif
+
int mmc_read(struct mmc *mmc, u64 src, uchar *dst, int size);
/**