drm/kms_helper: Add a common place to call init and exit functions.
[linux-2.6-block.git] / drivers / gpu / drm / Kconfig
CommitLineData
1da177e4
LT
1#
2# Drm device configuration
3#
4# This driver provides support for the
5# Direct Rendering Infrastructure (DRI) in XFree86 4.1.0 and higher.
6#
179b025f 7menuconfig DRM
1da177e4 8 tristate "Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)"
cc6a36f2 9 depends on (AGP || AGP=n) && !EMULATED_CMPXCHG && MMU && HAS_DMA
10a85120 10 select HDMI
eaf99c74 11 select FB_CMDLINE
57a6297e
DA
12 select I2C
13 select I2C_ALGOBIT
3248877e 14 select DMA_SHARED_BUFFER
1da177e4
LT
15 help
16 Kernel-level support for the Direct Rendering Infrastructure (DRI)
17 introduced in XFree86 4.0. If you say Y here, you need to select
18 the module that's right for your graphics card from the list below.
19 These modules provide support for synchronization, security, and
20 DMA transfers. Please see <http://dri.sourceforge.net/> for more
21 details. You should also select and configure AGP
dcdb1674 22 (/dev/agpgart) support if it is available for your platform.
1da177e4 23
068a0023
AH
24config DRM_MIPI_DSI
25 bool
26 depends on DRM
27
6fcefd56 28config DRM_KMS_HELPER
13a8195b
DA
29 tristate
30 depends on DRM
92b6f89f
DV
31 help
32 CRTC helpers for KMS drivers.
33
34config DRM_KMS_FB_HELPER
35 bool
36 depends on DRM_KMS_HELPER
13a8195b 37 select FB
6a108a14 38 select FRAMEBUFFER_CONSOLE if !EXPERT
bf5192ed 39 select FRAMEBUFFER_CONSOLE_DETECT_PRIMARY if FRAMEBUFFER_CONSOLE
cbb1a82e 40 select FB_SYS_FOPS
742547b7
AT
41 select FB_SYS_FILLRECT
42 select FB_SYS_COPYAREA
43 select FB_SYS_IMAGEBLIT
44 select FB_CFB_FILLRECT
45 select FB_CFB_COPYAREA
46 select FB_CFB_IMAGEBLIT
13a8195b 47 help
92b6f89f 48 FBDEV helpers for KMS drivers.
13a8195b 49
a03fdcb1
AT
50config DRM_FBDEV_EMULATION
51 bool "Enable legacy fbdev support for your modesetting driver"
52 depends on DRM
53 select DRM_KMS_HELPER
54 select DRM_KMS_FB_HELPER
55 default y
56 help
57 Choose this option if you have a need for the legacy fbdev
58 support. Note that this support also provides the linux console
59 support on top of your modesetting driver.
60
61 If in doubt, say "Y".
62
da0df92b
CE
63config DRM_LOAD_EDID_FIRMWARE
64 bool "Allow to specify an EDID data set instead of probing for it"
65 depends on DRM_KMS_HELPER
66 help
67 Say Y here, if you want to use EDID data to be loaded from the
68 /lib/firmware directory or one of the provided built-in
69 data sets. This may be necessary, if the graphics adapter or
70 monitor are unable to provide appropriate EDID data. Since this
71 feature is provided as a workaround for broken hardware, the
72 default case is N. Details and instructions how to build your own
73 EDID data are given in Documentation/EDID/HOWTO.txt.
74
ba4e7d97 75config DRM_TTM
771fe6b9 76 tristate
ba4e7d97
TH
77 depends on DRM
78 help
79 GPU memory management subsystem for devices with multiple
80 GPU memory types. Will be enabled automatically if a device driver
81 uses it.
82
b9d47450
SH
83config DRM_GEM_CMA_HELPER
84 bool
e1c7e324 85 depends on DRM
b9d47450
SH
86 help
87 Choose this if you need the GEM CMA helper functions
88
2e3b3c42
LPC
89config DRM_KMS_CMA_HELPER
90 bool
e1c7e324 91 depends on DRM
2e3b3c42 92 select DRM_GEM_CMA_HELPER
92b6f89f 93 select DRM_KMS_FB_HELPER
2e3b3c42
LPC
94 select FB_SYS_FILLRECT
95 select FB_SYS_COPYAREA
96 select FB_SYS_IMAGEBLIT
97 help
98 Choose this if you need the KMS CMA helper functions
99
6504d0d9
RC
100source "drivers/gpu/drm/i2c/Kconfig"
101
1da177e4
LT
102config DRM_TDFX
103 tristate "3dfx Banshee/Voodoo3+"
104 depends on DRM && PCI
105 help
106 Choose this option if you have a 3dfx Banshee or Voodoo3 (or later),
107 graphics card. If M is selected, the module will be called tdfx.
108
1da177e4
LT
109config DRM_R128
110 tristate "ATI Rage 128"
111 depends on DRM && PCI
52f97df5 112 select FW_LOADER
1da177e4
LT
113 help
114 Choose this option if you have an ATI Rage 128 graphics card. If M
115 is selected, the module will be called r128. AGP support for
116 this card is strongly suggested (unless you have a PCI version).
117
118config DRM_RADEON
119 tristate "ATI Radeon"
120 depends on DRM && PCI
771fe6b9
JG
121 select FB_CFB_FILLRECT
122 select FB_CFB_COPYAREA
123 select FB_CFB_IMAGEBLIT
70967ab9 124 select FW_LOADER
a0cdc649 125 select DRM_KMS_HELPER
92b6f89f 126 select DRM_KMS_FB_HELPER
a0cdc649 127 select DRM_TTM
5d9b7e2d 128 select POWER_SUPPLY
21a8122a 129 select HWMON
14adc892 130 select BACKLIGHT_CLASS_DEVICE
33610527 131 select BACKLIGHT_LCD_SUPPORT
0aea5e4a 132 select INTERVAL_TREE
1da177e4
LT
133 help
134 Choose this option if you have an ATI Radeon graphics card. There
135 are both PCI and AGP versions. You don't need to choose this to
7b9af345 136 run the Radeon in plain VGA mode.
bc5f4523 137
1da177e4
LT
138 If M is selected, the module will be called radeon.
139
f71d0187
DA
140source "drivers/gpu/drm/radeon/Kconfig"
141
d38ceaf9
AD
142config DRM_AMDGPU
143 tristate "AMD GPU"
144 depends on DRM && PCI
145 select FB_CFB_FILLRECT
146 select FB_CFB_COPYAREA
147 select FB_CFB_IMAGEBLIT
148 select FW_LOADER
149 select DRM_KMS_HELPER
150 select DRM_KMS_FB_HELPER
151 select DRM_TTM
152 select POWER_SUPPLY
153 select HWMON
154 select BACKLIGHT_CLASS_DEVICE
b325a789 155 select BACKLIGHT_LCD_SUPPORT
d38ceaf9
AD
156 select INTERVAL_TREE
157 help
158 Choose this option if you have a recent AMD Radeon graphics card.
159
160 If M is selected, the module will be called amdgpu.
161
162source "drivers/gpu/drm/amd/amdgpu/Kconfig"
1f7371b2 163source "drivers/gpu/drm/amd/powerplay/Kconfig"
d38ceaf9 164
f3c93cbd
BS
165source "drivers/gpu/drm/nouveau/Kconfig"
166
1da177e4
LT
167config DRM_I810
168 tristate "Intel I810"
1f692a14
AB
169 # !PREEMPT because of missing ioctl locking
170 depends on DRM && AGP && AGP_INTEL && (!PREEMPT || BROKEN)
1da177e4
LT
171 help
172 Choose this option if you have an Intel I810 graphics card. If M is
173 selected, the module will be called i810. AGP support is required
174 for this driver to work.
175
4520f53a 176source "drivers/gpu/drm/i915/Kconfig"
99486b8e 177
1da177e4
LT
178config DRM_MGA
179 tristate "Matrox g200/g400"
f5f05c8a 180 depends on DRM && PCI
ece2be79 181 select FW_LOADER
1da177e4
LT
182 help
183 Choose this option if you have a Matrox G200, G400 or G450 graphics
184 card. If M is selected, the module will be called mga. AGP
185 support is required for this driver to work.
186
187config DRM_SIS
188 tristate "SiS video cards"
189 depends on DRM && AGP
dfcf96d0 190 depends on FB_SIS || FB_SIS=n
1da177e4 191 help
bc5f4523 192 Choose this option if you have a SiS 630 or compatible video
1da177e4
LT
193 chipset. If M is selected the module will be called sis. AGP
194 support is required for this driver to work.
195
22f579c6
DA
196config DRM_VIA
197 tristate "Via unichrome video cards"
f5f05c8a 198 depends on DRM && PCI
22f579c6
DA
199 help
200 Choose this option if you have a Via unichrome or compatible video
201 chipset. If M is selected the module will be called via.
202
282a1674
DA
203config DRM_SAVAGE
204 tristate "Savage video cards"
f5f05c8a 205 depends on DRM && PCI
282a1674
DA
206 help
207 Choose this option if you have a Savage3D/4/SuperSavage/Pro/Twister
208 chipset. If M is selected the module will be called savage.
1c248b7d 209
502e95c6
ZR
210config DRM_VGEM
211 tristate "Virtual GEM provider"
212 depends on DRM
213 help
214 Choose this option to get a virtual graphics memory manager,
215 as used by Mesa's software renderer for enhanced performance.
216 If M is selected the module will be called vgem.
217
218
5a7b74be
TH
219source "drivers/gpu/drm/exynos/Kconfig"
220
2048e328
MY
221source "drivers/gpu/drm/rockchip/Kconfig"
222
5a7b74be 223source "drivers/gpu/drm/vmwgfx/Kconfig"
91c75492
AC
224
225source "drivers/gpu/drm/gma500/Kconfig"
226
5320918b 227source "drivers/gpu/drm/udl/Kconfig"
312fec14
DA
228
229source "drivers/gpu/drm/ast/Kconfig"
230
414c4531 231source "drivers/gpu/drm/mgag200/Kconfig"
f9aa76a8
DA
232
233source "drivers/gpu/drm/cirrus/Kconfig"
51c13278 234
96f60e37
RK
235source "drivers/gpu/drm/armada/Kconfig"
236
1a396789
BB
237source "drivers/gpu/drm/atmel-hlcdc/Kconfig"
238
4bf8e196
LP
239source "drivers/gpu/drm/rcar-du/Kconfig"
240
51c13278 241source "drivers/gpu/drm/shmobile/Kconfig"
d8f4a9ed 242
8bb0daff 243source "drivers/gpu/drm/omapdrm/Kconfig"
ca18e142 244
16ea975e 245source "drivers/gpu/drm/tilcdc/Kconfig"
f64122c1
DA
246
247source "drivers/gpu/drm/qxl/Kconfig"
c8afe684 248
0a6659bd
GH
249source "drivers/gpu/drm/bochs/Kconfig"
250
dc5698e8
DA
251source "drivers/gpu/drm/virtio/Kconfig"
252
c8afe684 253source "drivers/gpu/drm/msm/Kconfig"
dee8268f 254
109eee2f
JW
255source "drivers/gpu/drm/fsl-dcu/Kconfig"
256
dee8268f 257source "drivers/gpu/drm/tegra/Kconfig"
aead40ea
TR
258
259source "drivers/gpu/drm/panel/Kconfig"
f2cb3148 260
a33ee95f
TR
261source "drivers/gpu/drm/bridge/Kconfig"
262
f2cb3148 263source "drivers/gpu/drm/sti/Kconfig"
4a488a7a
OG
264
265source "drivers/gpu/drm/amd/amdkfd/Kconfig"
6556f7f8
PZ
266
267source "drivers/gpu/drm/imx/Kconfig"
c8b75bca
EA
268
269source "drivers/gpu/drm/vc4/Kconfig"
a8c21a54
T
270
271source "drivers/gpu/drm/etnaviv/Kconfig"