msm: board-8064: Add fixed 3.3V regulator for MPQ8064 v2.0 targets
On MPQ8064 v2.0, external 3.3V isn't controlled by GPIO-77
as opposed to other 8064 variants. Commit d1e9f0d removed the
usage of GPIO-77 which controls external regulator but failed
to populate the regulator as fixed, always on regulator and
hence broke all the consumers of ext_3p3v supply.
Now that the external 3.3V regulator isn't controlled by any
GPIO, add a fixed regulator to represent it.
CRs-Fixed: 441115
Change-Id: I42c8a568fea3f37f1cad25b5f1f7aebd7b3f44be
Signed-off-by: Sujit Reddy Thumma <sthumma@codeaurora.org>
diff --git a/arch/arm/mach-msm/board-8064.c b/arch/arm/mach-msm/board-8064.c
index 3fe0838..61fc86d 100644
--- a/arch/arm/mach-msm/board-8064.c
+++ b/arch/arm/mach-msm/board-8064.c
@@ -2494,6 +2494,13 @@
}
}
+static struct platform_device mpq8064_device_ext_3p3v_vreg = {
+ .name = "reg-fixed-voltage",
+ .dev = {
+ .platform_data = &mpq8064_3p3_regulator_pdata,
+ },
+};
+
static struct platform_device apq8064_device_ext_5v_vreg __devinitdata = {
.name = GPIO_REGULATOR_DEV_NAME,
.id = PM8921_MPP_PM_TO_SYS(7),
@@ -2605,6 +2612,7 @@
static struct platform_device *pm8921_mpq_hrd_common_devices[] __initdata = {
&apq8064_device_ext_5v_vreg,
&apq8064_device_ext_mpp8_vreg,
+ &mpq8064_device_ext_3p3v_vreg,
&apq8064_device_ssbi_pmic1,
&apq8064_device_ssbi_pmic2,
};