liuyan | 8c8b2c0 | 2015-01-26 15:27:19 +0800 | [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_OTM1902B_1080P_CMD_H_ |
| 37 | |
| 38 | #define _PANEL_OTM1902B_1080P_CMD_H_ |
| 39 | /*---------------------------------------------------------------------------*/ |
| 40 | /* HEADER files */ |
| 41 | /*---------------------------------------------------------------------------*/ |
| 42 | #include "panel.h" |
| 43 | |
| 44 | /*---------------------------------------------------------------------------*/ |
| 45 | /* Panel configuration */ |
| 46 | /*---------------------------------------------------------------------------*/ |
| 47 | |
| 48 | static struct panel_config otm1902b_1080p_cmd_panel_data = { |
| 49 | "qcom,mdss_dsi_otm1902b_1080p_cmd", "dsi:0:", "qcom,mdss-dsi-panel", |
| 50 | 10, 1, "DISPLAY_1", 0, 424000000, 60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 |
| 51 | }; |
| 52 | |
| 53 | /*---------------------------------------------------------------------------*/ |
| 54 | /* Panel resolution */ |
| 55 | /*---------------------------------------------------------------------------*/ |
| 56 | static struct panel_resolution otm1902b_1080p_cmd_panel_res = { |
liuyan | 04e7c7a | 2015-02-09 19:50:08 +0800 | [diff] [blame] | 57 | 1080, 1920, 40, 64, 8, 0, 6, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 |
liuyan | 8c8b2c0 | 2015-01-26 15:27:19 +0800 | [diff] [blame] | 58 | }; |
| 59 | |
| 60 | /*---------------------------------------------------------------------------*/ |
| 61 | /* Panel Color Information */ |
| 62 | /*---------------------------------------------------------------------------*/ |
| 63 | static struct color_info otm1902b_1080p_cmd_color = { |
| 64 | 24, 0, 0xff, 0, 0, 0 |
| 65 | }; |
| 66 | |
| 67 | /*---------------------------------------------------------------------------*/ |
| 68 | /* Panel Command information */ |
| 69 | /*---------------------------------------------------------------------------*/ |
| 70 | static char otm1902b_1080p_cmd_on_cmd0[] = { |
| 71 | 0x02, 0x00, 0x29, 0xC0, |
c.wang | 26f8d59 | 2016-04-21 18:50:05 +0800 | [diff] [blame^] | 72 | 0x00, 0x00, 0xFF, 0xFF, }; |
liuyan | 8c8b2c0 | 2015-01-26 15:27:19 +0800 | [diff] [blame] | 73 | |
| 74 | |
| 75 | static char otm1902b_1080p_cmd_on_cmd1[] = { |
c.wang | 26f8d59 | 2016-04-21 18:50:05 +0800 | [diff] [blame^] | 76 | 0x05, 0x00, 0x29, 0xC0, |
| 77 | 0xFF, 0x19, 0x02, 0x01, |
| 78 | 0X00, 0xFF, 0xFF, 0xFF, }; |
liuyan | 8c8b2c0 | 2015-01-26 15:27:19 +0800 | [diff] [blame] | 79 | |
| 80 | |
| 81 | static char otm1902b_1080p_cmd_on_cmd2[] = { |
| 82 | 0x02, 0x00, 0x29, 0xC0, |
c.wang | 26f8d59 | 2016-04-21 18:50:05 +0800 | [diff] [blame^] | 83 | 0x00, 0x80, 0xFF, 0xFF, }; |
liuyan | 8c8b2c0 | 2015-01-26 15:27:19 +0800 | [diff] [blame] | 84 | |
| 85 | |
| 86 | static char otm1902b_1080p_cmd_on_cmd3[] = { |
c.wang | 26f8d59 | 2016-04-21 18:50:05 +0800 | [diff] [blame^] | 87 | 0x03, 0x00, 0x29, 0xC0, |
| 88 | 0xFF, 0x19, 0x02, 0xFF, }; |
liuyan | 8c8b2c0 | 2015-01-26 15:27:19 +0800 | [diff] [blame] | 89 | |
| 90 | |
| 91 | static char otm1902b_1080p_cmd_on_cmd4[] = { |
| 92 | 0x02, 0x00, 0x29, 0xC0, |
c.wang | 26f8d59 | 2016-04-21 18:50:05 +0800 | [diff] [blame^] | 93 | 0x00, 0xB0, 0xFF, 0xFF, }; |
liuyan | 8c8b2c0 | 2015-01-26 15:27:19 +0800 | [diff] [blame] | 94 | |
| 95 | |
| 96 | static char otm1902b_1080p_cmd_on_cmd5[] = { |
c.wang | 26f8d59 | 2016-04-21 18:50:05 +0800 | [diff] [blame^] | 97 | 0x05, 0x00, 0x29, 0xC0, |
| 98 | 0xCA, 0x0A, 0x02, 0x5F, |
| 99 | 0x40, 0xFF, 0xFF, 0xFF, }; |
liuyan | 8c8b2c0 | 2015-01-26 15:27:19 +0800 | [diff] [blame] | 100 | |
| 101 | |
| 102 | static char otm1902b_1080p_cmd_on_cmd6[] = { |
| 103 | 0x02, 0x00, 0x29, 0xC0, |
c.wang | 26f8d59 | 2016-04-21 18:50:05 +0800 | [diff] [blame^] | 104 | 0x53, 0x2C, 0xFF, 0xFF, }; |
liuyan | 8c8b2c0 | 2015-01-26 15:27:19 +0800 | [diff] [blame] | 105 | |
| 106 | |
| 107 | static char otm1902b_1080p_cmd_on_cmd7[] = { |
| 108 | 0x02, 0x00, 0x29, 0xC0, |
liuyan | 04e7c7a | 2015-02-09 19:50:08 +0800 | [diff] [blame] | 109 | 0x51, 0xFF, 0xFF, 0xFF, }; |
| 110 | |
c.wang | 26f8d59 | 2016-04-21 18:50:05 +0800 | [diff] [blame^] | 111 | static char otm1902b_1080p_cmd_on_cmd8[] = { |
liuyan | 04e7c7a | 2015-02-09 19:50:08 +0800 | [diff] [blame] | 112 | 0x11, 0x00, 0x05, 0x80, }; |
| 113 | |
c.wang | 26f8d59 | 2016-04-21 18:50:05 +0800 | [diff] [blame^] | 114 | static char otm1902b_1080p_cmd_on_cmd9[] = { |
liuyan | 04e7c7a | 2015-02-09 19:50:08 +0800 | [diff] [blame] | 115 | 0x29, 0x00, 0x05, 0x80, }; |
liuyan | 8c8b2c0 | 2015-01-26 15:27:19 +0800 | [diff] [blame] | 116 | |
| 117 | static struct mipi_dsi_cmd otm1902b_1080p_cmd_on_command[] = { |
c.wang | 26f8d59 | 2016-04-21 18:50:05 +0800 | [diff] [blame^] | 118 | { 0x8 , otm1902b_1080p_cmd_on_cmd0 ,0x010}, |
| 119 | { 0xc , otm1902b_1080p_cmd_on_cmd1 ,0x010}, |
| 120 | { 0x8 , otm1902b_1080p_cmd_on_cmd2 ,0x010}, |
| 121 | { 0x8 , otm1902b_1080p_cmd_on_cmd3 ,0x010}, |
| 122 | { 0x8 , otm1902b_1080p_cmd_on_cmd4 ,0x010}, |
| 123 | { 0xc , otm1902b_1080p_cmd_on_cmd5 ,0x010}, |
| 124 | { 0x8 , otm1902b_1080p_cmd_on_cmd6 ,0x010}, |
| 125 | { 0x4 , otm1902b_1080p_cmd_on_cmd8 , 0x32}, |
| 126 | { 0x4 , otm1902b_1080p_cmd_on_cmd9 , 0x60}, |
liuyan | 04e7c7a | 2015-02-09 19:50:08 +0800 | [diff] [blame] | 127 | { 0x8 , otm1902b_1080p_cmd_on_cmd7 ,0x01}, |
liuyan | 8c8b2c0 | 2015-01-26 15:27:19 +0800 | [diff] [blame] | 128 | }; |
c.wang | 26f8d59 | 2016-04-21 18:50:05 +0800 | [diff] [blame^] | 129 | #define OTM1902B_1080P_CMD_ON_COMMAND 10 |
liuyan | 8c8b2c0 | 2015-01-26 15:27:19 +0800 | [diff] [blame] | 130 | |
| 131 | static char otm1902b_1080p_cmdoff_cmd0[] = { |
| 132 | 0x28, 0x00, 0x05, 0x80 }; |
| 133 | |
| 134 | |
| 135 | static char otm1902b_1080p_cmdoff_cmd1[] = { |
| 136 | 0x10, 0x00, 0x05, 0x80 }; |
| 137 | |
| 138 | |
| 139 | |
| 140 | |
| 141 | static struct mipi_dsi_cmd otm1902b_1080p_cmd_off_command[] = { |
| 142 | { 0x4 , otm1902b_1080p_cmdoff_cmd0 , 0x32}, |
| 143 | { 0x4 , otm1902b_1080p_cmdoff_cmd1 , 0x64} |
| 144 | }; |
| 145 | #define OTM1902B_1080P_CMD_OFF_COMMAND 2 |
| 146 | |
| 147 | |
| 148 | static struct command_state otm1902b_1080p_cmd_state = { |
| 149 | 0, 1 |
| 150 | }; |
| 151 | |
| 152 | /*---------------------------------------------------------------------------*/ |
| 153 | /* Command mode panel information */ |
| 154 | /*---------------------------------------------------------------------------*/ |
| 155 | |
| 156 | static struct commandpanel_info otm1902b_1080p_cmd_command_panel = { |
| 157 | 1, 1, 1, 0, 0, 0x2c, 0, 0, 0, 1, 0, 0 |
| 158 | }; |
| 159 | |
| 160 | /*---------------------------------------------------------------------------*/ |
| 161 | /* Video mode panel information */ |
| 162 | /*---------------------------------------------------------------------------*/ |
| 163 | |
| 164 | static struct videopanel_info otm1902b_1080p_cmd_video_panel = { |
| 165 | 1, 0, 0, 0, 1, 1, 2, 0, 0x9 |
| 166 | }; |
| 167 | |
| 168 | /*---------------------------------------------------------------------------*/ |
| 169 | /* Lane Configuration */ |
| 170 | /*---------------------------------------------------------------------------*/ |
| 171 | |
| 172 | static struct lane_configuration otm1902b_1080p_cmd_lane_config = { |
| 173 | 4, 0, 1, 1, 1, 1 |
| 174 | }; |
| 175 | |
| 176 | |
| 177 | /*---------------------------------------------------------------------------*/ |
| 178 | /* Panel Timing */ |
| 179 | /*---------------------------------------------------------------------------*/ |
| 180 | const uint32_t otm1902b_1080p_cmd_timings[] = { |
| 181 | 0xd5, 0x32, 0x22, 0x00, 0x60, 0x64, 0x26, 0x34, 0x29, 0x03, 0x04, 0x00 |
| 182 | }; |
| 183 | |
| 184 | |
| 185 | |
| 186 | //static struct mipi_dsi_cmd otm1902b_1080p_cmd_rotation[] = { |
| 187 | |
| 188 | //}; |
| 189 | //#define OTM1902B_1080P_CMD_ROTATION 0 |
| 190 | |
| 191 | |
| 192 | static struct panel_timing otm1902b_1080p_cmd_timing_info = { |
| 193 | 0, 4, 0x1e, 0x38 |
| 194 | }; |
| 195 | |
| 196 | static struct panel_reset_sequence otm1902b_1080p_cmd_panel_reset_seq = { |
| 197 | { 1, 0, 1, }, { 20, 20, 20, }, 2 |
| 198 | }; |
| 199 | |
| 200 | /*---------------------------------------------------------------------------*/ |
| 201 | /* Backlight Settings */ |
| 202 | /*---------------------------------------------------------------------------*/ |
| 203 | |
| 204 | static struct backlight otm1902b_1080p_cmd_backlight = { |
| 205 | 1, 0, 255, 100, 2, "PMIC_8941" |
| 206 | }; |
| 207 | |
| 208 | |
| 209 | |
| 210 | #endif /*_PANEL_OTM1902B_1080P_CMD_H_*/ |