blob: a57620b04b41350e44f0bb552e5a43fb98ea1472 [file] [log] [blame]
Jayant Shekhara7490f82016-01-14 11:09:20 +05301/* Copyright (c) 2015-2016, 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 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 */
Gaurav Nebhwani6c945a42016-02-16 17:26:51 +053029#ifndef _TARGET_MSM8953_DISPLAY_H
30#define _TARGET_MSM8953_DISPLAY_H
Jayant Shekhara7490f82016-01-14 11:09:20 +053031
32/*---------------------------------------------------------------------------*/
33/* HEADER files */
34/*---------------------------------------------------------------------------*/
35#include <display_resource.h>
36
37/*---------------------------------------------------------------------------*/
38/* Target Physical configuration */
39/*---------------------------------------------------------------------------*/
40
41static const uint32_t panel_strength_ctrl[] = {
42 0xFF, 0x06,
43 0xFF, 0x06,
44 0xFF, 0x06,
45 0xFF, 0x06,
46 0xFF, 0x00
47};
48
49static const uint32_t panel_regulator_settings[] = {
50 0x1d, 0x1d, 0x1d, 0x1d, 0x1d
51};
52
53static const char panel_lane_config[] = {
54 0x00, 0x00, 0x10, 0x0f,
55 0x00, 0x00, 0x10, 0x0f,
56 0x00, 0x00, 0x10, 0x0f,
57 0x00, 0x00, 0x10, 0x0f,
58 0x00, 0x00, 0x10, 0x8f,
59};
60
61static const char panel_bist_ctrl[] = { };
62
63static const uint32_t panel_physical_ctrl[] = { };
64/*---------------------------------------------------------------------------*/
65/* Other Configuration */
66/*---------------------------------------------------------------------------*/
67#define DISPLAY_CMDLINE_PREFIX " mdss_mdp.panel="
68
69#define MIPI_FB_ADDR 0x90000000
70
71#define MIPI_HSYNC_PULSE_WIDTH 12
72#define MIPI_HSYNC_BACK_PORCH_DCLK 32
73#define MIPI_HSYNC_FRONT_PORCH_DCLK 144
74
75#define MIPI_VSYNC_PULSE_WIDTH 4
76#define MIPI_VSYNC_BACK_PORCH_LINES 3
77#define MIPI_VSYNC_FRONT_PORCH_LINES 9
78
79/*---------------------------------------------------------------------------*/
80/* Functions */
81/*---------------------------------------------------------------------------*/
82int target_display_pre_on();
83int target_display_pre_off();
84int target_display_post_on();
85int target_display_post_off();
86int target_cont_splash_screen();
87int target_display_get_base_offset(uint32_t base);
88void target_force_cont_splash_disable(uint8_t override);
89uint8_t target_panel_auto_detect_enabled();
90uint32_t oem_panel_max_auto_detect_panels();
91
92#endif