mirror of
https://github.com/linux-sunxi/u-boot-sunxi.git
synced 2024-02-12 11:16:03 +08: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:

committed by
Jaehoon Chung

parent
bb7b4ef370
commit
06ec045fee
@ -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
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user