msm: board-8064: switch to RPM control for most regulators
Switch control of most regulators from the pm8xxx-regulator
driver to the rpm-regulator driver. pm8xxx-regulator will still
be used for LDO 26 because it is not handled by the RPM.
USB OTG MVS and HDMI MVS will also remain under pm8xxx-regulator
control because they are Apps-only and require integration with
GPIO control FETs to be useful.
Change-Id: I55115d8cca17f3e9046efaeb47bb5d9ebd1828fb
Signed-off-by: David Collins <collinsd@codeaurora.org>
diff --git a/arch/arm/mach-msm/board-8064.c b/arch/arm/mach-msm/board-8064.c
index 4b7c05d..99388dd 100644
--- a/arch/arm/mach-msm/board-8064.c
+++ b/arch/arm/mach-msm/board-8064.c
@@ -1315,6 +1315,14 @@
},
};
+static struct platform_device apq8064_device_rpm_regulator __devinitdata = {
+ .name = "rpm-regulator",
+ .id = -1,
+ .dev = {
+ .platform_data = &apq8064_rpm_regulator_pdata,
+ },
+};
+
static struct platform_device *common_devices[] __initdata = {
&apq8064_device_dmov,
&apq8064_device_qup_i2c_gsbi3,
@@ -1553,6 +1561,8 @@
pr_err("socinfo_init() failed!\n");
BUG_ON(msm_rpm_init(&apq8064_rpm_data));
BUG_ON(msm_rpmrs_levels_init(&msm_rpmrs_data));
+ regulator_suppress_info_printing();
+ platform_device_register(&apq8064_device_rpm_regulator);
apq8064_clock_init();
apq8064_init_gpiomux();
apq8064_i2c_init();