diff options
author | Kuogee Hsieh <khsieh@codeaurora.org> | 2013-12-18 14:58:41 -0800 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2014-01-09 23:02:51 -0800 |
commit | 54b452b3a446d7cc575de2bc6698b9644d86d42d (patch) | |
tree | 79b3faa1f2e31e9ee68352fcb6994d172bba1d40 | |
parent | ffc520693ef05f814b8496e650e90ec11d2935c1 (diff) |
target: msm8974: Add JDI QHD video/cmd panel support
Add JDI QHD video/command mode dual dsi panel support
for MSM8974 target.
Change-Id: I6b1d447a3e099583e9484b0c377b9f5213d5d940
-rwxr-xr-x | target/msm8974/oem_panel.c | 46 |
1 files changed, 45 insertions, 1 deletions
diff --git a/target/msm8974/oem_panel.c b/target/msm8974/oem_panel.c index c9b87c2c..0bda609d 100755 --- a/target/msm8974/oem_panel.c +++ b/target/msm8974/oem_panel.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2013, The Linux Foundation. All rights reserved. +/* Copyright (c) 2013-2014, 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 @@ -44,6 +44,8 @@ #include "include/panel_sharp_qhd_video.h" #include "include/panel_jdi_1080p_video.h" #include "include/panel_generic_720p_cmd.h" +#include "include/panel_jdi_qhd_dualdsi_video.h" +#include "include/panel_jdi_qhd_dualdsi_cmd.h" #define DISPLAY_MAX_PANEL_DETECTION 3 @@ -55,6 +57,8 @@ JDI_1080P_VIDEO_PANEL, TOSHIBA_720P_VIDEO_PANEL, SHARP_QHD_VIDEO_PANEL, GENERIC_720P_CMD_PANEL, +JDI_QHD_DUALDSI_VIDEO_PANEL, +JDI_QHD_DUALDSI_CMD_PANEL, UNKNOWN_PANEL }; @@ -170,6 +174,46 @@ static void init_panel_data(struct panel_struct *panelstruct, generic_720p_cmd_timings, TIMING_SIZE); pinfo->mipi.signature = GENERIC_720P_CMD_SIGNATURE; break; + case JDI_QHD_DUALDSI_VIDEO_PANEL: + panelstruct->paneldata = &jdi_qhd_dualdsi_video_panel_data; + panelstruct->panelres = &jdi_qhd_dualdsi_video_panel_res; + panelstruct->color = &jdi_qhd_dualdsi_video_color; + panelstruct->videopanel = &jdi_qhd_dualdsi_video_video_panel; + panelstruct->commandpanel = &jdi_qhd_dualdsi_video_command_panel; + panelstruct->state = &jdi_qhd_dualdsi_video_state; + panelstruct->laneconfig = &jdi_qhd_dualdsi_video_lane_config; + panelstruct->paneltiminginfo + = &jdi_qhd_dualdsi_video_timing_info; + panelstruct->panelresetseq + = &jdi_qhd_dualdsi_video_reset_seq; + panelstruct->backlightinfo = &jdi_qhd_dualdsi_video_backlight; + pinfo->mipi.panel_cmds + = jdi_qhd_dualdsi_video_on_command; + pinfo->mipi.num_of_panel_cmds + = JDI_QHD_DUALDSI_VIDEO_ON_COMMAND; + memcpy(phy_db->timing, + jdi_qhd_dualdsi_video_timings, TIMING_SIZE); + break; + case JDI_QHD_DUALDSI_CMD_PANEL: + panelstruct->paneldata = &jdi_qhd_dualdsi_cmd_panel_data; + panelstruct->panelres = &jdi_qhd_dualdsi_cmd_panel_res; + panelstruct->color = &jdi_qhd_dualdsi_cmd_color; + panelstruct->videopanel = &jdi_qhd_dualdsi_cmd_video_panel; + panelstruct->commandpanel = &jdi_qhd_dualdsi_cmd_command_panel; + panelstruct->state = &jdi_qhd_dualdsi_cmd_state; + panelstruct->laneconfig = &jdi_qhd_dualdsi_cmd_lane_config; + panelstruct->paneltiminginfo + = &jdi_qhd_dualdsi_cmd_timing_info; + panelstruct->panelresetseq + = &jdi_qhd_dualdsi_cmd_reset_seq; + panelstruct->backlightinfo = &jdi_qhd_dualdsi_cmd_backlight; + pinfo->mipi.panel_cmds + = jdi_qhd_dualdsi_cmd_on_command; + pinfo->mipi.num_of_panel_cmds + = JDI_QHD_DUALDSI_CMD_ON_COMMAND; + memcpy(phy_db->timing, + jdi_qhd_dualdsi_cmd_timings, TIMING_SIZE); + break; case UNKNOWN_PANEL: memset(panelstruct, 0, sizeof(struct panel_struct)); memset(pinfo->mipi.panel_cmds, 0, sizeof(struct mipi_dsi_cmd)); |