target: add support to enable individual regulators
Add support to msm8994, msm8909, and msm8952 to
individually enable regulators.
Change-Id: Ia38b5a0b9d81658c01cccfcd25c59d0eb574b55c
diff --git a/target/msm8909/target_display.c b/target/msm8909/target_display.c
index 7b7aea7..3f2a493 100755
--- a/target/msm8909/target_display.c
+++ b/target/msm8909/target_display.c
@@ -40,6 +40,7 @@
#include <platform/gpio.h>
#include <platform/iomap.h>
#include <target/display.h>
+#include <regulator.h>
#include "include/panel.h"
#include "include/display_resource.h"
@@ -226,7 +227,7 @@
int target_ldo_ctrl(uint8_t enable, struct msm_panel_info *pinfo)
{
if (enable)
- regulator_enable(); /* L2, L6, and L17 */
+ regulator_enable(REG_LDO2 | REG_LDO6 | REG_LDO17);
return NO_ERROR;
}