Revert "target: msm8952: support DSC panel selection through fastboot"
This reverts commit 2c8c4ee6dd5c710f1082bf65d5a6fba9ac67eeb6.
The change is no more needed since DSC support is present in LK.
fastboot oem select-display-panel nt35597_wqxga_dsc_video
fastboot oem select-display-panel nt35597_wqxga_dsc_cmd
Change-Id: I914ce25790bda39ae49cd1ac5ade1472bf9a9741
diff --git a/target/msm8952/target_display.c b/target/msm8952/target_display.c
index 8773514..b2585fc 100644
--- a/target/msm8952/target_display.c
+++ b/target/msm8952/target_display.c
@@ -51,11 +51,6 @@
#include "include/display_resource.h"
#include "gcdb_display.h"
-#define DSC_CMD_PANEL "dsc_cmd_panel"
-#define DSC_VID_PANEL "dsc_vid_panel"
-#define DSC_CMD_PANEL_STRING "1:dsi:0:none:1:qcom,mdss_dsi_nt35597_dsc_wqxga_cmd"
-#define DSC_VID_PANEL_STRING "1:dsi:0:none:1:qcom,mdss_dsi_nt35597_dsc_wqxga_video"
-
/*---------------------------------------------------------------------------*/
/* GPIO configuration */
/*---------------------------------------------------------------------------*/
@@ -525,35 +520,7 @@
bool target_display_panel_node(char *pbuf, uint16_t buf_size)
{
- int prefix_string_len = strlen(DISPLAY_CMDLINE_PREFIX);
- bool ret = true;
- struct oem_panel_data oem = mdss_dsi_get_oem_data();
-
- if (!strcmp(oem.panel, DSC_CMD_PANEL)) {
- if (buf_size < (prefix_string_len +
- strlen(DSC_CMD_PANEL_STRING))) {
- dprintf(CRITICAL, "DSC command line argument is greater than buffer size\n");
- return false;
- }
- strlcpy(pbuf, DISPLAY_CMDLINE_PREFIX, buf_size);
- buf_size -= prefix_string_len;
- pbuf += prefix_string_len;
- strlcpy(pbuf, DSC_CMD_PANEL_STRING, buf_size);
- } else if (!strcmp(oem.panel, DSC_VID_PANEL)) {
- if (buf_size < (prefix_string_len +
- strlen(DSC_VID_PANEL_STRING))) {
- dprintf(CRITICAL, "DSC command line argument is greater than buffer size\n");
- return false;
- }
- strlcpy(pbuf, DISPLAY_CMDLINE_PREFIX, buf_size);
- buf_size -= prefix_string_len;
- pbuf += prefix_string_len;
- strlcpy(pbuf, DSC_VID_PANEL_STRING, buf_size);
- } else {
- ret = gcdb_display_cmdline_arg(pbuf, buf_size);
- }
-
- return ret;
+ return gcdb_display_cmdline_arg(pbuf, buf_size);
}
void target_display_init(const char *panel_name)
@@ -568,8 +535,6 @@
if (!strcmp(oem.panel, NO_PANEL_CONFIG)
|| !strcmp(oem.panel, SIM_VIDEO_PANEL)
|| !strcmp(oem.panel, SIM_CMD_PANEL)
- || !strcmp(oem.panel, DSC_CMD_PANEL)
- || !strcmp(oem.panel, DSC_VID_PANEL)
|| oem.skip) {
dprintf(INFO, "Selected panel: %s\nSkip panel configuration\n",
oem.panel);