aboutsummaryrefslogtreecommitdiff
path: root/include/mmc.h
diff options
context:
space:
mode:
authorJean-Jacques Hiblot <jjhiblot@ti.com>2017-09-21 16:29:48 +0200
committerJaehoon Chung <jh80.chung@samsung.com>2018-01-12 18:11:03 +0900
commit06ec045feeea08993834e2f1d2d1e4ec52cdeff1 (patch)
tree46e34df953fa86cdf24b371bb22d08ddda72521a /include/mmc.h
parentbb7b4ef3704cfd25e30a36f76342df118ec24a25 (diff)
downloadu-boot-06ec045feeea08993834e2f1d2d1e4ec52cdeff1.zip
u-boot-06ec045feeea08993834e2f1d2d1e4ec52cdeff1.tar.gz
u-boot-06ec045feeea08993834e2f1d2d1e4ec52cdeff1.tar.bz2
mmc: dm: get the IO-line and main voltage regulators from the dts
Get a reference to the regulator devices from the dts and store them in the struct mmc for later use. Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Diffstat (limited to 'include/mmc.h')
-rw-r--r--include/mmc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/mmc.h b/include/mmc.h
index 010ebe0..188dc74 100644
--- a/include/mmc.h
+++ b/include/mmc.h
@@ -457,6 +457,10 @@ struct mmc {
int ddr_mode;
#if CONFIG_IS_ENABLED(DM_MMC)
struct udevice *dev; /* Device for this MMC controller */
+#if CONFIG_IS_ENABLED(DM_REGULATOR)
+ struct udevice *vmmc_supply; /* Main voltage regulator (Vcc)*/
+ struct udevice *vqmmc_supply; /* IO voltage regulator (Vccq)*/
+#endif
#endif
};