Vineet Bajaj | eea6fce | 2015-02-02 13:07:08 +0530 | [diff] [blame] | 1 | /* Copyright (c) 2015, 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_JDI_A216_FHD_VIDEO_H_ |
| 37 | #define _PANEL_JDI_A216_FHD_VIDEO_H_ |
| 38 | /*---------------------------------------------------------------------------*/ |
| 39 | /* HEADER files */ |
| 40 | /*---------------------------------------------------------------------------*/ |
| 41 | #include "panel.h" |
| 42 | |
| 43 | /*---------------------------------------------------------------------------*/ |
| 44 | /* Panel configuration */ |
| 45 | /*---------------------------------------------------------------------------*/ |
| 46 | static struct panel_config jdi_a216_fhd_video_panel_data = { |
| 47 | "qcom,mdss_dsi_jdi_a216_fhd_video", "dsi:0:", "qcom,mdss-dsi-panel", |
| 48 | 10, 0, "DISPLAY_1", 0, 0, 60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0 |
| 49 | }; |
| 50 | |
| 51 | /*---------------------------------------------------------------------------*/ |
| 52 | /* Panel resolution */ |
| 53 | /*---------------------------------------------------------------------------*/ |
| 54 | static struct panel_resolution jdi_a216_fhd_video_panel_res = { |
| 55 | 1080, 1920, 32, 20, 12, 0, 4, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0 |
| 56 | }; |
| 57 | |
| 58 | /*---------------------------------------------------------------------------*/ |
| 59 | /* Panel color information */ |
| 60 | /*---------------------------------------------------------------------------*/ |
| 61 | static struct color_info jdi_a216_fhd_video_color = { |
| 62 | 24, 0, 0xff, 0, 0, 0 |
| 63 | }; |
| 64 | |
| 65 | /*---------------------------------------------------------------------------*/ |
| 66 | /* Panel on/off command information */ |
| 67 | /*---------------------------------------------------------------------------*/ |
| 68 | static char jdi_a216_fhd_video_on_cmd0[] = { |
| 69 | 0x51, 0xFF, 0x15, 0x80 |
| 70 | }; |
| 71 | |
| 72 | static char jdi_a216_fhd_video_on_cmd1[] = { |
| 73 | 0x53, 0x0C, 0x15, 0x80 |
| 74 | }; |
| 75 | |
| 76 | static char jdi_a216_fhd_video_on_cmd2[] = { |
| 77 | 0x55, 0x00, 0x15, 0x80 |
| 78 | }; |
| 79 | |
| 80 | static char jdi_a216_fhd_video_on_cmd3[] = { |
| 81 | 0x29, 0x00, 0x05, 0x80 |
| 82 | }; |
| 83 | |
| 84 | static char jdi_a216_fhd_video_on_cmd4[] = { |
| 85 | 0x11, 0x00, 0x05, 0x80 |
| 86 | }; |
| 87 | |
Vineet Bajaj | 2d0def0 | 2015-03-10 01:03:39 +0530 | [diff] [blame] | 88 | static char jdi_a216_fhd_video_on_cmd5[] = { |
| 89 | 0xB0, 0x04, 0x29, 0x80 |
| 90 | }; |
| 91 | |
| 92 | static char jdi_a216_fhd_video_on_cmd6[] = { |
| 93 | 0x06, 0x00, 0x29, 0xC0, |
| 94 | 0xD0, 0x10, 0x93, 0xBB, |
| 95 | 0x12, 0x8E, 0xFF, 0xFF |
| 96 | }; |
| 97 | |
| 98 | |
Vineet Bajaj | eea6fce | 2015-02-02 13:07:08 +0530 | [diff] [blame] | 99 | static struct mipi_dsi_cmd jdi_a216_fhd_video_on_command[] = { |
| 100 | {0x4, jdi_a216_fhd_video_on_cmd0, 0x0a}, |
| 101 | {0x4, jdi_a216_fhd_video_on_cmd1, 0x0a}, |
| 102 | {0x4, jdi_a216_fhd_video_on_cmd2, 0x0a}, |
| 103 | {0x4, jdi_a216_fhd_video_on_cmd3, 0x28}, |
| 104 | {0x4, jdi_a216_fhd_video_on_cmd4, 0xc8}, |
Vineet Bajaj | 2d0def0 | 2015-03-10 01:03:39 +0530 | [diff] [blame] | 105 | {0x4, jdi_a216_fhd_video_on_cmd5, 0x0a}, |
| 106 | {0xc, jdi_a216_fhd_video_on_cmd6, 0x0a} |
Vineet Bajaj | eea6fce | 2015-02-02 13:07:08 +0530 | [diff] [blame] | 107 | }; |
| 108 | |
Vineet Bajaj | 2d0def0 | 2015-03-10 01:03:39 +0530 | [diff] [blame] | 109 | #define JDI_A216_FHD_VIDEO_ON_COMMAND 7 |
Vineet Bajaj | eea6fce | 2015-02-02 13:07:08 +0530 | [diff] [blame] | 110 | |
| 111 | |
| 112 | static char jdi_a216_fhd_videooff_cmd0[] = { |
| 113 | 0x28, 0x00, 0x05, 0x80 |
| 114 | }; |
| 115 | |
| 116 | static char jdi_a216_fhd_videooff_cmd1[] = { |
| 117 | 0x10, 0x00, 0x05, 0x80 |
| 118 | }; |
| 119 | |
| 120 | static struct mipi_dsi_cmd jdi_a216_fhd_video_off_command[] = { |
| 121 | {0x4, jdi_a216_fhd_videooff_cmd0, 0x32}, |
| 122 | {0x4, jdi_a216_fhd_videooff_cmd1, 0x78} |
| 123 | }; |
| 124 | |
| 125 | #define JDI_A216_FHD_VIDEO_OFF_COMMAND 2 |
| 126 | |
| 127 | |
| 128 | static struct command_state jdi_a216_fhd_video_state = { |
Vineet Bajaj | 2d0def0 | 2015-03-10 01:03:39 +0530 | [diff] [blame] | 129 | 1, 1 |
Vineet Bajaj | eea6fce | 2015-02-02 13:07:08 +0530 | [diff] [blame] | 130 | }; |
| 131 | |
| 132 | /*---------------------------------------------------------------------------*/ |
| 133 | /* Command mode panel information */ |
| 134 | /*---------------------------------------------------------------------------*/ |
| 135 | static struct commandpanel_info jdi_a216_fhd_video_command_panel = { |
| 136 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 |
| 137 | }; |
| 138 | |
| 139 | /*---------------------------------------------------------------------------*/ |
| 140 | /* Video mode panel information */ |
| 141 | /*---------------------------------------------------------------------------*/ |
| 142 | static struct videopanel_info jdi_a216_fhd_video_video_panel = { |
| 143 | 0, 0, 0, 0, 1, 1, 2, 0, 0x9 |
| 144 | }; |
| 145 | |
| 146 | /*---------------------------------------------------------------------------*/ |
| 147 | /* Lane configuration */ |
| 148 | /*---------------------------------------------------------------------------*/ |
| 149 | static struct lane_configuration jdi_a216_fhd_video_lane_config = { |
| 150 | 4, 0, 1, 1, 1, 1 |
| 151 | }; |
| 152 | |
| 153 | /*---------------------------------------------------------------------------*/ |
| 154 | /* Panel timing */ |
| 155 | /*---------------------------------------------------------------------------*/ |
| 156 | static const uint32_t jdi_a216_fhd_video_timings[] = { |
| 157 | 0xce, 0x2e, 0x1e, 0x00, 0x5a, 0x5c, 0x24, 0x30, 0x24, 0x03, 0x04, 0x00 |
| 158 | }; |
| 159 | |
| 160 | static struct panel_timing jdi_a216_fhd_video_timing_info = { |
| 161 | 0x0, 0x04, 0x0a, 0x2c |
| 162 | }; |
| 163 | |
| 164 | /*---------------------------------------------------------------------------*/ |
| 165 | /* Panel reset sequence */ |
| 166 | /*---------------------------------------------------------------------------*/ |
| 167 | static struct panel_reset_sequence jdi_a216_fhd_video_reset_seq = { |
| 168 | {1, 0, 1, }, {20, 200, 20, }, 2 |
| 169 | }; |
| 170 | |
| 171 | /*---------------------------------------------------------------------------*/ |
| 172 | /* Backlight setting */ |
| 173 | /*---------------------------------------------------------------------------*/ |
| 174 | static struct backlight jdi_a216_fhd_video_backlight = { |
| 175 | 1, 1, 4095, 100, 1, "PMIC_8941" |
| 176 | }; |
| 177 | |
| 178 | #endif /*_PANEL_JDI_A216_FHD_VIDEO_H_*/ |