blob: e3d3ce0fe1f6230ce7202a8a5b8973678bc54f21 [file] [log] [blame]
Dhaval Patel252d6722013-10-10 17:37:16 -07001/* Copyright (c) 2013-2014, The Linux Foundation. All rights reserved.
Terence Hampsonafded262013-06-18 14:48:18 -04002 *
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 Patel8ae0bbd2013-08-15 15:45:01 -070032/*---------------------------------------------------------------------------*/
33/* HEADER files */
34/*---------------------------------------------------------------------------*/
35#include <display_resource.h>
36
Dhaval Patel8ae0bbd2013-08-15 15:45:01 -070037#define TOTAL_LDO_DEFINED 2
38
39/*---------------------------------------------------------------------------*/
40/* Target Physical configuration */
41/*---------------------------------------------------------------------------*/
42
43static const uint32_t panel_strength_ctrl[] = {
44 0xff, 0x06
45};
46
47static const char panel_bist_ctrl[] = {
48 0x03, 0x03, 0x00, 0x00, 0x0f, 0x00
49};
50
51static const uint32_t panel_regulator_settings[] = {
52 0x02, 0x08, 0x05, 0x00, 0x20, 0x03, 0x00
53};
54
55static 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
63static const uint32_t panel_physical_ctrl[] = {
64 0x7f, 0x00, 0x00, 0x00
65};
66
67/*---------------------------------------------------------------------------*/
68/* Other Configuration */
69/*---------------------------------------------------------------------------*/
Dhaval Patel252d6722013-10-10 17:37:16 -070070#define DISPLAY_CMDLINE_PREFIX " mdss_mdp3.panel="
Terence Hampsonafded262013-06-18 14:48:18 -040071
Xiaoming Zhou83ae46e2013-09-12 15:50:28 -040072#define MIPI_FB_ADDR 0x03200000
Terence Hampsonafded262013-06-18 14:48:18 -040073
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 kumar0411ca82014-08-08 17:14:52 +053082int target_cont_splash_screen();
83void target_force_cont_splash_disable(uint8_t override);
84uint32_t oem_panel_max_auto_detect_panels();
85uint8_t target_panel_auto_detect_enabled();
86uint8_t target_panel_auto_detect_enabled();
Terence Hampsonafded262013-06-18 14:48:18 -040087#endif