mfd: twl4030-power: Fix pmic for boards that need vmmc1 on reboot
authorAdam Ford <aford173@gmail.com>
Sun, 29 Jan 2017 12:40:15 +0000 (06:40 -0600)
committerLee Jones <lee.jones@linaro.org>
Thu, 27 Apr 2017 08:25:03 +0000 (09:25 +0100)
At least two different omap3630/3730 boards booting from MMC1
fail to reboot if the "ti,twl4030-power-idle-osc-off" or
"ti,twl4030-power-idle" compatible flags are set.  This patch will
keep the vmmc1 powered up during reboot allowing the bootloader
to load.

Signed-off-by: Adam Ford <aford173@gmail.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/twl4030-power.c

index 1beb722..e1e69a4 100644 (file)
@@ -701,6 +701,7 @@ static struct twl4030_ins omap3_wrst_seq[] = {
        TWL_RESOURCE_RESET(RES_MAIN_REF),
        TWL_RESOURCE_GROUP_RESET(RES_GRP_ALL, RES_TYPE_R0, RES_TYPE2_R2),
        TWL_RESOURCE_RESET(RES_VUSB_3V1),
+       TWL_RESOURCE_RESET(RES_VMMC1),
        TWL_RESOURCE_GROUP_RESET(RES_GRP_ALL, RES_TYPE_R0, RES_TYPE2_R1),
        TWL_RESOURCE_GROUP_RESET(RES_GRP_RC, RES_TYPE_ALL, RES_TYPE2_R0),
        TWL_RESOURCE_ON(RES_RESET),