target: msm8952: add display support for msmgold
Update panel configuration needed for display and the DSI
register offset adjustment parameters based on the platform
check for msmgold.
CRs-Fixed: 968289
Change-Id: I57e097f4b44f59e18e8da88a28cc7303201f9782
diff --git a/target/msm8952/oem_panel.c b/target/msm8952/oem_panel.c
index d045a22..37c6db6 100755
--- a/target/msm8952/oem_panel.c
+++ b/target/msm8952/oem_panel.c
@@ -1,4 +1,4 @@
-/* Copyright (c) 2015, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2015-2016, The Linux Foundation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -679,6 +679,8 @@
case HW_PLATFORM_MTP:
if (platform_is_msm8956())
panel_id = NT35597_WQXGA_DUALDSI_VIDEO_PANEL;
+ else if (platform_is_msmgold())
+ panel_id = TRULY_720P_VIDEO_PANEL;
else
panel_id = TRULY_1080P_VIDEO_PANEL;
break;
@@ -686,6 +688,8 @@
case HW_PLATFORM_RCM:
if (platform_is_msm8956())
panel_id = NT35597_WQXGA_DUALDSI_VIDEO_PANEL;
+ else if (platform_is_msmgold())
+ panel_id = TRULY_720P_VIDEO_PANEL;
else
panel_id = TRULY_1080P_VIDEO_PANEL;
break;
diff --git a/target/msm8952/target_display.c b/target/msm8952/target_display.c
index fa9faa1..1e5b796 100644
--- a/target/msm8952/target_display.c
+++ b/target/msm8952/target_display.c
@@ -311,7 +311,7 @@
pll_data->vco_delay = VCO_DELAY_USEC;
/* SSC parameters */
- if (platform_is_msm8937()) {
+ if (platform_is_msm8937() || platform_is_msmgold()) {
pll_data->ssc_en = true;
pll_data->is_center_spread = false;
pll_data->ssc_freq = 30000;
@@ -372,6 +372,10 @@
reset_gpio.pin_id = 60;
bkl_gpio.pin_id = 98;
enable_gpio.pin_id = 99;
+ } else if (platform_is_msmgold()) {
+ reset_gpio.pin_id = 60;
+ bkl_gpio.pin_id = 98;
+ pinfo->mipi.use_enable_gpio = 0;
} else if ((hw_id == HW_PLATFORM_QRD) &&
(hw_subtype == HW_PLATFORM_SUBTYPE_POLARIS)) {
enable_gpio.pin_id = 19;
@@ -510,7 +514,8 @@
int target_display_get_base_offset(uint32_t base)
{
- if(platform_is_msm8956() || platform_is_msm8937()) {
+ if(platform_is_msm8956() || platform_is_msm8937() ||
+ platform_is_msmgold()) {
if (base == MIPI_DSI0_BASE)
return DSI0_BASE_ADJUST;
else if (base == DSI0_PHY_BASE)