Arpita Banerjee | 841fa06 | 2013-05-24 14:59:51 -0700 | [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 | #ifndef _GCDB_DISPLAY_H_ |
| 31 | #define _GCDB_DISPLAY_H_ |
| 32 | |
| 33 | /*---------------------------------------------------------------------------*/ |
| 34 | /* HEADER files */ |
| 35 | /*---------------------------------------------------------------------------*/ |
| 36 | #include <debug.h> |
| 37 | #include "include/display_resource.h" |
| 38 | |
| 39 | #define TIMING_SIZE 48 |
| 40 | #define REGULATOR_SIZE 28 |
| 41 | #define PHYSICAL_SIZE 16 |
| 42 | #define STRENGTH_SIZE 8 |
| 43 | #define BIST_SIZE 6 |
| 44 | #define LANE_SIZE 45 |
| 45 | |
Dhaval Patel | 9f61f13 | 2013-07-18 14:45:11 -0700 | [diff] [blame] | 46 | #define MAX_DSI_STREAM_LEN 6 |
| 47 | |
| 48 | #define MAX_PANEL_FORMAT_STRING 2 |
| 49 | |
Arpita Banerjee | 841fa06 | 2013-05-24 14:59:51 -0700 | [diff] [blame] | 50 | /*---------------------------------------------------------------------------*/ |
| 51 | /* API */ |
| 52 | /*---------------------------------------------------------------------------*/ |
| 53 | |
| 54 | int target_backlight_ctrl(uint8_t enable); |
Arpita Banerjee | 0906ffd | 2013-05-24 16:25:38 -0700 | [diff] [blame] | 55 | int target_panel_clock(uint8_t enable, struct msm_panel_info *pinfo); |
Dhaval Patel | 29f2449 | 2013-08-08 20:45:42 -0700 | [diff] [blame^] | 56 | int target_panel_reset(uint8_t enable, struct panel_reset_sequence *resetseq, |
| 57 | struct msm_panel_info *pinfo); |
| 58 | int target_ldo_ctrl(uint8_t enable); |
Arpita Banerjee | 841fa06 | 2013-05-24 14:59:51 -0700 | [diff] [blame] | 59 | |
| 60 | void gcdb_display_init(unsigned int rev, void *base); |
| 61 | void gcdb_display_shutdown(); |
| 62 | |
| 63 | #endif /*_GCDB_DISPLAY_H_ */ |