Casey Piper | 613a896 | 2013-09-09 20:18:25 -0700 | [diff] [blame] | 1 | /* Copyright (c) 2013, 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 | /*--------------------------------------------------------------------------- |
| 31 | * This file is autogenerated file using gcdb parser. Please do not edit it. |
| 32 | * Update input XML file to add a new entry or update variable in this file |
| 33 | * VERSION = "1.0" |
| 34 | *---------------------------------------------------------------------------*/ |
| 35 | |
| 36 | #ifndef _PANEL_SHARP_QHD_VIDEO_H_ |
| 37 | |
| 38 | #define _PANEL_SHARP_QHD_VIDEO_H_ |
| 39 | /*---------------------------------------------------------------------------*/ |
| 40 | /* HEADER files */ |
| 41 | /*---------------------------------------------------------------------------*/ |
| 42 | #include "panel.h" |
| 43 | |
| 44 | /*---------------------------------------------------------------------------*/ |
| 45 | /* Panel configuration */ |
| 46 | /*---------------------------------------------------------------------------*/ |
| 47 | |
| 48 | static struct panel_config sharp_qhd_video_panel_data = { |
| 49 | "qcom,mdss_dsi_sharp_qhd_video", "dsi:0:", "qcom,mdss-dsi-panel", |
| 50 | 10, 0, "DISPLAY_1", 0, 0, 60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 |
| 51 | }; |
| 52 | |
| 53 | /*---------------------------------------------------------------------------*/ |
| 54 | /* Panel resolution */ |
| 55 | /*---------------------------------------------------------------------------*/ |
| 56 | static struct panel_resolution sharp_qhd_video_panel_res = { |
| 57 | 540, 960, 48, 80, 32, 0, 3, 15, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0 |
| 58 | }; |
| 59 | |
| 60 | /*---------------------------------------------------------------------------*/ |
| 61 | /* Panel Color Information */ |
| 62 | /*---------------------------------------------------------------------------*/ |
| 63 | static struct color_info sharp_qhd_video_color = { |
| 64 | 24, 2, 0xff, 0, 0, 0 |
| 65 | }; |
| 66 | |
| 67 | /*---------------------------------------------------------------------------*/ |
| 68 | /* Panel Command information */ |
| 69 | /*---------------------------------------------------------------------------*/ |
| 70 | static char sharp_qhd_video_on_cmd0[] = { |
| 71 | 0x01, 0x00, 0x05, 0x80 }; |
| 72 | |
| 73 | |
| 74 | static char sharp_qhd_video_on_cmd1[] = { |
| 75 | 0x11, 0x00, 0x05, 0x80 }; |
| 76 | |
| 77 | |
| 78 | static char sharp_qhd_video_on_cmd2[] = { |
| 79 | 0x53, 0x2c, 0x15, 0x80 }; |
| 80 | |
| 81 | |
| 82 | static char sharp_qhd_video_on_cmd3[] = { |
| 83 | 0x51, 0xff, 0x15, 0x80 }; |
| 84 | |
| 85 | |
| 86 | static char sharp_qhd_video_on_cmd4[] = { |
| 87 | 0x29, 0x00, 0x05, 0x80 }; |
| 88 | |
| 89 | |
| 90 | static char sharp_qhd_video_on_cmd5[] = { |
| 91 | 0xae, 0x03, 0x15, 0x80 }; |
| 92 | |
| 93 | |
| 94 | static char sharp_qhd_video_on_cmd6[] = { |
| 95 | 0x3a, 0x77, 0x15, 0x80 }; |
| 96 | |
| 97 | |
| 98 | |
| 99 | |
| 100 | static struct mipi_dsi_cmd sharp_qhd_video_on_command[] = { |
| 101 | { 0x4 , sharp_qhd_video_on_cmd0}, |
| 102 | { 0x4 , sharp_qhd_video_on_cmd1}, |
| 103 | { 0x4 , sharp_qhd_video_on_cmd2}, |
| 104 | { 0x4 , sharp_qhd_video_on_cmd3}, |
| 105 | { 0x4 , sharp_qhd_video_on_cmd4}, |
| 106 | { 0x4 , sharp_qhd_video_on_cmd5}, |
| 107 | { 0x4 , sharp_qhd_video_on_cmd6} |
| 108 | }; |
| 109 | #define SHARP_QHD_VIDEO_ON_COMMAND 7 |
| 110 | |
| 111 | |
| 112 | static char sharp_qhd_videooff_cmd0[] = { |
| 113 | 0x28, 0x00, 0x05, 0x80 }; |
| 114 | |
| 115 | |
| 116 | static char sharp_qhd_videooff_cmd1[] = { |
| 117 | 0x10, 0x00, 0x05, 0x80 }; |
| 118 | |
| 119 | |
| 120 | |
| 121 | |
| 122 | static struct mipi_dsi_cmd sharp_qhd_video_off_command[] = { |
| 123 | { 0x4 , sharp_qhd_videooff_cmd0}, |
| 124 | { 0x4 , sharp_qhd_videooff_cmd1} |
| 125 | }; |
| 126 | #define SHARP_QHD_VIDEO_OFF_COMMAND 2 |
| 127 | |
| 128 | |
| 129 | static struct command_state sharp_qhd_video_state = { |
| 130 | 0, 1 |
| 131 | }; |
| 132 | |
| 133 | /*---------------------------------------------------------------------------*/ |
| 134 | /* Command mode panel information */ |
| 135 | /*---------------------------------------------------------------------------*/ |
| 136 | |
| 137 | static struct commandpanel_info sharp_qhd_video_command_panel = { |
| 138 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 |
| 139 | }; |
| 140 | |
| 141 | /*---------------------------------------------------------------------------*/ |
| 142 | /* Video mode panel information */ |
| 143 | /*---------------------------------------------------------------------------*/ |
| 144 | |
| 145 | static struct videopanel_info sharp_qhd_video_video_panel = { |
| 146 | 1, 0, 0, 0, 1, 1, 0, 0, 0x9 |
| 147 | }; |
| 148 | |
| 149 | /*---------------------------------------------------------------------------*/ |
| 150 | /* Lane Configuration */ |
| 151 | /*---------------------------------------------------------------------------*/ |
| 152 | |
| 153 | static struct lane_configuration sharp_qhd_video_lane_config = { |
| 154 | 2, 0, 1, 1, 0, 0 |
| 155 | }; |
| 156 | |
| 157 | |
| 158 | /*---------------------------------------------------------------------------*/ |
| 159 | /* Panel Timing */ |
| 160 | /*---------------------------------------------------------------------------*/ |
| 161 | const uint32_t sharp_qhd_video_timings[] = { |
| 162 | 0x46, 0x1d, 0x20, 0x00, 0x39, 0x3a, 0x21, 0x21, 0x32, 0x03, 0x04, 0x00 |
| 163 | }; |
| 164 | |
| 165 | |
| 166 | |
| 167 | static struct mipi_dsi_cmd sharp_qhd_video_rotation[] = { |
| 168 | |
| 169 | }; |
| 170 | #define SHARP_QHD_VIDEO_ROTATION 0 |
| 171 | |
| 172 | |
| 173 | static struct panel_timing sharp_qhd_video_timing_info = { |
| 174 | 4, 4, 0x04, 0x1c |
| 175 | }; |
| 176 | |
| 177 | static struct panel_reset_sequence sharp_qhd_video_panel_reset_seq = { |
| 178 | { 1, 0, 1, }, { 20, 200, 20, }, 2 |
| 179 | }; |
| 180 | |
| 181 | /*---------------------------------------------------------------------------*/ |
| 182 | /* Backlight Settings */ |
| 183 | /*---------------------------------------------------------------------------*/ |
| 184 | |
| 185 | static struct backlight sharp_qhd_video_backlight = { |
| 186 | 1, 1, 4095, 100, 1, "PMIC_8941" |
| 187 | }; |
| 188 | |
| 189 | |
| 190 | #endif /*_PANEL_SHARP_QHD_VIDEO_H_*/ |