xref: /openbmc/u-boot/drivers/video/Kconfig (revision ecf674b7)
1#
2# Video configuration
3#
4
5menu "Graphics support"
6
7config VIDEO_VESA
8	bool "Enable VESA video driver support"
9	default n
10	help
11	  Turn on this option to enable a very simple driver which uses vesa
12	  to discover the video mode and then provides a frame buffer for use
13	  by U-Boot. This can in principle be used with any platform that
14	  supports PCI and video cards that support VESA BIOS Extension (VBE).
15
16config FRAMEBUFFER_SET_VESA_MODE
17	bool "Set framebuffer graphics resolution"
18	depends on VIDEO_VESA
19	help
20	  Set VESA/native framebuffer mode (needed for bootsplash and graphical
21	  framebuffer console)
22
23choice
24	prompt "framebuffer graphics resolution"
25	default FRAMEBUFFER_VESA_MODE_117
26	depends on FRAMEBUFFER_SET_VESA_MODE
27	help
28	  This option sets the resolution used for the U-Boot framebuffer (and
29	  bootsplash screen).
30
31config FRAMEBUFFER_VESA_MODE_100
32	bool "640x400 256-color"
33
34config FRAMEBUFFER_VESA_MODE_101
35	bool "640x480 256-color"
36
37config FRAMEBUFFER_VESA_MODE_102
38	bool "800x600 16-color"
39
40config FRAMEBUFFER_VESA_MODE_103
41	bool "800x600 256-color"
42
43config FRAMEBUFFER_VESA_MODE_104
44	bool "1024x768 16-color"
45
46config FRAMEBUFFER_VESA_MODE_105
47	bool "1024x768 256-color"
48
49config FRAMEBUFFER_VESA_MODE_106
50	bool "1280x1024 16-color"
51
52config FRAMEBUFFER_VESA_MODE_107
53	bool "1280x1024 256-color"
54
55config FRAMEBUFFER_VESA_MODE_108
56	bool "80x60 text"
57
58config FRAMEBUFFER_VESA_MODE_109
59	bool "132x25 text"
60
61config FRAMEBUFFER_VESA_MODE_10A
62	bool "132x43 text"
63
64config FRAMEBUFFER_VESA_MODE_10B
65	bool "132x50 text"
66
67config FRAMEBUFFER_VESA_MODE_10C
68	bool "132x60 text"
69
70config FRAMEBUFFER_VESA_MODE_10D
71	bool "320x200 32k-color (1:5:5:5)"
72
73config FRAMEBUFFER_VESA_MODE_10E
74	bool "320x200 64k-color (5:6:5)"
75
76config FRAMEBUFFER_VESA_MODE_10F
77	bool "320x200 16.8M-color (8:8:8)"
78
79config FRAMEBUFFER_VESA_MODE_110
80	bool "640x480 32k-color (1:5:5:5)"
81
82config FRAMEBUFFER_VESA_MODE_111
83	bool "640x480 64k-color (5:6:5)"
84
85config FRAMEBUFFER_VESA_MODE_112
86	bool "640x480 16.8M-color (8:8:8)"
87
88config FRAMEBUFFER_VESA_MODE_113
89	bool "800x600 32k-color (1:5:5:5)"
90
91config FRAMEBUFFER_VESA_MODE_114
92	bool "800x600 64k-color (5:6:5)"
93
94config FRAMEBUFFER_VESA_MODE_115
95	bool "800x600 16.8M-color (8:8:8)"
96
97config FRAMEBUFFER_VESA_MODE_116
98	bool "1024x768 32k-color (1:5:5:5)"
99
100config FRAMEBUFFER_VESA_MODE_117
101	bool "1024x768 64k-color (5:6:5)"
102
103config FRAMEBUFFER_VESA_MODE_118
104	bool "1024x768 16.8M-color (8:8:8)"
105
106config FRAMEBUFFER_VESA_MODE_119
107	bool "1280x1024 32k-color (1:5:5:5)"
108
109config FRAMEBUFFER_VESA_MODE_11A
110	bool "1280x1024 64k-color (5:6:5)"
111
112config FRAMEBUFFER_VESA_MODE_11B
113	bool "1280x1024 16.8M-color (8:8:8)"
114
115config FRAMEBUFFER_VESA_MODE_USER
116	bool "Manually select VESA mode"
117
118endchoice
119
120# Map the config names to an integer (KB).
121config FRAMEBUFFER_VESA_MODE
122	prompt "VESA mode" if FRAMEBUFFER_VESA_MODE_USER
123	hex
124	default 0x100 if FRAMEBUFFER_VESA_MODE_100
125	default 0x101 if FRAMEBUFFER_VESA_MODE_101
126	default 0x102 if FRAMEBUFFER_VESA_MODE_102
127	default 0x103 if FRAMEBUFFER_VESA_MODE_103
128	default 0x104 if FRAMEBUFFER_VESA_MODE_104
129	default 0x105 if FRAMEBUFFER_VESA_MODE_105
130	default 0x106 if FRAMEBUFFER_VESA_MODE_106
131	default 0x107 if FRAMEBUFFER_VESA_MODE_107
132	default 0x108 if FRAMEBUFFER_VESA_MODE_108
133	default 0x109 if FRAMEBUFFER_VESA_MODE_109
134	default 0x10A if FRAMEBUFFER_VESA_MODE_10A
135	default 0x10B if FRAMEBUFFER_VESA_MODE_10B
136	default 0x10C if FRAMEBUFFER_VESA_MODE_10C
137	default 0x10D if FRAMEBUFFER_VESA_MODE_10D
138	default 0x10E if FRAMEBUFFER_VESA_MODE_10E
139	default 0x10F if FRAMEBUFFER_VESA_MODE_10F
140	default 0x110 if FRAMEBUFFER_VESA_MODE_110
141	default 0x111 if FRAMEBUFFER_VESA_MODE_111
142	default 0x112 if FRAMEBUFFER_VESA_MODE_112
143	default 0x113 if FRAMEBUFFER_VESA_MODE_113
144	default 0x114 if FRAMEBUFFER_VESA_MODE_114
145	default 0x115 if FRAMEBUFFER_VESA_MODE_115
146	default 0x116 if FRAMEBUFFER_VESA_MODE_116
147	default 0x117 if FRAMEBUFFER_VESA_MODE_117
148	default 0x118 if FRAMEBUFFER_VESA_MODE_118
149	default 0x119 if FRAMEBUFFER_VESA_MODE_119
150	default 0x11A if FRAMEBUFFER_VESA_MODE_11A
151	default 0x11B if FRAMEBUFFER_VESA_MODE_11B
152	default 0x117 if FRAMEBUFFER_VESA_MODE_USER
153
154config VIDEO_LCD_SSD2828
155	bool "SSD2828 bridge chip"
156	default n
157	---help---
158	Support for the SSD2828 bridge chip, which can take pixel data coming
159	from a parallel LCD interface and translate it on the fly into MIPI DSI
160	interface for driving a MIPI compatible LCD panel. It uses SPI for
161	configuration.
162
163config VIDEO_LCD_SSD2828_TX_CLK
164	int "SSD2828 TX_CLK frequency (in MHz)"
165	depends on VIDEO_LCD_SSD2828
166	default 0
167	---help---
168	The frequency of the crystal, which is clocking SSD2828. It may be
169	anything in the 8MHz-30MHz range and the exact value should be
170	retrieved from the board schematics. Or in the case of Allwinner
171	hardware, it can be usually found as 'lcd_xtal_freq' variable in
172	FEX files. It can be also set to 0 for selecting PCLK from the
173	parallel LCD interface instead of TX_CLK as the PLL clock source.
174
175config VIDEO_LCD_SSD2828_RESET
176	string "RESET pin of SSD2828"
177	depends on VIDEO_LCD_SSD2828
178	default ""
179	---help---
180	The reset pin of SSD2828 chip. This takes a string in the format
181	understood by 'name_to_gpio' function, e.g. PH1 for pin 1 of port H.
182
183config VIDEO_LCD_HITACHI_TX18D42VM
184	bool "Hitachi tx18d42vm LVDS LCD panel support"
185	depends on VIDEO
186	default n
187	---help---
188	Support for Hitachi tx18d42vm LVDS LCD panels, these panels have a
189	lcd controller which needs to be initialized over SPI, once that is
190	done they work like a regular LVDS panel.
191
192config VIDEO_LCD_SPI_CS
193	string "SPI CS pin for LCD related config job"
194	depends on VIDEO_LCD_SSD2828 || VIDEO_LCD_HITACHI_TX18D42VM
195	default ""
196	---help---
197	This is one of the SPI communication pins, involved in setting up a
198	working LCD configuration. The exact role of SPI may differ for
199	different hardware setups. The option takes a string in the format
200	understood by 'name_to_gpio' function, e.g. PH1 for pin 1 of port H.
201
202config VIDEO_LCD_SPI_SCLK
203	string "SPI SCLK pin for LCD related config job"
204	depends on VIDEO_LCD_SSD2828 || VIDEO_LCD_HITACHI_TX18D42VM
205	default ""
206	---help---
207	This is one of the SPI communication pins, involved in setting up a
208	working LCD configuration. The exact role of SPI may differ for
209	different hardware setups. The option takes a string in the format
210	understood by 'name_to_gpio' function, e.g. PH1 for pin 1 of port H.
211
212config VIDEO_LCD_SPI_MOSI
213	string "SPI MOSI pin for LCD related config job"
214	depends on VIDEO_LCD_SSD2828 || VIDEO_LCD_HITACHI_TX18D42VM
215	default ""
216	---help---
217	This is one of the SPI communication pins, involved in setting up a
218	working LCD configuration. The exact role of SPI may differ for
219	different hardware setups. The option takes a string in the format
220	understood by 'name_to_gpio' function, e.g. PH1 for pin 1 of port H.
221
222config VIDEO_LCD_SPI_MISO
223	string "SPI MISO pin for LCD related config job (optional)"
224	depends on VIDEO_LCD_SSD2828
225	default ""
226	---help---
227	This is one of the SPI communication pins, involved in setting up a
228	working LCD configuration. The exact role of SPI may differ for
229	different hardware setups. If wired up, this pin may provide additional
230	useful functionality. Such as bi-directional communication with the
231	hardware and LCD panel id retrieval (if the panel can report it). The
232	option takes a string in the format understood by 'name_to_gpio'
233	function, e.g. PH1 for pin 1 of port H.
234
235config DISPLAY_PORT
236	bool "Enable DisplayPort support"
237	help
238	   eDP (Embedded DisplayPort) is a standard widely used in laptops
239	   to drive LCD panels. This framework provides support for enabling
240	   these displays where supported by the video hardware.
241
242config VIDEO_TEGRA124
243	bool "Enable video support on Tegra124"
244	help
245	   Tegra124 supports many video output options including eDP and
246	   HDMI. At present only eDP is supported by U-Boot. This option
247	   enables this support which can be used on devices which
248	   have an eDP display connected.
249
250source "drivers/video/bridge/Kconfig"
251
252endmenu
253