blob: 946d958f9f828bf9a9465bcbca16ea2c0c0e25a2 [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 Glass42bf3ee2014-12-29 19:32:28 -070047config VIDEO_VESA
48 bool "Enable VESA video driver support"
Simon Glass42bf3ee2014-12-29 19:32:28 -070049 default n
50 help
51 Turn on this option to enable a very simple driver which uses vesa
52 to discover the video mode and then provides a frame buffer for use
53 by U-Boot. This can in principle be used with any platform that
54 supports PCI and video cards that support VESA BIOS Extension (VBE).
55
Bin Meng072b79d2015-05-11 07:36:29 +080056config FRAMEBUFFER_SET_VESA_MODE
57 bool "Set framebuffer graphics resolution"
58 depends on VIDEO_VESA
59 help
60 Set VESA/native framebuffer mode (needed for bootsplash and graphical
61 framebuffer console)
62
63choice
64 prompt "framebuffer graphics resolution"
65 default FRAMEBUFFER_VESA_MODE_117
66 depends on FRAMEBUFFER_SET_VESA_MODE
67 help
68 This option sets the resolution used for the U-Boot framebuffer (and
69 bootsplash screen).
70
71config FRAMEBUFFER_VESA_MODE_100
72 bool "640x400 256-color"
73
74config FRAMEBUFFER_VESA_MODE_101
75 bool "640x480 256-color"
76
77config FRAMEBUFFER_VESA_MODE_102
78 bool "800x600 16-color"
79
80config FRAMEBUFFER_VESA_MODE_103
81 bool "800x600 256-color"
82
83config FRAMEBUFFER_VESA_MODE_104
84 bool "1024x768 16-color"
85
86config FRAMEBUFFER_VESA_MODE_105
Bin Meng932adc62015-08-09 23:26:59 -070087 bool "1024x768 256-color"
Bin Meng072b79d2015-05-11 07:36:29 +080088
89config FRAMEBUFFER_VESA_MODE_106
90 bool "1280x1024 16-color"
91
92config FRAMEBUFFER_VESA_MODE_107
93 bool "1280x1024 256-color"
94
95config FRAMEBUFFER_VESA_MODE_108
96 bool "80x60 text"
97
98config FRAMEBUFFER_VESA_MODE_109
99 bool "132x25 text"
100
101config FRAMEBUFFER_VESA_MODE_10A
102 bool "132x43 text"
103
104config FRAMEBUFFER_VESA_MODE_10B
105 bool "132x50 text"
106
107config FRAMEBUFFER_VESA_MODE_10C
108 bool "132x60 text"
109
110config FRAMEBUFFER_VESA_MODE_10D
111 bool "320x200 32k-color (1:5:5:5)"
112
113config FRAMEBUFFER_VESA_MODE_10E
114 bool "320x200 64k-color (5:6:5)"
115
116config FRAMEBUFFER_VESA_MODE_10F
117 bool "320x200 16.8M-color (8:8:8)"
118
119config FRAMEBUFFER_VESA_MODE_110
120 bool "640x480 32k-color (1:5:5:5)"
121
122config FRAMEBUFFER_VESA_MODE_111
123 bool "640x480 64k-color (5:6:5)"
124
125config FRAMEBUFFER_VESA_MODE_112
126 bool "640x480 16.8M-color (8:8:8)"
127
128config FRAMEBUFFER_VESA_MODE_113
129 bool "800x600 32k-color (1:5:5:5)"
130
131config FRAMEBUFFER_VESA_MODE_114
132 bool "800x600 64k-color (5:6:5)"
133
134config FRAMEBUFFER_VESA_MODE_115
135 bool "800x600 16.8M-color (8:8:8)"
136
137config FRAMEBUFFER_VESA_MODE_116
138 bool "1024x768 32k-color (1:5:5:5)"
139
140config FRAMEBUFFER_VESA_MODE_117
141 bool "1024x768 64k-color (5:6:5)"
142
143config FRAMEBUFFER_VESA_MODE_118
144 bool "1024x768 16.8M-color (8:8:8)"
145
146config FRAMEBUFFER_VESA_MODE_119
147 bool "1280x1024 32k-color (1:5:5:5)"
148
149config FRAMEBUFFER_VESA_MODE_11A
150 bool "1280x1024 64k-color (5:6:5)"
151
152config FRAMEBUFFER_VESA_MODE_11B
153 bool "1280x1024 16.8M-color (8:8:8)"
154
155config FRAMEBUFFER_VESA_MODE_USER
156 bool "Manually select VESA mode"
157
158endchoice
159
160# Map the config names to an integer (KB).
161config FRAMEBUFFER_VESA_MODE
162 prompt "VESA mode" if FRAMEBUFFER_VESA_MODE_USER
163 hex
164 default 0x100 if FRAMEBUFFER_VESA_MODE_100
165 default 0x101 if FRAMEBUFFER_VESA_MODE_101
166 default 0x102 if FRAMEBUFFER_VESA_MODE_102
167 default 0x103 if FRAMEBUFFER_VESA_MODE_103
168 default 0x104 if FRAMEBUFFER_VESA_MODE_104
169 default 0x105 if FRAMEBUFFER_VESA_MODE_105
170 default 0x106 if FRAMEBUFFER_VESA_MODE_106
171 default 0x107 if FRAMEBUFFER_VESA_MODE_107
172 default 0x108 if FRAMEBUFFER_VESA_MODE_108
173 default 0x109 if FRAMEBUFFER_VESA_MODE_109
174 default 0x10A if FRAMEBUFFER_VESA_MODE_10A
175 default 0x10B if FRAMEBUFFER_VESA_MODE_10B
176 default 0x10C if FRAMEBUFFER_VESA_MODE_10C
177 default 0x10D if FRAMEBUFFER_VESA_MODE_10D
178 default 0x10E if FRAMEBUFFER_VESA_MODE_10E
179 default 0x10F if FRAMEBUFFER_VESA_MODE_10F
180 default 0x110 if FRAMEBUFFER_VESA_MODE_110
181 default 0x111 if FRAMEBUFFER_VESA_MODE_111
182 default 0x112 if FRAMEBUFFER_VESA_MODE_112
183 default 0x113 if FRAMEBUFFER_VESA_MODE_113
184 default 0x114 if FRAMEBUFFER_VESA_MODE_114
185 default 0x115 if FRAMEBUFFER_VESA_MODE_115
186 default 0x116 if FRAMEBUFFER_VESA_MODE_116
187 default 0x117 if FRAMEBUFFER_VESA_MODE_117
188 default 0x118 if FRAMEBUFFER_VESA_MODE_118
189 default 0x119 if FRAMEBUFFER_VESA_MODE_119
190 default 0x11A if FRAMEBUFFER_VESA_MODE_11A
191 default 0x11B if FRAMEBUFFER_VESA_MODE_11B
192 default 0x117 if FRAMEBUFFER_VESA_MODE_USER
193
Hans de Goededfc1efe2015-08-08 16:03:29 +0200194config VIDEO_LCD_ANX9804
195 bool "ANX9804 bridge chip"
196 default n
197 ---help---
198 Support for the ANX9804 bridge chip, which can take pixel data coming
199 from a parallel LCD interface and translate it on the fy into a DP
200 interface for driving eDP TFT displays. It uses I2C for configuration.
201
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200202config VIDEO_LCD_SSD2828
203 bool "SSD2828 bridge chip"
204 default n
205 ---help---
206 Support for the SSD2828 bridge chip, which can take pixel data coming
207 from a parallel LCD interface and translate it on the fly into MIPI DSI
208 interface for driving a MIPI compatible LCD panel. It uses SPI for
209 configuration.
210
211config VIDEO_LCD_SSD2828_TX_CLK
212 int "SSD2828 TX_CLK frequency (in MHz)"
213 depends on VIDEO_LCD_SSD2828
Siarhei Siamashka61fb91f2015-01-19 05:23:35 +0200214 default 0
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200215 ---help---
216 The frequency of the crystal, which is clocking SSD2828. It may be
217 anything in the 8MHz-30MHz range and the exact value should be
218 retrieved from the board schematics. Or in the case of Allwinner
219 hardware, it can be usually found as 'lcd_xtal_freq' variable in
Siarhei Siamashka61fb91f2015-01-19 05:23:35 +0200220 FEX files. It can be also set to 0 for selecting PCLK from the
221 parallel LCD interface instead of TX_CLK as the PLL clock source.
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200222
223config VIDEO_LCD_SSD2828_RESET
224 string "RESET pin of SSD2828"
225 depends on VIDEO_LCD_SSD2828
226 default ""
227 ---help---
228 The reset pin of SSD2828 chip. This takes a string in the format
229 understood by 'name_to_gpio' function, e.g. PH1 for pin 1 of port H.
230
Hans de Goedec0482032015-01-20 09:22:26 +0100231config VIDEO_LCD_HITACHI_TX18D42VM
232 bool "Hitachi tx18d42vm LVDS LCD panel support"
233 depends on VIDEO
234 default n
235 ---help---
236 Support for Hitachi tx18d42vm LVDS LCD panels, these panels have a
237 lcd controller which needs to be initialized over SPI, once that is
238 done they work like a regular LVDS panel.
239
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200240config VIDEO_LCD_SPI_CS
241 string "SPI CS pin for LCD related config job"
Hans de Goedec0482032015-01-20 09:22:26 +0100242 depends on VIDEO_LCD_SSD2828 || VIDEO_LCD_HITACHI_TX18D42VM
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200243 default ""
244 ---help---
245 This is one of the SPI communication pins, involved in setting up a
246 working LCD configuration. The exact role of SPI may differ for
247 different hardware setups. The option takes a string in the format
248 understood by 'name_to_gpio' function, e.g. PH1 for pin 1 of port H.
249
250config VIDEO_LCD_SPI_SCLK
251 string "SPI SCLK pin for LCD related config job"
Hans de Goedec0482032015-01-20 09:22:26 +0100252 depends on VIDEO_LCD_SSD2828 || VIDEO_LCD_HITACHI_TX18D42VM
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200253 default ""
254 ---help---
255 This is one of the SPI communication pins, involved in setting up a
256 working LCD configuration. The exact role of SPI may differ for
257 different hardware setups. The option takes a string in the format
258 understood by 'name_to_gpio' function, e.g. PH1 for pin 1 of port H.
259
260config VIDEO_LCD_SPI_MOSI
261 string "SPI MOSI pin for LCD related config job"
Hans de Goedec0482032015-01-20 09:22:26 +0100262 depends on VIDEO_LCD_SSD2828 || VIDEO_LCD_HITACHI_TX18D42VM
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200263 default ""
264 ---help---
265 This is one of the SPI communication pins, involved in setting up a
266 working LCD configuration. The exact role of SPI may differ for
267 different hardware setups. The option takes a string in the format
268 understood by 'name_to_gpio' function, e.g. PH1 for pin 1 of port H.
269
270config VIDEO_LCD_SPI_MISO
271 string "SPI MISO pin for LCD related config job (optional)"
272 depends on VIDEO_LCD_SSD2828
273 default ""
274 ---help---
275 This is one of the SPI communication pins, involved in setting up a
276 working LCD configuration. The exact role of SPI may differ for
277 different hardware setups. If wired up, this pin may provide additional
278 useful functionality. Such as bi-directional communication with the
279 hardware and LCD panel id retrieval (if the panel can report it). The
280 option takes a string in the format understood by 'name_to_gpio'
281 function, e.g. PH1 for pin 1 of port H.
Simon Glass06679ad2015-04-14 21:03:38 -0600282
283config DISPLAY_PORT
284 bool "Enable DisplayPort support"
285 help
286 eDP (Embedded DisplayPort) is a standard widely used in laptops
287 to drive LCD panels. This framework provides support for enabling
288 these displays where supported by the video hardware.
Simon Glass3ef2a722015-04-14 21:03:42 -0600289
290config VIDEO_TEGRA124
291 bool "Enable video support on Tegra124"
292 help
293 Tegra124 supports many video output options including eDP and
294 HDMI. At present only eDP is supported by U-Boot. This option
295 enables this support which can be used on devices which
296 have an eDP display connected.
Simon Glass7cf17572015-07-02 18:16:08 -0600297
298source "drivers/video/bridge/Kconfig"
Masahiro Yamadacc85b7b2015-07-26 02:46:26 +0900299
300endmenu