wangxl | 1ddbd09 | 2015-02-03 20:31:24 +0800 | [diff] [blame] | 1 | /* Copyright (c) 2013-2014, The Linux Foundation. All rights reserved. |
| 2 | * |
| 3 | * Redistribution and use in source and binary forms, with or without |
| 4 | * modification, are permitted provided that the following conditions |
| 5 | * are met: |
| 6 | * * Redistributions of source code must retain the above copyright |
| 7 | * notice, this list of conditions and the following disclaimer. |
| 8 | * * Redistributions in binary form must reproduce the above copyright |
| 9 | * notice, this list of conditions and the following disclaimer in |
| 10 | * the documentation and/or other materials provided with the |
| 11 | * distribution. |
| 12 | * * Neither the name of The Linux Foundation nor the names of its |
| 13 | * contributors may be used to endorse or promote products derived |
| 14 | * from this software without specific prior written permission. |
| 15 | * |
| 16 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
| 17 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
| 18 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS |
| 19 | * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE |
| 20 | * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, |
| 21 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, |
| 22 | * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS |
| 23 | * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED |
| 24 | * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
| 25 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT |
| 26 | * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
| 27 | * SUCH DAMAGE. |
| 28 | */ |
| 29 | |
| 30 | #include <debug.h> |
| 31 | #include <err.h> |
| 32 | #include <smem.h> |
| 33 | #include <msm_panel.h> |
| 34 | #include <board.h> |
| 35 | #include <mipi_dsi.h> |
| 36 | |
| 37 | #include "include/panel.h" |
| 38 | #include "panel_display.h" |
| 39 | |
| 40 | /*---------------------------------------------------------------------------*/ |
| 41 | /* GCDB Panel Database */ |
| 42 | /*---------------------------------------------------------------------------*/ |
| 43 | #include "include/panel_toshiba_720p_video.h" |
| 44 | #include "include/panel_sharp_qhd_video.h" |
| 45 | #include "include/panel_jdi_1080p_video.h" |
| 46 | #include "include/panel_generic_720p_cmd.h" |
| 47 | #include "include/panel_jdi_qhd_dualdsi_video.h" |
| 48 | #include "include/panel_jdi_qhd_dualdsi_cmd.h" |
liuyan | 8c8b2c0 | 2015-01-26 15:27:19 +0800 | [diff] [blame] | 49 | #include "include/panel_otm1902b_1080p_cmd.h" |
Anna Lemehova | ce720b2 | 2017-05-03 13:51:19 +0300 | [diff] [blame] | 50 | #include "include/panel_s6d6fa1_1080p_video.h" |
wangxl | 1ddbd09 | 2015-02-03 20:31:24 +0800 | [diff] [blame] | 51 | |
| 52 | #define DISPLAY_MAX_PANEL_DETECTION 3 |
| 53 | |
| 54 | /*---------------------------------------------------------------------------*/ |
| 55 | /* static panel selection variable */ |
| 56 | /*---------------------------------------------------------------------------*/ |
| 57 | enum { |
| 58 | JDI_1080P_VIDEO_PANEL, |
| 59 | TOSHIBA_720P_VIDEO_PANEL, |
| 60 | SHARP_QHD_VIDEO_PANEL, |
| 61 | GENERIC_720P_CMD_PANEL, |
| 62 | JDI_QHD_DUALDSI_VIDEO_PANEL, |
| 63 | JDI_QHD_DUALDSI_CMD_PANEL, |
liuyan | 8c8b2c0 | 2015-01-26 15:27:19 +0800 | [diff] [blame] | 64 | OTM1902B_1080P_CMD_PANEL, |
Anna Lemehova | ce720b2 | 2017-05-03 13:51:19 +0300 | [diff] [blame] | 65 | S6D6FA1_1080P_VIDEO_PANEL, |
Borjan Tchakaloff | 87f6ac0 | 2017-07-13 15:14:02 +0200 | [diff] [blame] | 66 | S6D6FA1_1080P_VIDEO_PANEL_PROTO, |
wangxl | 1ddbd09 | 2015-02-03 20:31:24 +0800 | [diff] [blame] | 67 | UNKNOWN_PANEL |
| 68 | }; |
| 69 | |
| 70 | /* |
| 71 | * The list of panels that are supported on this target. |
| 72 | * Any panel in this list can be selected using fastboot oem command. |
| 73 | */ |
| 74 | static struct panel_list supp_panels[] = { |
| 75 | {"jdi_1080p_video", JDI_1080P_VIDEO_PANEL}, |
| 76 | {"toshiba_720p_video", TOSHIBA_720P_VIDEO_PANEL}, |
| 77 | {"sharp_qhd_video", SHARP_QHD_VIDEO_PANEL}, |
| 78 | {"generic_720p_cmd", GENERIC_720P_CMD_PANEL}, |
| 79 | {"jdi_qhd_dualdsi_video", JDI_QHD_DUALDSI_VIDEO_PANEL}, |
| 80 | {"jdi_qhd_dualdsi_cmd", JDI_QHD_DUALDSI_CMD_PANEL}, |
liuyan | 04e7c7a | 2015-02-09 19:50:08 +0800 | [diff] [blame] | 81 | {"otm1902b_1080p_cmd",OTM1902B_1080P_CMD_PANEL}, |
Anna Lemehova | ce720b2 | 2017-05-03 13:51:19 +0300 | [diff] [blame] | 82 | {"s6d6fa1_1080p_video", S6D6FA1_1080P_VIDEO_PANEL}, |
Borjan Tchakaloff | 87f6ac0 | 2017-07-13 15:14:02 +0200 | [diff] [blame] | 83 | {"s6d6fa1_1080p_video_proto", S6D6FA1_1080P_VIDEO_PANEL_PROTO}, |
wangxl | 1ddbd09 | 2015-02-03 20:31:24 +0800 | [diff] [blame] | 84 | }; |
| 85 | |
| 86 | static uint32_t panel_id; |
| 87 | |
| 88 | int oem_panel_rotation() |
| 89 | { |
| 90 | /* OEM can keep there panel spefic on instructions in this |
| 91 | function */ |
| 92 | return NO_ERROR; |
| 93 | } |
| 94 | |
| 95 | |
| 96 | int oem_panel_on() |
| 97 | { |
| 98 | /* OEM can keep there panel spefic on instructions in this |
| 99 | function */ |
| 100 | return NO_ERROR; |
| 101 | } |
| 102 | |
| 103 | int oem_panel_off() |
| 104 | { |
| 105 | /* OEM can keep there panel spefic off instructions in this |
| 106 | function */ |
| 107 | return NO_ERROR; |
| 108 | } |
| 109 | |
| 110 | static void init_panel_data(struct panel_struct *panelstruct, |
| 111 | struct msm_panel_info *pinfo, |
| 112 | struct mdss_dsi_phy_ctrl *phy_db) |
| 113 | { |
| 114 | switch (panel_id) { |
| 115 | case TOSHIBA_720P_VIDEO_PANEL: |
| 116 | panelstruct->paneldata = &toshiba_720p_video_panel_data; |
| 117 | panelstruct->panelres = &toshiba_720p_video_panel_res; |
| 118 | panelstruct->color = &toshiba_720p_video_color; |
| 119 | panelstruct->videopanel = &toshiba_720p_video_video_panel; |
| 120 | panelstruct->commandpanel = &toshiba_720p_video_command_panel; |
| 121 | panelstruct->state = &toshiba_720p_video_state; |
| 122 | panelstruct->laneconfig = &toshiba_720p_video_lane_config; |
| 123 | panelstruct->paneltiminginfo |
| 124 | = &toshiba_720p_video_timing_info; |
| 125 | panelstruct->panelresetseq |
| 126 | = &toshiba_720p_video_panel_reset_seq; |
| 127 | panelstruct->backlightinfo = &toshiba_720p_video_backlight; |
| 128 | pinfo->mipi.panel_cmds |
| 129 | = toshiba_720p_video_on_command; |
| 130 | pinfo->mipi.num_of_panel_cmds |
| 131 | = TOSHIBA_720P_VIDEO_ON_COMMAND; |
| 132 | memcpy(phy_db->timing, |
| 133 | toshiba_720p_video_timings, TIMING_SIZE); |
| 134 | pinfo->mipi.signature = TOSHIBA_720P_VIDEO_SIGNATURE; |
| 135 | break; |
| 136 | case SHARP_QHD_VIDEO_PANEL: |
| 137 | panelstruct->paneldata = &sharp_qhd_video_panel_data; |
| 138 | panelstruct->panelres = &sharp_qhd_video_panel_res; |
| 139 | panelstruct->color = &sharp_qhd_video_color; |
| 140 | panelstruct->videopanel = &sharp_qhd_video_video_panel; |
| 141 | panelstruct->commandpanel = &sharp_qhd_video_command_panel; |
| 142 | panelstruct->state = &sharp_qhd_video_state; |
| 143 | panelstruct->laneconfig = &sharp_qhd_video_lane_config; |
| 144 | panelstruct->paneltiminginfo |
| 145 | = &sharp_qhd_video_timing_info; |
| 146 | panelstruct->panelresetseq |
| 147 | = &sharp_qhd_video_panel_reset_seq; |
| 148 | panelstruct->backlightinfo = &sharp_qhd_video_backlight; |
| 149 | pinfo->mipi.panel_cmds |
| 150 | = sharp_qhd_video_on_command; |
| 151 | pinfo->mipi.num_of_panel_cmds |
| 152 | = SHARP_QHD_VIDEO_ON_COMMAND; |
| 153 | memcpy(phy_db->timing, |
| 154 | sharp_qhd_video_timings, TIMING_SIZE); |
| 155 | break; |
| 156 | case JDI_1080P_VIDEO_PANEL: |
| 157 | panelstruct->paneldata = &jdi_1080p_video_panel_data; |
| 158 | panelstruct->panelres = &jdi_1080p_video_panel_res; |
| 159 | panelstruct->color = &jdi_1080p_video_color; |
| 160 | panelstruct->videopanel = &jdi_1080p_video_video_panel; |
| 161 | panelstruct->commandpanel = &jdi_1080p_video_command_panel; |
| 162 | panelstruct->state = &jdi_1080p_video_state; |
| 163 | panelstruct->laneconfig = &jdi_1080p_video_lane_config; |
| 164 | panelstruct->paneltiminginfo |
| 165 | = &jdi_1080p_video_timing_info; |
| 166 | panelstruct->panelresetseq |
| 167 | = &jdi_1080p_video_panel_reset_seq; |
| 168 | panelstruct->backlightinfo = &jdi_1080p_video_backlight; |
| 169 | pinfo->mipi.panel_cmds |
| 170 | = jdi_1080p_video_on_command; |
| 171 | pinfo->mipi.num_of_panel_cmds |
| 172 | = JDI_1080P_VIDEO_ON_COMMAND; |
| 173 | memcpy(phy_db->timing, |
| 174 | jdi_1080p_video_timings, TIMING_SIZE); |
| 175 | pinfo->mipi.signature = JDI_1080P_VIDEO_SIGNATURE; |
| 176 | break; |
| 177 | case GENERIC_720P_CMD_PANEL: |
| 178 | panelstruct->paneldata = &generic_720p_cmd_panel_data; |
| 179 | panelstruct->panelres = &generic_720p_cmd_panel_res; |
| 180 | panelstruct->color = &generic_720p_cmd_color; |
| 181 | panelstruct->videopanel = &generic_720p_cmd_video_panel; |
| 182 | panelstruct->commandpanel = &generic_720p_cmd_command_panel; |
| 183 | panelstruct->state = &generic_720p_cmd_state; |
| 184 | panelstruct->laneconfig = &generic_720p_cmd_lane_config; |
| 185 | panelstruct->paneltiminginfo |
| 186 | = &generic_720p_cmd_timing_info; |
| 187 | panelstruct->panelresetseq |
| 188 | = &generic_720p_cmd_reset_seq; |
| 189 | panelstruct->backlightinfo = &generic_720p_cmd_backlight; |
| 190 | pinfo->mipi.panel_cmds |
| 191 | = generic_720p_cmd_on_command; |
| 192 | pinfo->mipi.num_of_panel_cmds |
| 193 | = GENERIC_720P_CMD_ON_COMMAND; |
| 194 | memcpy(phy_db->timing, |
| 195 | generic_720p_cmd_timings, TIMING_SIZE); |
| 196 | pinfo->mipi.signature = GENERIC_720P_CMD_SIGNATURE; |
| 197 | break; |
| 198 | case JDI_QHD_DUALDSI_VIDEO_PANEL: |
| 199 | panelstruct->paneldata = &jdi_qhd_dualdsi_video_panel_data; |
| 200 | panelstruct->panelres = &jdi_qhd_dualdsi_video_panel_res; |
| 201 | panelstruct->color = &jdi_qhd_dualdsi_video_color; |
| 202 | panelstruct->videopanel = &jdi_qhd_dualdsi_video_video_panel; |
| 203 | panelstruct->commandpanel = &jdi_qhd_dualdsi_video_command_panel; |
| 204 | panelstruct->state = &jdi_qhd_dualdsi_video_state; |
| 205 | panelstruct->laneconfig = &jdi_qhd_dualdsi_video_lane_config; |
| 206 | panelstruct->paneltiminginfo |
| 207 | = &jdi_qhd_dualdsi_video_timing_info; |
| 208 | panelstruct->panelresetseq |
| 209 | = &jdi_qhd_dualdsi_video_reset_seq; |
| 210 | panelstruct->backlightinfo = &jdi_qhd_dualdsi_video_backlight; |
| 211 | pinfo->mipi.panel_cmds |
| 212 | = jdi_qhd_dualdsi_video_on_command; |
| 213 | pinfo->mipi.num_of_panel_cmds |
| 214 | = JDI_QHD_DUALDSI_VIDEO_ON_COMMAND; |
| 215 | memcpy(phy_db->timing, |
| 216 | jdi_qhd_dualdsi_video_timings, TIMING_SIZE); |
| 217 | break; |
| 218 | case JDI_QHD_DUALDSI_CMD_PANEL: |
| 219 | panelstruct->paneldata = &jdi_qhd_dualdsi_cmd_panel_data; |
| 220 | panelstruct->panelres = &jdi_qhd_dualdsi_cmd_panel_res; |
| 221 | panelstruct->color = &jdi_qhd_dualdsi_cmd_color; |
| 222 | panelstruct->videopanel = &jdi_qhd_dualdsi_cmd_video_panel; |
| 223 | panelstruct->commandpanel = &jdi_qhd_dualdsi_cmd_command_panel; |
| 224 | panelstruct->state = &jdi_qhd_dualdsi_cmd_state; |
| 225 | panelstruct->laneconfig = &jdi_qhd_dualdsi_cmd_lane_config; |
| 226 | panelstruct->paneltiminginfo |
| 227 | = &jdi_qhd_dualdsi_cmd_timing_info; |
| 228 | panelstruct->panelresetseq |
| 229 | = &jdi_qhd_dualdsi_cmd_reset_seq; |
| 230 | panelstruct->backlightinfo = &jdi_qhd_dualdsi_cmd_backlight; |
| 231 | pinfo->mipi.panel_cmds |
| 232 | = jdi_qhd_dualdsi_cmd_on_command; |
| 233 | pinfo->mipi.num_of_panel_cmds |
| 234 | = JDI_QHD_DUALDSI_CMD_ON_COMMAND; |
| 235 | memcpy(phy_db->timing, |
| 236 | jdi_qhd_dualdsi_cmd_timings, TIMING_SIZE); |
| 237 | break; |
liuyan | 8c8b2c0 | 2015-01-26 15:27:19 +0800 | [diff] [blame] | 238 | case OTM1902B_1080P_CMD_PANEL: |
| 239 | panelstruct->paneldata = &otm1902b_1080p_cmd_panel_data; |
| 240 | panelstruct->panelres = &otm1902b_1080p_cmd_panel_res; |
| 241 | panelstruct->color = &otm1902b_1080p_cmd_color; |
| 242 | panelstruct->videopanel = &otm1902b_1080p_cmd_video_panel; |
| 243 | panelstruct->commandpanel = &otm1902b_1080p_cmd_command_panel; |
| 244 | panelstruct->state = &otm1902b_1080p_cmd_state; |
| 245 | panelstruct->laneconfig = &otm1902b_1080p_cmd_lane_config; |
| 246 | panelstruct->paneltiminginfo |
| 247 | = &otm1902b_1080p_cmd_timing_info; |
| 248 | panelstruct->panelresetseq |
| 249 | = &otm1902b_1080p_cmd_panel_reset_seq; |
| 250 | panelstruct->backlightinfo = &otm1902b_1080p_cmd_backlight; |
| 251 | pinfo->mipi.panel_cmds |
| 252 | = otm1902b_1080p_cmd_on_command; |
| 253 | pinfo->mipi.num_of_panel_cmds |
liuyan | 04e7c7a | 2015-02-09 19:50:08 +0800 | [diff] [blame] | 254 | = OTM1902B_1080P_CMD_ON_COMMAND; |
liuyan | 8c8b2c0 | 2015-01-26 15:27:19 +0800 | [diff] [blame] | 255 | memcpy(phy_db->timing, |
| 256 | otm1902b_1080p_cmd_timings, TIMING_SIZE); |
Dirk Vogt | 068e29b | 2017-05-15 17:10:16 +0200 | [diff] [blame] | 257 | pinfo->mipi.signature = OTM1902B_1080P_VIDEO_SIGNATURE; |
liuyan | 8c8b2c0 | 2015-01-26 15:27:19 +0800 | [diff] [blame] | 258 | break; |
Anna Lemehova | ce720b2 | 2017-05-03 13:51:19 +0300 | [diff] [blame] | 259 | case S6D6FA1_1080P_VIDEO_PANEL: |
Borjan Tchakaloff | 87f6ac0 | 2017-07-13 15:14:02 +0200 | [diff] [blame] | 260 | case S6D6FA1_1080P_VIDEO_PANEL_PROTO: |
Anna Lemehova | ce720b2 | 2017-05-03 13:51:19 +0300 | [diff] [blame] | 261 | panelstruct->paneldata = &s6d6fa1_1080p_video_panel_data; |
| 262 | panelstruct->panelres = &s6d6fa1_1080p_video_panel_res; |
| 263 | panelstruct->color = &s6d6fa1_1080p_video_color; |
| 264 | panelstruct->videopanel = &s6d6fa1_1080p_video_video_panel; |
| 265 | panelstruct->commandpanel = &s6d6fa1_1080p_video_command_panel; |
| 266 | panelstruct->state = &s6d6fa1_1080p_video_state; |
| 267 | panelstruct->laneconfig = &s6d6fa1_1080p_video_lane_config; |
| 268 | panelstruct->paneltiminginfo |
| 269 | = &s6d6fa1_1080p_video_timing_info; |
| 270 | panelstruct->panelresetseq |
| 271 | = &s6d6fa1_1080p_video_panel_reset_seq; |
| 272 | panelstruct->backlightinfo = &s6d6fa1_1080p_video_backlight; |
| 273 | pinfo->mipi.panel_cmds |
| 274 | = s6d6fa1_1080p_video_on_command; |
| 275 | pinfo->mipi.num_of_panel_cmds |
| 276 | = S6D6FA1_1080P_VIDEO_ON_COMMAND; |
| 277 | memcpy(phy_db->timing, |
| 278 | s6d6fa1_1080p_video_timings, TIMING_SIZE); |
| 279 | pinfo->mipi.signature = S6D6FA1_1080P_VIDEO_SIGNATURE; |
| 280 | break; |
wangxl | 1ddbd09 | 2015-02-03 20:31:24 +0800 | [diff] [blame] | 281 | case UNKNOWN_PANEL: |
| 282 | memset(panelstruct, 0, sizeof(struct panel_struct)); |
| 283 | memset(pinfo->mipi.panel_cmds, 0, sizeof(struct mipi_dsi_cmd)); |
| 284 | pinfo->mipi.num_of_panel_cmds = 0; |
| 285 | memset(phy_db->timing, 0, TIMING_SIZE); |
| 286 | pinfo->mipi.signature = 0; |
| 287 | break; |
| 288 | } |
Borjan Tchakaloff | 87f6ac0 | 2017-07-13 15:14:02 +0200 | [diff] [blame] | 289 | if (S6D6FA1_1080P_VIDEO_PANEL_PROTO == panel_id) { |
| 290 | pinfo->mipi.signature = S6D6FA1_1080P_VIDEO_SIGNATURE_PROTO; |
| 291 | } |
wangxl | 1ddbd09 | 2015-02-03 20:31:24 +0800 | [diff] [blame] | 292 | } |
| 293 | |
| 294 | uint32_t oem_panel_max_auto_detect_panels() |
| 295 | { |
| 296 | return target_panel_auto_detect_enabled() ? |
| 297 | DISPLAY_MAX_PANEL_DETECTION : 0; |
| 298 | } |
| 299 | |
| 300 | static uint32_t auto_pan_loop = 0; |
| 301 | |
| 302 | bool oem_panel_select(const char *panel_name, struct panel_struct *panelstruct, |
| 303 | struct msm_panel_info *pinfo, |
| 304 | struct mdss_dsi_phy_ctrl *phy_db) |
| 305 | { |
| 306 | uint32_t hw_id = board_hardware_id(); |
| 307 | uint32_t target_id = board_target_id(); |
| 308 | bool ret = true; |
| 309 | int32_t panel_override_id; |
| 310 | |
| 311 | if (panel_name) { |
| 312 | panel_override_id = panel_name_to_id(supp_panels, |
| 313 | ARRAY_SIZE(supp_panels), panel_name); |
| 314 | |
| 315 | if (panel_override_id < 0) { |
| 316 | dprintf(CRITICAL, "Not able to search the panel:%s\n", |
| 317 | panel_name + strspn(panel_name, " ")); |
| 318 | } else if (panel_override_id < UNKNOWN_PANEL) { |
| 319 | /* panel override using fastboot oem command */ |
| 320 | panel_id = panel_override_id; |
| 321 | |
| 322 | dprintf(INFO, "OEM panel override:%s\n", |
| 323 | panel_name + strspn(panel_name, " ")); |
| 324 | goto panel_init; |
| 325 | } |
| 326 | } |
| 327 | |
| 328 | switch (hw_id) { |
| 329 | case HW_PLATFORM_MTP: |
| 330 | case HW_PLATFORM_FLUID: |
| 331 | case HW_PLATFORM_SURF: |
| 332 | switch (auto_pan_loop) { |
| 333 | case 0: |
Anna Lemehova | ce720b2 | 2017-05-03 13:51:19 +0300 | [diff] [blame] | 334 | panel_id = S6D6FA1_1080P_VIDEO_PANEL; |
wangxl | 1ddbd09 | 2015-02-03 20:31:24 +0800 | [diff] [blame] | 335 | break; |
| 336 | case 1: |
Borjan Tchakaloff | 87f6ac0 | 2017-07-13 15:14:02 +0200 | [diff] [blame] | 337 | panel_id = S6D6FA1_1080P_VIDEO_PANEL_PROTO; |
wangxl | 1ddbd09 | 2015-02-03 20:31:24 +0800 | [diff] [blame] | 338 | break; |
| 339 | case 2: |
Borjan Tchakaloff | 87f6ac0 | 2017-07-13 15:14:02 +0200 | [diff] [blame] | 340 | panel_id = OTM1902B_1080P_CMD_PANEL; |
| 341 | break; |
| 342 | case 3: |
wangxl | 1ddbd09 | 2015-02-03 20:31:24 +0800 | [diff] [blame] | 343 | panel_id = GENERIC_720P_CMD_PANEL; |
| 344 | break; |
| 345 | default: |
| 346 | panel_id = UNKNOWN_PANEL; |
| 347 | ret = false; |
| 348 | break; |
| 349 | } |
| 350 | auto_pan_loop++; |
| 351 | break; |
| 352 | case HW_PLATFORM_DRAGON: |
| 353 | panel_id = SHARP_QHD_VIDEO_PANEL; |
| 354 | break; |
| 355 | default: |
| 356 | dprintf(CRITICAL, "Display not enabled for %d HW type\n" |
| 357 | , hw_id); |
| 358 | return false; |
| 359 | } |
liuyan | 04e7c7a | 2015-02-09 19:50:08 +0800 | [diff] [blame] | 360 | |
wangxl | 1ddbd09 | 2015-02-03 20:31:24 +0800 | [diff] [blame] | 361 | panel_init: |
| 362 | init_panel_data(panelstruct, pinfo, phy_db); |
| 363 | |
| 364 | return ret; |
| 365 | } |