target: msm8909: add APQ8009W check for PM660 support
Add platform check for APQ8009W to handle backlight
configuration with PM660.
Change-Id: I9d75027669446b9dbcd92586092350da51c4e02d
diff --git a/target/msm8909/target_display.c b/target/msm8909/target_display.c
index 9c4cd48..526b138 100755
--- a/target/msm8909/target_display.c
+++ b/target/msm8909/target_display.c
@@ -202,7 +202,7 @@
return 0;
if (!((HW_PLATFORM_SUBTYPE_8909_PM660 == platform_subtype) &&
- (MSM8909W == platform) &&
+ ((MSM8909W == platform) || (APQ8009W == platform)) &&
(HW_PLATFORM_MTP == hw_id))) {
struct pm8x41_mpp mpp;
struct board_pmic_data pmic_info;
@@ -299,7 +299,7 @@
uint32_t platform = board_platform_id();
if ((HW_PLATFORM_SUBTYPE_8909_PM660 == hw_subtype) &&
- (MSM8909W == platform) &&
+ ((MSM8909W == platform) || (APQ8009W == platform)) &&
(HW_PLATFORM_MTP == hw_id)) {
struct pm8x41_gpio bobgpio_param = {
.direction = PM_GPIO_DIR_OUT,
@@ -354,7 +354,7 @@
if (enable) {
if ((HW_PLATFORM_SUBTYPE_8909_PM660 == hw_subtype) &&
- (MSM8909W == platform) &&
+ ((MSM8909W == platform) || (APQ8009W == platform)) &&
(HW_PLATFORM_MTP == hw_id))
regulator_enable(REG_LDO12 | REG_LDO5 | REG_LDO11 | REG_LDO18);
else