mmc: Add a new callback function to enable/disable vdd
authorKishon Vijay Abraham I <kishon@ti.com>
Fri, 12 May 2017 18:16:31 +0000 (20:16 +0200)
committerJason Liu <jason.hui.liu@nxp.com>
Thu, 2 Nov 2017 18:37:10 +0000 (02:37 +0800)
commit74a20867893b4430b9872d122b94753eddb2131d
tree645fdcbcaaee3f2e905443cd0fe1902ea37d5685
parent920adc5706bc79b6e9c74595000f22689f0bfdad
mmc: Add a new callback function to enable/disable vdd

Add a new callback function *set_vdd* which can be used
by the platform mmc driver to enable or disable vdd.
The mmc core can use *mmc_set_vdd* in order to invoke
the callback function. This will be used during power cycle
where the specification requires vdd to be disabled for
1ms and enabled again.

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
drivers/mmc/mmc-uclass.c
drivers/mmc/mmc.c
include/mmc.h