blob: d91b06b067da1bcc715fda02f4387b5cd379cdd4 [file] [log] [blame]
Masahiro Yamadacc85b7b2015-07-26 02:46:26 +09001#
2# Video configuration
3#
4
5menu "Graphics support"
6
Simon Glass623d28f2016-01-18 19:52:15 -07007config DM_VIDEO
8 bool "Enable driver model support for LCD/video"
9 depends on DM
10 help
11 This enables driver model for LCD and video devices. These support
12 a bitmap display of various sizes and depths which can be drawn on
13 to display a command-line console or splash screen. Enabling this
14 option compiles in the video uclass and routes all LCD/video access
15 through this.
16
17config VIDEO_BPP8
18 bool "Support 8-bit-per-pixel displays"
19 depends on DM_VIDEO
20 default y if DM_VIDEO
21 help
22 Support drawing text and bitmaps onto a 8-bit-per-pixel display.
23 Enabling this will include code to support this display. Without
24 this option, such displays will not be supported and console output
25 will be empty.
26
27config VIDEO_BPP16
28 bool "Support 16-bit-per-pixel displays"
29 depends on DM_VIDEO
30 default y if DM_VIDEO
31 help
32 Support drawing text and bitmaps onto a 16-bit-per-pixel display.
33 Enabling this will include code to support this display. Without
34 this option, such displays will not be supported and console output
35 will be empty.
36
37config VIDEO_BPP32
38 bool "Support 32-bit-per-pixel displays"
39 depends on DM_VIDEO
40 default y if DM_VIDEO
41 help
42 Support drawing text and bitmaps onto a 32-bit-per-pixel display.
43 Enabling this will include code to support this display. Without
44 this option, such displays will not be supported and console output
45 will be empty.
46
Simon Glass6e0721d2016-01-22 21:53:37 +010047config CONSOLE_NORMAL
48 bool "Support a simple text console"
49 depends on DM_VIDEO
50 default y if DM_VIDEO
51 help
52 Support drawing text on the frame buffer console so that it can be
53 used as a console. Rotation is not supported by this driver (see
54 CONFIG_CONSOLE_ROTATION for that). A built-in 8x16 font is used
55 for the display.
56
57config CONSOLE_ROTATION
Simon Glass87aae882016-01-18 19:52:19 -070058 bool "Support rotated displays"
59 depends on DM_VIDEO
60 help
61 Sometimes, for example if the display is mounted in portrait
62 mode or even if it's mounted landscape but rotated by 180degree,
63 we need to rotate our content of the display relative to the
64 framebuffer, so that user can read the messages which are
65 printed out. Enable this option to include a text driver which can
66 support this. The rotation is set by the 'rot' parameter in
67 struct video_priv: 0=unrotated, 1=90 degrees clockwise, 2=180
68 degrees, 3=270 degrees.
69
Simon Glass42bf3ee2014-12-29 19:32:28 -070070config VIDEO_VESA
71 bool "Enable VESA video driver support"
Simon Glass42bf3ee2014-12-29 19:32:28 -070072 default n
73 help
74 Turn on this option to enable a very simple driver which uses vesa
75 to discover the video mode and then provides a frame buffer for use
76 by U-Boot. This can in principle be used with any platform that
77 supports PCI and video cards that support VESA BIOS Extension (VBE).
78
Bin Meng072b79d2015-05-11 07:36:29 +080079config FRAMEBUFFER_SET_VESA_MODE
80 bool "Set framebuffer graphics resolution"
81 depends on VIDEO_VESA
82 help
83 Set VESA/native framebuffer mode (needed for bootsplash and graphical
84 framebuffer console)
85
86choice
87 prompt "framebuffer graphics resolution"
88 default FRAMEBUFFER_VESA_MODE_117
89 depends on FRAMEBUFFER_SET_VESA_MODE
90 help
91 This option sets the resolution used for the U-Boot framebuffer (and
92 bootsplash screen).
93
94config FRAMEBUFFER_VESA_MODE_100
95 bool "640x400 256-color"
96
97config FRAMEBUFFER_VESA_MODE_101
98 bool "640x480 256-color"
99
100config FRAMEBUFFER_VESA_MODE_102
101 bool "800x600 16-color"
102
103config FRAMEBUFFER_VESA_MODE_103
104 bool "800x600 256-color"
105
106config FRAMEBUFFER_VESA_MODE_104
107 bool "1024x768 16-color"
108
109config FRAMEBUFFER_VESA_MODE_105
Bin Meng932adc62015-08-09 23:26:59 -0700110 bool "1024x768 256-color"
Bin Meng072b79d2015-05-11 07:36:29 +0800111
112config FRAMEBUFFER_VESA_MODE_106
113 bool "1280x1024 16-color"
114
115config FRAMEBUFFER_VESA_MODE_107
116 bool "1280x1024 256-color"
117
118config FRAMEBUFFER_VESA_MODE_108
119 bool "80x60 text"
120
121config FRAMEBUFFER_VESA_MODE_109
122 bool "132x25 text"
123
124config FRAMEBUFFER_VESA_MODE_10A
125 bool "132x43 text"
126
127config FRAMEBUFFER_VESA_MODE_10B
128 bool "132x50 text"
129
130config FRAMEBUFFER_VESA_MODE_10C
131 bool "132x60 text"
132
133config FRAMEBUFFER_VESA_MODE_10D
134 bool "320x200 32k-color (1:5:5:5)"
135
136config FRAMEBUFFER_VESA_MODE_10E
137 bool "320x200 64k-color (5:6:5)"
138
139config FRAMEBUFFER_VESA_MODE_10F
140 bool "320x200 16.8M-color (8:8:8)"
141
142config FRAMEBUFFER_VESA_MODE_110
143 bool "640x480 32k-color (1:5:5:5)"
144
145config FRAMEBUFFER_VESA_MODE_111
146 bool "640x480 64k-color (5:6:5)"
147
148config FRAMEBUFFER_VESA_MODE_112
149 bool "640x480 16.8M-color (8:8:8)"
150
151config FRAMEBUFFER_VESA_MODE_113
152 bool "800x600 32k-color (1:5:5:5)"
153
154config FRAMEBUFFER_VESA_MODE_114
155 bool "800x600 64k-color (5:6:5)"
156
157config FRAMEBUFFER_VESA_MODE_115
158 bool "800x600 16.8M-color (8:8:8)"
159
160config FRAMEBUFFER_VESA_MODE_116
161 bool "1024x768 32k-color (1:5:5:5)"
162
163config FRAMEBUFFER_VESA_MODE_117
164 bool "1024x768 64k-color (5:6:5)"
165
166config FRAMEBUFFER_VESA_MODE_118
167 bool "1024x768 16.8M-color (8:8:8)"
168
169config FRAMEBUFFER_VESA_MODE_119
170 bool "1280x1024 32k-color (1:5:5:5)"
171
172config FRAMEBUFFER_VESA_MODE_11A
173 bool "1280x1024 64k-color (5:6:5)"
174
175config FRAMEBUFFER_VESA_MODE_11B
176 bool "1280x1024 16.8M-color (8:8:8)"
177
178config FRAMEBUFFER_VESA_MODE_USER
179 bool "Manually select VESA mode"
180
181endchoice
182
183# Map the config names to an integer (KB).
184config FRAMEBUFFER_VESA_MODE
185 prompt "VESA mode" if FRAMEBUFFER_VESA_MODE_USER
186 hex
187 default 0x100 if FRAMEBUFFER_VESA_MODE_100
188 default 0x101 if FRAMEBUFFER_VESA_MODE_101
189 default 0x102 if FRAMEBUFFER_VESA_MODE_102
190 default 0x103 if FRAMEBUFFER_VESA_MODE_103
191 default 0x104 if FRAMEBUFFER_VESA_MODE_104
192 default 0x105 if FRAMEBUFFER_VESA_MODE_105
193 default 0x106 if FRAMEBUFFER_VESA_MODE_106
194 default 0x107 if FRAMEBUFFER_VESA_MODE_107
195 default 0x108 if FRAMEBUFFER_VESA_MODE_108
196 default 0x109 if FRAMEBUFFER_VESA_MODE_109
197 default 0x10A if FRAMEBUFFER_VESA_MODE_10A
198 default 0x10B if FRAMEBUFFER_VESA_MODE_10B
199 default 0x10C if FRAMEBUFFER_VESA_MODE_10C
200 default 0x10D if FRAMEBUFFER_VESA_MODE_10D
201 default 0x10E if FRAMEBUFFER_VESA_MODE_10E
202 default 0x10F if FRAMEBUFFER_VESA_MODE_10F
203 default 0x110 if FRAMEBUFFER_VESA_MODE_110
204 default 0x111 if FRAMEBUFFER_VESA_MODE_111
205 default 0x112 if FRAMEBUFFER_VESA_MODE_112
206 default 0x113 if FRAMEBUFFER_VESA_MODE_113
207 default 0x114 if FRAMEBUFFER_VESA_MODE_114
208 default 0x115 if FRAMEBUFFER_VESA_MODE_115
209 default 0x116 if FRAMEBUFFER_VESA_MODE_116
210 default 0x117 if FRAMEBUFFER_VESA_MODE_117
211 default 0x118 if FRAMEBUFFER_VESA_MODE_118
212 default 0x119 if FRAMEBUFFER_VESA_MODE_119
213 default 0x11A if FRAMEBUFFER_VESA_MODE_11A
214 default 0x11B if FRAMEBUFFER_VESA_MODE_11B
215 default 0x117 if FRAMEBUFFER_VESA_MODE_USER
216
Hans de Goededfc1efe2015-08-08 16:03:29 +0200217config VIDEO_LCD_ANX9804
218 bool "ANX9804 bridge chip"
219 default n
220 ---help---
221 Support for the ANX9804 bridge chip, which can take pixel data coming
222 from a parallel LCD interface and translate it on the fy into a DP
223 interface for driving eDP TFT displays. It uses I2C for configuration.
224
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200225config VIDEO_LCD_SSD2828
226 bool "SSD2828 bridge chip"
227 default n
228 ---help---
229 Support for the SSD2828 bridge chip, which can take pixel data coming
230 from a parallel LCD interface and translate it on the fly into MIPI DSI
231 interface for driving a MIPI compatible LCD panel. It uses SPI for
232 configuration.
233
234config VIDEO_LCD_SSD2828_TX_CLK
235 int "SSD2828 TX_CLK frequency (in MHz)"
236 depends on VIDEO_LCD_SSD2828
Siarhei Siamashka61fb91f2015-01-19 05:23:35 +0200237 default 0
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200238 ---help---
239 The frequency of the crystal, which is clocking SSD2828. It may be
240 anything in the 8MHz-30MHz range and the exact value should be
241 retrieved from the board schematics. Or in the case of Allwinner
242 hardware, it can be usually found as 'lcd_xtal_freq' variable in
Siarhei Siamashka61fb91f2015-01-19 05:23:35 +0200243 FEX files. It can be also set to 0 for selecting PCLK from the
244 parallel LCD interface instead of TX_CLK as the PLL clock source.
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200245
246config VIDEO_LCD_SSD2828_RESET
247 string "RESET pin of SSD2828"
248 depends on VIDEO_LCD_SSD2828
249 default ""
250 ---help---
251 The reset pin of SSD2828 chip. This takes a string in the format
252 understood by 'name_to_gpio' function, e.g. PH1 for pin 1 of port H.
253
Hans de Goedec0482032015-01-20 09:22:26 +0100254config VIDEO_LCD_HITACHI_TX18D42VM
255 bool "Hitachi tx18d42vm LVDS LCD panel support"
256 depends on VIDEO
257 default n
258 ---help---
259 Support for Hitachi tx18d42vm LVDS LCD panels, these panels have a
260 lcd controller which needs to be initialized over SPI, once that is
261 done they work like a regular LVDS panel.
262
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200263config VIDEO_LCD_SPI_CS
264 string "SPI CS pin for LCD related config job"
Hans de Goedec0482032015-01-20 09:22:26 +0100265 depends on VIDEO_LCD_SSD2828 || VIDEO_LCD_HITACHI_TX18D42VM
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200266 default ""
267 ---help---
268 This is one of the SPI communication pins, involved in setting up a
269 working LCD configuration. The exact role of SPI may differ for
270 different hardware setups. The option takes a string in the format
271 understood by 'name_to_gpio' function, e.g. PH1 for pin 1 of port H.
272
273config VIDEO_LCD_SPI_SCLK
274 string "SPI SCLK pin for LCD related config job"
Hans de Goedec0482032015-01-20 09:22:26 +0100275 depends on VIDEO_LCD_SSD2828 || VIDEO_LCD_HITACHI_TX18D42VM
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200276 default ""
277 ---help---
278 This is one of the SPI communication pins, involved in setting up a
279 working LCD configuration. The exact role of SPI may differ for
280 different hardware setups. The option takes a string in the format
281 understood by 'name_to_gpio' function, e.g. PH1 for pin 1 of port H.
282
283config VIDEO_LCD_SPI_MOSI
284 string "SPI MOSI pin for LCD related config job"
Hans de Goedec0482032015-01-20 09:22:26 +0100285 depends on VIDEO_LCD_SSD2828 || VIDEO_LCD_HITACHI_TX18D42VM
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200286 default ""
287 ---help---
288 This is one of the SPI communication pins, involved in setting up a
289 working LCD configuration. The exact role of SPI may differ for
290 different hardware setups. The option takes a string in the format
291 understood by 'name_to_gpio' function, e.g. PH1 for pin 1 of port H.
292
293config VIDEO_LCD_SPI_MISO
294 string "SPI MISO pin for LCD related config job (optional)"
295 depends on VIDEO_LCD_SSD2828
296 default ""
297 ---help---
298 This is one of the SPI communication pins, involved in setting up a
299 working LCD configuration. The exact role of SPI may differ for
300 different hardware setups. If wired up, this pin may provide additional
301 useful functionality. Such as bi-directional communication with the
302 hardware and LCD panel id retrieval (if the panel can report it). The
303 option takes a string in the format understood by 'name_to_gpio'
304 function, e.g. PH1 for pin 1 of port H.
Simon Glass06679ad2015-04-14 21:03:38 -0600305
Stefan Roeseab91fd52016-01-20 08:13:28 +0100306config VIDEO_MVEBU
307 bool "Armada XP LCD controller"
308 default n
309 ---help---
310 Support for the LCD controller integrated in the Marvell
311 Armada XP SoC.
312
Anatolij Gustschin4601eb42016-01-25 17:17:22 +0100313config I2C_EDID
314 bool "Enable EDID library"
315 depends on DM_I2C
316 default n
317 help
318 This enables library for accessing EDID data from an LCD panel.
319
Simon Glass7d3d7762016-01-21 19:45:00 -0700320config DISPLAY
321 bool "Enable Display support"
322 depends on DM
Anatolij Gustschin4601eb42016-01-25 17:17:22 +0100323 default n
324 select I2C_EDID
Simon Glass06679ad2015-04-14 21:03:38 -0600325 help
Simon Glass7d3d7762016-01-21 19:45:00 -0700326 This supports drivers that provide a display, such as eDP (Embedded
327 DisplayPort) and HDMI (High Definition Multimedia Interface).
328 The devices provide a simple interface to start up the display,
329 read display information and enable it.
Simon Glass3ef2a722015-04-14 21:03:42 -0600330
Simon Glass0139ae62016-01-21 19:45:03 -0700331config VIDEO_ROCKCHIP
332 bool "Enable Rockchip video support"
333 depends on DM_VIDEO
334 help
335 Rockchip SoCs provide video output capabilities for High-Definition
336 Multimedia Interface (HDMI), Low-voltage Differential Signalling
337 (LVDS), embedded DisplayPort (eDP) and Display Serial Interface
338 (DSI). This driver supports the on-chip video output device, and
339 targets the Rockchip RK3288.
340
Simon Glass161eea72016-01-18 19:52:24 -0700341config VIDEO_SANDBOX_SDL
342 bool "Enable sandbox video console using SDL"
343 depends on SANDBOX
344 help
345 When using sandbox you can enable an emulated LCD display which
346 appears as an SDL (Simple DirectMedia Layer) window. This is a
347 console device and can display stdout output. Within U-Boot is is
348 a normal bitmap display and can display images as well as text.
349
Simon Glass3ef2a722015-04-14 21:03:42 -0600350config VIDEO_TEGRA124
351 bool "Enable video support on Tegra124"
352 help
353 Tegra124 supports many video output options including eDP and
354 HDMI. At present only eDP is supported by U-Boot. This option
355 enables this support which can be used on devices which
356 have an eDP display connected.
Simon Glass7cf17572015-07-02 18:16:08 -0600357
358source "drivers/video/bridge/Kconfig"
Masahiro Yamadacc85b7b2015-07-26 02:46:26 +0900359
360endmenu