Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
dss_features.h
Go to the documentation of this file.
1 /*
2  * linux/drivers/video/omap2/dss/dss_features.h
3  *
4  * Copyright (C) 2010 Texas Instruments
5  * Author: Archit Taneja <[email protected]>
6  *
7  * This program is free software; you can redistribute it and/or modify it
8  * under the terms of the GNU General Public License version 2 as published by
9  * the Free Software Foundation.
10  *
11  * This program is distributed in the hope that it will be useful, but WITHOUT
12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14  * more details.
15  *
16  * You should have received a copy of the GNU General Public License along with
17  * this program. If not, see <http://www.gnu.org/licenses/>.
18  */
19 
20 #ifndef __OMAP2_DSS_FEATURES_H
21 #define __OMAP2_DSS_FEATURES_H
22 
23 #if defined(CONFIG_OMAP4_DSS_HDMI)
24 #include "ti_hdmi.h"
25 #endif
26 
27 #define MAX_DSS_MANAGERS 4
28 #define MAX_DSS_OVERLAYS 4
29 #define MAX_DSS_LCD_MANAGERS 3
30 #define MAX_NUM_DSI 2
31 
32 /* DSS has feature id */
43  /* Independent core clk divider */
46  /* DSI-PLL power command 0x3 is not working */
65  /* An unknown HW bug causing the normal FIFO thresholds not to work */
71 };
72 
73 /* DSS register field id */
87 };
88 
103 };
104 
105 /* DSS Feature Functions */
106 int dss_feat_get_num_mgrs(void);
107 int dss_feat_get_num_ovls(void);
108 int dss_feat_get_num_wbs(void);
109 unsigned long dss_feat_get_param_min(enum dss_range_param param);
110 unsigned long dss_feat_get_param_max(enum dss_range_param param);
116  enum omap_color_mode color_mode);
118 
119 u32 dss_feat_get_buffer_size_unit(void); /* in bytes */
120 u32 dss_feat_get_burst_size_unit(void); /* in bytes */
121 
123 
124 bool dss_has_feature(enum dss_feat_id id);
126 void dss_features_init(void);
127 #if defined(CONFIG_OMAP4_DSS_HDMI)
128 void dss_init_hdmi_ip_ops(struct hdmi_ip_data *ip_data);
129 #endif
130 #endif