mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
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>
This commit is contained in:
parent
bb7b4ef370
commit
06ec045fee
2 changed files with 18 additions and 10 deletions
|
@ -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
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue