target: msm8226: Enable panel auto-detection only for QRD DVT boards
The panels on 8x26 boards other than the one on the QRD DVT device
do not support the auto-detection feature. Therefore, enable this
only for the DVT boards.
Change-Id: Ia5227947bee924644ea08b1a4a4363b65adcc5bf
diff --git a/target/msm8226/init.c b/target/msm8226/init.c
index 62782a9..73e1981 100644
--- a/target/msm8226/init.c
+++ b/target/msm8226/init.c
@@ -415,16 +415,23 @@
uint8_t target_panel_auto_detect_enabled()
{
+ uint8_t ret = 0;
+
switch(board_hardware_id())
{
case HW_PLATFORM_QRD:
- return 1;
+ /* Enable auto detect for DVT boards only */
+ if (((board_target_id() >> 16) & 0xFF) == 0x2)
+ ret = 1;
+ else
+ ret = 0;
+ break;
case HW_PLATFORM_SURF:
case HW_PLATFORM_MTP:
default:
- return 0;
+ ret = 0;
}
- return 0;
+ return ret;
}
static uint8_t splash_override;