aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/emgd/emgd/cfg/config_default.h
blob: 71a0487aa0cd303173a77d9bbb38de11f553242d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
/* -*- pse-c -*-
 *-----------------------------------------------------------------------------
 * Filename: config_default.h
 * $Revision: 1.9 $
 *-----------------------------------------------------------------------------
 * Copyright © 2002-2010, Intel Corporation.
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms and conditions of the GNU General Public License,
 * version 2, as published by the Free Software Foundation.
 *
 * This program is distributed in the hope it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
 * more details.
 *
 * You should have received a copy of the GNU General Public License along with
 * this program; if not, write to the Free Software Foundation, Inc.,
 * 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
 *
 *-----------------------------------------------------------------------------
 * Description:
 *  This file is used in conjunction with the platform's config.h to
 *  gererate a full set of build defines. This file should provide defaults
 *  for defines such that a platform's config.h can include only the
 *  minimal set of non-standard options.
 *  Defines should be named such that:
 *  CONFIG_<FOO>: Is defined or undefined suitable for use with ifdef and
 *  can be used with the build system's DIRS_FOO or OBJECTS_FOO. Any
 *  CONFIG_FOO added here must also have an entry in config_helper.c.
 *  CONFIG_ENABLE_FOO: Should be defined always and defined to a 1 or 0.
 *  This is suitble for use in if(CONFIG_ENABLE_FOO) and expected that
 *  a compiler will optimize away if(0)'s.
 *  CONFIG_LIMIT_FOO: Should prevent some default set of FOO defines
 *  from being included. For instance CONFIG_LIMIT_MODES prevents the
 *  long default list of default modes from being used and instead the
 *  platform's config.h must define the requested modes manually.
 *-----------------------------------------------------------------------------
 */

#ifndef _HAL_CONFIG_DEFAULT_H
#define _HAL_CONFIG_DEFAULT_H

#include <personality.h>

#ifndef CONFIG_MICRO
#define CONFIG_FULL
#endif

#ifndef CONFIG_LIMIT_CORES
#define CONFIG_PLB
#define CONFIG_TNC
#endif /* CONFIG_LIMIT_CORES */

#ifdef CONFIG_DEPRECATED
#if 0 /* WHT Modules need some updating */
#define CONFIG_810
#define CONFIG_810DC
#define CONFIG_810E
#define CONFIG_815
#define CONFIG_830
#define CONFIG_835
#define CONFIG_845
#define CONFIG_855
#define CONFIG_865
#define CONFIG_915GD
#define CONFIG_915AL
#define	CONFIG_945G
#define	CONFIG_945GM
#define	CONFIG_945GME
#define CONFIG_Q35
#define CONFIG_965G
#define CONFIG_965GM
#define CONFIG_CTG
#define CONFIG_Q45
#define CONFIG_PNV
#endif
#endif

#ifndef CONFIG_LIMIT_MODULES
#define CONFIG_INIT
#define CONFIG_REG
#define CONFIG_POWER
#define CONFIG_MODE
#define CONFIG_DSP
#define CONFIG_PI
#define CONFIG_PD
#define CONFIG_APPCONTEXT
#define CONFIG_OVERLAY
#endif /* CONFIG_LIMIT_MODULES */

#ifndef CONFIG_LIMIT_PDS
#define CONFIG_PD_ANALOG
#define CONFIG_PD_LVDS
#define CONFIG_PD_TV
#define CONFIG_PD_HDMI
#define CONFIG_PD_SDVO
#define CONFIG_PD_SOFTPD
#endif

#ifdef CONFIG_DEPRECATED
#ifndef CONFIG_LIMIT_PDS
#define CONFIG_PD_SII164
#define CONFIG_PD_CH7009
#define CONFIG_PD_TL955
#define CONFIG_PD_RGBA
#define CONFIG_PD_NS2501
#define CONFIG_PD_TH164
#define CONFIG_PD_FS454
#define CONFIG_PD_NS387
#define CONFIG_PD_CX873
#define CONFIG_PD_FS460
#define CONFIG_PD_CH7017
#define CONFIG_PD_TI410
#endif
#endif

#ifndef CONFIG_DEBUG_FLAGS
#define CONFIG_DEBUG_FLAGS			  \
	0, /* Command Module */			  \
		0,	/* DSP Module */		  \
		0,	/* Mode Module */		  \
		0,	/* Init Module */		  \
		0,	/* Overlay Module */	  \
		0,	/* Power Module */		  \
		0,	/* 2D Module */			  \
		0,	/* Blend Module */		  \
		0,	/* State Module */		  \
		0,	/* GMM Module */		  \
		0,	/* Gart Module */		  \
		0,	/* OAL Module */		  \
		0,	/* Interrupt Module */	  \
		0,	/* Port Driver Module */  \
		0,	/* Video Decode Module */ \
		0,	/* PVR 3-Ptr Disp Drv */  \
\
		0,	/* Global Tracing */	  \
		0,	/* Global Instructions */ \
		0,	/* Global Debug */		  \
\
		0,	/* Verbose Blend Stats */ \
		0,	/* Verbose Overlay Dump */\
		0,	/* Verbose Cmd Dump */	  \
		0,	/* Verbose GMM Dump */    \
		0	/* Verbose Shader Dump */

#endif

#ifndef CONFIG_DEBUG_IAL_FLAGS
#define CONFIG_DEBUG_IAL_FLAGS 0
#endif

/* we ensure IAL's that do not support hw binning has this flag as '0' */
#ifndef CONFIG_ENABLE_BINNING
#define CONFIG_ENABLE_BINNING 0
#endif

#ifndef CONFIG_ENABLE_THREADS
#define CONFIG_ENABLE_THREADS 0
#endif



/*
 * These Meta-Defines should not be set in the config.h. They are enabled
 * here based on more granular defines that come from config.h. For instance
 * CONFIG_NAP should be enabled when any chips from the NAP family are enabled.
 */
#if defined(CONFIG_810) || defined(CONFIG_810DC) || defined(CONFIG_810E) ||\
	defined(CONFIG_815)
#define CONFIG_WHT
#endif

#if defined(CONFIG_830) || defined(CONFIG_835) || defined(CONFIG_845) ||\
	defined(CONFIG_855) || defined(CONFIG_865)
#define CONFIG_ALM
#endif

#if defined(CONFIG_915GD) || defined(CONFIG_915AL) || defined(CONFIG_945G) ||\
	defined(CONFIG_945GM) || defined(CONFIG_945GME) || defined(CONFIG_Q35) ||\
	defined(CONFIG_PNV)
#define CONFIG_NAP
#endif

#if defined(CONFIG_965G) || defined(CONFIG_965GM) || \
	defined(CONFIG_CTG) || defined(CONFIG_Q45)
#define CONFIG_GN4
#endif


#endif /* _HAL_CONFIG_DEFAULT_H */