Pfuze200 only provide one power supply for VDDARM_IN and VDDSOC_IN,
for ldo-bypass mode, we have to pretend they are different regulators
otherwise regulator famework will refuse update voltage.
Signed-off-by: Robin Gong <b38343@freescale.com>
(cherry picked from commit
1b41ab90288b2accd710f8852c11753007749e4a)
goto put_node;
}
+ /*
+ * soc_reg sync with arm_reg if arm shares the same regulator
+ * with soc. Otherwise, regulator common framework will refuse to update
+ * this consumer's voltage right now while another consumer voltage
+ * still keep in old one. For example, imx6sx-sdb with pfuze200 in
+ * ldo-bypass mode.
+ */
+ of_property_read_u32(np, "fsl,arm-soc-shared", &i);
+ if (i == 1)
+ soc_reg = arm_reg;
/*
* We expect an OPP table supplied by platform.
* Just, incase the platform did not supply the OPP