Ray Zhang | 0d303af | 2015-01-21 10:17:02 +0800 | [diff] [blame] | 1 | /* Copyright (c) 2014-2015, The Linux Foundation. All rights reserved. |
Ilia Lin | 90e83d5 | 2014-11-06 09:04:17 +0200 | [diff] [blame] | 2 | * |
| 3 | * Redistribution and use in source and binary forms, with or without |
| 4 | * modification, are permitted provided that the following conditions are |
| 5 | * 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 |
| 9 | * copyright notice, this list of conditions and the following |
| 10 | * disclaimer in the documentation and/or other materials provided |
| 11 | * with the 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 "AS IS" AND ANY EXPRESS OR IMPLIED |
| 17 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
| 18 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT |
| 19 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS |
| 20 | * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
| 21 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
| 22 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR |
| 23 | * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, |
| 24 | * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE |
| 25 | * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN |
| 26 | * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 | */ |
| 28 | |
| 29 | /*--------------------------------------------------------------------------- |
| 30 | * This file is autogenerated file using gcdb parser. Please do not edit it. |
| 31 | * Update input XML file to add a new entry or update variable in this file |
| 32 | * VERSION = "1.0" |
| 33 | *---------------------------------------------------------------------------*/ |
| 34 | |
| 35 | #ifndef _PANEL_HX8379A_TRULY_FWVGA_VIDEO_H_ |
| 36 | #define _PANEL_HX8379A_TRULY_FWVGA_VIDEO_H_ |
| 37 | /*---------------------------------------------------------------------------*/ |
| 38 | /* HEADER files */ |
| 39 | /*---------------------------------------------------------------------------*/ |
| 40 | #include "panel.h" |
| 41 | |
| 42 | /*---------------------------------------------------------------------------*/ |
| 43 | /* Panel configuration */ |
| 44 | /*---------------------------------------------------------------------------*/ |
| 45 | static struct panel_config hx8379a_truly_fwvga_video_panel_data = { |
| 46 | "qcom,mdss_dsi_hx8379a_truly_fwvga_video", "dsi:0:", "qcom,mdss-dsi-panel", |
Veera Sundaram Sankaran | 824e6fa | 2014-12-09 11:32:58 -0800 | [diff] [blame] | 47 | 10, 0, "DISPLAY_1", 0, 0, 60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, "" |
Ilia Lin | 90e83d5 | 2014-11-06 09:04:17 +0200 | [diff] [blame] | 48 | }; |
| 49 | |
| 50 | /*---------------------------------------------------------------------------*/ |
| 51 | /* Panel resolution */ |
| 52 | /*---------------------------------------------------------------------------*/ |
| 53 | static struct panel_resolution hx8379a_truly_fwvga_video_panel_res = { |
| 54 | 480, 854, 100, 94, 40, 0, 6, 4, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0 |
| 55 | }; |
| 56 | |
| 57 | /*---------------------------------------------------------------------------*/ |
| 58 | /* Panel color information */ |
| 59 | /*---------------------------------------------------------------------------*/ |
| 60 | static struct color_info hx8379a_truly_fwvga_video_color = { |
| 61 | 24, 0, 0xff, 0, 0, 0 |
| 62 | }; |
| 63 | |
| 64 | /*---------------------------------------------------------------------------*/ |
| 65 | /* Panel on/off command information */ |
| 66 | /*---------------------------------------------------------------------------*/ |
| 67 | static char hx8379a_truly_fwvga_video_on_cmd0[] = { |
| 68 | 0x11, 0x00, 0x05, 0x80 |
| 69 | }; |
| 70 | |
| 71 | static char hx8379a_truly_fwvga_video_on_cmd1[] = { |
| 72 | 0x29, 0x00, 0x05, 0x80 |
| 73 | }; |
| 74 | |
| 75 | static struct mipi_dsi_cmd hx8379a_truly_fwvga_video_on_command[] = { |
| 76 | {0x4, hx8379a_truly_fwvga_video_on_cmd0, 0x96}, |
| 77 | {0x4, hx8379a_truly_fwvga_video_on_cmd1, 0x78}, |
| 78 | }; |
| 79 | |
| 80 | #define HX8379A_TRULY_FWVGA_VIDEO_ON_COMMAND 2 |
| 81 | |
| 82 | static char hx8379a_truly_fwvga_videooff_cmd0[] = { |
| 83 | 0x28, 0x00, 0x05, 0x80 |
| 84 | }; |
| 85 | |
| 86 | static char hx8379a_truly_fwvga_videooff_cmd1[] = { |
| 87 | 0x10, 0x00, 0x05, 0x80 |
| 88 | }; |
| 89 | |
| 90 | static struct mipi_dsi_cmd hx8379a_truly_fwvga_video_off_command[] = { |
| 91 | {0x4, hx8379a_truly_fwvga_videooff_cmd0, 0x32}, |
| 92 | {0x4, hx8379a_truly_fwvga_videooff_cmd1, 0x78} |
| 93 | }; |
| 94 | |
| 95 | #define HX8379A_TRULY_FWVGA_VIDEO_OFF_COMMAND 2 |
| 96 | |
| 97 | |
| 98 | static struct command_state hx8379a_truly_fwvga_video_state = { |
| 99 | 0, 1 |
| 100 | }; |
| 101 | |
| 102 | /*---------------------------------------------------------------------------*/ |
| 103 | /* Command mode panel information */ |
| 104 | /*---------------------------------------------------------------------------*/ |
| 105 | static struct commandpanel_info hx8379a_truly_fwvga_video_command_panel = { |
| 106 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 |
| 107 | }; |
| 108 | |
| 109 | /*---------------------------------------------------------------------------*/ |
| 110 | /* Video mode panel information */ |
| 111 | /*---------------------------------------------------------------------------*/ |
| 112 | static struct videopanel_info hx8379a_truly_fwvga_video_video_panel = { |
| 113 | 0, 0, 0, 0, 1, 1, DSI_NON_BURST_SYNCH_EVENT, 0, 0x9 |
| 114 | }; |
| 115 | |
| 116 | /*---------------------------------------------------------------------------*/ |
| 117 | /* Lane configuration */ |
| 118 | /*---------------------------------------------------------------------------*/ |
| 119 | static struct lane_configuration hx8379a_truly_fwvga_video_lane_config = { |
Ray Zhang | 0d303af | 2015-01-21 10:17:02 +0800 | [diff] [blame] | 120 | 2, 0, 1, 1, 0, 0, 0 |
Ilia Lin | 90e83d5 | 2014-11-06 09:04:17 +0200 | [diff] [blame] | 121 | }; |
| 122 | |
| 123 | /*---------------------------------------------------------------------------*/ |
| 124 | /* Panel timing */ |
| 125 | /*---------------------------------------------------------------------------*/ |
| 126 | static const uint32_t hx8379a_truly_fwvga_video_timings[] = { |
| 127 | 0x8B, 0x1f, 0x14, 0x00, 0x45, 0x4A, 0x19, 0x23, 0x23, 0x03, 0x04, 0x00 |
| 128 | }; |
| 129 | |
| 130 | static struct panel_timing hx8379a_truly_fwvga_video_timing_info = { |
| 131 | 0, 4, 0x04, 0x1d |
| 132 | }; |
| 133 | |
| 134 | /*---------------------------------------------------------------------------*/ |
| 135 | /* Panel reset sequence */ |
| 136 | /*---------------------------------------------------------------------------*/ |
| 137 | static struct panel_reset_sequence hx8379a_truly_fwvga_video_reset_seq = { |
| 138 | {1, 0, 1, }, {20, 2, 20, }, 2 |
| 139 | }; |
| 140 | |
| 141 | /*---------------------------------------------------------------------------*/ |
| 142 | /* Backlight setting */ |
| 143 | /*---------------------------------------------------------------------------*/ |
| 144 | static struct backlight hx8379a_truly_fwvga_video_backlight = { |
| 145 | BL_PWM, 1, 255, 0, 2, 0 |
| 146 | }; |
| 147 | |
Siddharth Zaveri | cd8f5fa | 2015-12-12 14:49:08 -0500 | [diff] [blame] | 148 | static const uint32_t hx8379a_truly_fwvga_thulium_video_timings[] = { |
| 149 | 0x23, 0x20, 0x06, 0x09, 0x05, 0x03, 0x04, 0xa0, |
| 150 | 0x23, 0x20, 0x06, 0x09, 0x05, 0x03, 0x04, 0xa0, |
| 151 | 0x23, 0x20, 0x06, 0x09, 0x05, 0x03, 0x04, 0xa0, |
| 152 | 0x23, 0x20, 0x06, 0x09, 0x05, 0x03, 0x04, 0xa0, |
| 153 | 0x23, 0x2e, 0x06, 0x09, 0x05, 0x03, 0x04, 0xa0, |
| 154 | }; |
| 155 | |
Ilia Lin | 90e83d5 | 2014-11-06 09:04:17 +0200 | [diff] [blame] | 156 | #endif /*_PANEL_HX8379A_TRULY_FWVGA_VIDEO_H_*/ |