Dhaval Patel | 252d672 | 2013-10-10 17:37:16 -0700 | [diff] [blame] | 1 | /* Copyright (c) 2013-2014, The Linux Foundation. All rights reserved. |
Terence Hampson | afded26 | 2013-06-18 14:48:18 -0400 | [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 | #ifndef _TARGET_MSM8610_DISPLAY_H |
| 31 | #define _TARGET_MSM8610_DISPLAY_H |
Dhaval Patel | 8ae0bbd | 2013-08-15 15:45:01 -0700 | [diff] [blame] | 32 | /*---------------------------------------------------------------------------*/ |
| 33 | /* HEADER files */ |
| 34 | /*---------------------------------------------------------------------------*/ |
| 35 | #include <display_resource.h> |
| 36 | |
Dhaval Patel | 8ae0bbd | 2013-08-15 15:45:01 -0700 | [diff] [blame] | 37 | #define TOTAL_LDO_DEFINED 2 |
| 38 | |
| 39 | /*---------------------------------------------------------------------------*/ |
| 40 | /* Target Physical configuration */ |
| 41 | /*---------------------------------------------------------------------------*/ |
| 42 | |
| 43 | static const uint32_t panel_strength_ctrl[] = { |
| 44 | 0xff, 0x06 |
| 45 | }; |
| 46 | |
| 47 | static const char panel_bist_ctrl[] = { |
| 48 | 0x03, 0x03, 0x00, 0x00, 0x0f, 0x00 |
| 49 | }; |
| 50 | |
| 51 | static const uint32_t panel_regulator_settings[] = { |
| 52 | 0x02, 0x08, 0x05, 0x00, 0x20, 0x03, 0x00 |
| 53 | }; |
| 54 | |
| 55 | static const char panel_lane_config[] = { |
| 56 | 0x80, 0x45, 0x00, 0x00, 0x00, 0x01, 0x66, 0x00, 0x00, |
| 57 | 0x80, 0x45, 0x00, 0x00, 0x00, 0x01, 0x66, 0x00, 0x00, |
| 58 | 0x80, 0x45, 0x00, 0x00, 0x00, 0x01, 0x66, 0x00, 0x00, |
| 59 | 0x80, 0x45, 0x00, 0x00, 0x00, 0x01, 0x66, 0x00, 0x00, |
| 60 | 0x40, 0x67, 0x00, 0x00, 0x00, 0x01, 0x88, 0x00, 0x00 |
| 61 | }; |
| 62 | |
| 63 | static const uint32_t panel_physical_ctrl[] = { |
| 64 | 0x7f, 0x00, 0x00, 0x00 |
| 65 | }; |
| 66 | |
| 67 | /*---------------------------------------------------------------------------*/ |
| 68 | /* Other Configuration */ |
| 69 | /*---------------------------------------------------------------------------*/ |
Dhaval Patel | 252d672 | 2013-10-10 17:37:16 -0700 | [diff] [blame] | 70 | #define DISPLAY_CMDLINE_PREFIX " mdss_mdp3.panel=" |
Terence Hampson | afded26 | 2013-06-18 14:48:18 -0400 | [diff] [blame] | 71 | |
Xiaoming Zhou | 83ae46e | 2013-09-12 15:50:28 -0400 | [diff] [blame] | 72 | #define MIPI_FB_ADDR 0x03200000 |
Terence Hampson | afded26 | 2013-06-18 14:48:18 -0400 | [diff] [blame] | 73 | |
| 74 | #define MIPI_HSYNC_PULSE_WIDTH 8 |
| 75 | #define MIPI_HSYNC_BACK_PORCH_DCLK 40 |
| 76 | #define MIPI_HSYNC_FRONT_PORCH_DCLK 160 |
| 77 | |
| 78 | #define MIPI_VSYNC_PULSE_WIDTH 2 |
| 79 | #define MIPI_VSYNC_BACK_PORCH_LINES 10 |
| 80 | #define MIPI_VSYNC_FRONT_PORCH_LINES 12 |
| 81 | |
vijay kumar | 0411ca8 | 2014-08-08 17:14:52 +0530 | [diff] [blame] | 82 | int target_cont_splash_screen(); |
| 83 | void target_force_cont_splash_disable(uint8_t override); |
| 84 | uint32_t oem_panel_max_auto_detect_panels(); |
| 85 | uint8_t target_panel_auto_detect_enabled(); |
| 86 | uint8_t target_panel_auto_detect_enabled(); |
Terence Hampson | afded26 | 2013-06-18 14:48:18 -0400 | [diff] [blame] | 87 | #endif |