Kconfig 34 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036
  1. #
  2. # Video configuration
  3. #
  4. menu "Graphics support"
  5. config DM_VIDEO
  6. bool "Enable driver model support for LCD/video"
  7. depends on DM
  8. help
  9. This enables driver model for LCD and video devices. These support
  10. a bitmap display of various sizes and depths which can be drawn on
  11. to display a command-line console or splash screen. Enabling this
  12. option compiles in the video uclass and routes all LCD/video access
  13. through this.
  14. config BACKLIGHT
  15. bool "Enable panel backlight uclass support"
  16. depends on DM_VIDEO
  17. default y
  18. help
  19. This provides backlight uclass driver that enables basic panel
  20. backlight support.
  21. config VIDEO_PCI_DEFAULT_FB_SIZE
  22. hex "Default framebuffer size to use if no drivers request it"
  23. depends on DM_VIDEO
  24. default 0x1000000 if X86 && PCI
  25. default 0 if !(X86 && PCI)
  26. help
  27. Generally, video drivers request the amount of memory they need for
  28. the frame buffer when they are bound, by setting the size field in
  29. struct video_uc_plat. That memory is then reserved for use after
  30. relocation. But PCI drivers cannot be bound before relocation unless
  31. they are mentioned in the devicetree.
  32. With this value set appropriately, it is possible for PCI video
  33. devices to have a framebuffer allocated by U-Boot.
  34. Note: the framebuffer needs to be large enough to store all pixels at
  35. maximum resolution. For example, at 1920 x 1200 with 32 bits per
  36. pixel, 2560 * 1600 * 32 / 8 = 0xfa0000 bytes are needed.
  37. config VIDEO_COPY
  38. bool "Enable copying the frame buffer to a hardware copy"
  39. depends on DM_VIDEO
  40. help
  41. On some machines (e.g. x86), reading from the frame buffer is very
  42. slow because it is uncached. To improve performance, this feature
  43. allows the frame buffer to be kept in cached memory (allocated by
  44. U-Boot) and then copied to the hardware frame-buffer as needed.
  45. To use this, your video driver must set @copy_base in
  46. struct video_uc_plat.
  47. config BACKLIGHT_PWM
  48. bool "Generic PWM based Backlight Driver"
  49. depends on BACKLIGHT && DM_PWM
  50. default y
  51. help
  52. If you have a LCD backlight adjustable by PWM, say Y to enable
  53. this driver.
  54. This driver can be use with "simple-panel" and
  55. it understands the standard device tree
  56. (leds/backlight/pwm-backlight.txt)
  57. config BACKLIGHT_GPIO
  58. bool "Generic GPIO based Backlight Driver"
  59. depends on BACKLIGHT
  60. help
  61. If you have a LCD backlight adjustable by GPIO, say Y to enable
  62. this driver.
  63. This driver can be used with "simple-panel" and
  64. it understands the standard device tree
  65. (leds/backlight/gpio-backlight.txt)
  66. config CMD_VIDCONSOLE
  67. bool "Enable vidconsole commands lcdputs and setcurs"
  68. depends on DM_VIDEO
  69. default y
  70. help
  71. Enabling this will provide 'setcurs' and 'lcdputs' commands which
  72. support cursor positioning and drawing strings on video framebuffer.
  73. config VIDEO_BPP8
  74. bool "Support 8-bit-per-pixel displays"
  75. depends on DM_VIDEO
  76. default y
  77. help
  78. Support drawing text and bitmaps onto a 8-bit-per-pixel display.
  79. Enabling this will include code to support this display. Without
  80. this option, such displays will not be supported and console output
  81. will be empty.
  82. config VIDEO_BPP16
  83. bool "Support 16-bit-per-pixel displays"
  84. depends on DM_VIDEO
  85. default y
  86. help
  87. Support drawing text and bitmaps onto a 16-bit-per-pixel display.
  88. Enabling this will include code to support this display. Without
  89. this option, such displays will not be supported and console output
  90. will be empty.
  91. config VIDEO_BPP32
  92. bool "Support 32-bit-per-pixel displays"
  93. depends on DM_VIDEO
  94. default y
  95. help
  96. Support drawing text and bitmaps onto a 32-bit-per-pixel display.
  97. Enabling this will include code to support this display. Without
  98. this option, such displays will not be supported and console output
  99. will be empty.
  100. config VIDEO_ANSI
  101. bool "Support ANSI escape sequences in video console"
  102. depends on DM_VIDEO
  103. default y
  104. help
  105. Enable ANSI escape sequence decoding for a more fully functional
  106. console.
  107. config VIDEO_MIPI_DSI
  108. bool "Support MIPI DSI interface"
  109. depends on DM_VIDEO
  110. help
  111. Support MIPI DSI interface for driving a MIPI compatible device.
  112. The MIPI Display Serial Interface (MIPI DSI) defines a high-speed
  113. serial interface between a host processor and a display module.
  114. config CONSOLE_NORMAL
  115. bool "Support a simple text console"
  116. depends on DM_VIDEO
  117. default y if DM_VIDEO
  118. help
  119. Support drawing text on the frame buffer console so that it can be
  120. used as a console. Rotation is not supported by this driver (see
  121. CONFIG_CONSOLE_ROTATION for that). A built-in 8x16 font is used
  122. for the display.
  123. config CONSOLE_ROTATION
  124. bool "Support rotated displays"
  125. depends on DM_VIDEO
  126. help
  127. Sometimes, for example if the display is mounted in portrait
  128. mode or even if it's mounted landscape but rotated by 180degree,
  129. we need to rotate our content of the display relative to the
  130. framebuffer, so that user can read the messages which are
  131. printed out. Enable this option to include a text driver which can
  132. support this. The rotation is set by the 'rot' parameter in
  133. struct video_priv: 0=unrotated, 1=90 degrees clockwise, 2=180
  134. degrees, 3=270 degrees.
  135. config CONSOLE_TRUETYPE
  136. bool "Support a console that uses TrueType fonts"
  137. depends on DM_VIDEO
  138. help
  139. TrueTrype fonts can provide outline-drawing capability rather than
  140. needing to provide a bitmap for each font and size that is needed.
  141. With this option you can adjust the text size and use a variety of
  142. fonts. Note that this is noticeably slower than with normal console.
  143. config DM_PANEL_HX8238D
  144. bool "Enable Himax HX-8238D LCD driver"
  145. depends on DM_VIDEO
  146. help
  147. Support for HX-8238D LCD Panel
  148. The HX8238-D is a single chip controller and driver LSI that
  149. integrates the power circuit.
  150. It can drive a maximum 960x240 dot graphics on a-TFT panel
  151. displays in 16M colors with dithering.
  152. config CONSOLE_TRUETYPE_SIZE
  153. int "TrueType font size"
  154. depends on CONSOLE_TRUETYPE
  155. default 18
  156. help
  157. This sets the font size for the console. The size is measured in
  158. pixels and is the nominal height of a character. Note that fonts
  159. are commonly measured in 'points', being 1/72 inch (about 3.52mm).
  160. However that measurement depends on the size of your display and
  161. there is no standard display density. At present there is not a
  162. method to select the display's physical size, which would allow
  163. U-Boot to calculate the correct font size.
  164. config SYS_WHITE_ON_BLACK
  165. bool "Display console as white on a black background"
  166. default y if ARCH_AT91 || ARCH_EXYNOS || ARCH_ROCKCHIP || ARCH_TEGRA || X86 || ARCH_SUNXI
  167. help
  168. Normally the display is black on a white background, Enable this
  169. option to invert this, i.e. white on a black background. This can be
  170. better in low-light situations or to reduce eye strain in some
  171. cases.
  172. config NO_FB_CLEAR
  173. bool "Skip framebuffer clear"
  174. help
  175. If firmware (whatever loads u-boot) has already put a splash image
  176. on screen, you might want to preserve it until whatever u-boot
  177. loads takes over the screen. This, for example, can be used to
  178. keep splash image on screen until grub graphical boot menu starts.
  179. config PANEL
  180. bool "Enable panel uclass support"
  181. depends on DM_VIDEO
  182. default y
  183. help
  184. This provides panel uclass driver that enables basic panel support.
  185. config SIMPLE_PANEL
  186. bool "Enable simple panel support"
  187. depends on PANEL && BACKLIGHT && DM_GPIO
  188. default y
  189. help
  190. This turns on a simple panel driver that enables a compatible
  191. video panel.
  192. source "drivers/video/fonts/Kconfig"
  193. config VIDCONSOLE_AS_LCD
  194. bool "Use 'vidconsole' when CONFIG_VIDCONSOLE_AS_NAME string is seen in stdout"
  195. depends on DM_VIDEO
  196. help
  197. This is a work-around for boards which have 'lcd' or 'vga' in their
  198. stdout environment variable, but have moved to use driver model for
  199. video. In this case the console will no-longer work. While it is
  200. possible to update the environment, the breakage may be confusing for
  201. users. This option will be removed around the end of 2020.
  202. config VIDCONSOLE_AS_NAME
  203. string "Use 'vidconsole' when string defined here is seen in stdout"
  204. depends on VIDCONSOLE_AS_LCD
  205. default "lcd" if LCD || TEGRA_COMMON
  206. default "vga" if !LCD
  207. help
  208. This is a work-around for boards which have 'lcd' or 'vga' in their
  209. stdout environment variable, but have moved to use driver model for
  210. video. In this case the console will no-longer work. While it is
  211. possible to update the environment, the breakage may be confusing for
  212. users. This option will be removed around the end of 2020.
  213. config VIDEO_COREBOOT
  214. bool "Enable coreboot framebuffer driver support"
  215. depends on X86
  216. help
  217. Turn on this option to enable a framebuffer driver when U-Boot is
  218. loaded by coreboot where the graphics device is configured by
  219. coreboot already. This can in principle be used with any platform
  220. that coreboot supports.
  221. config VIDEO_EFI
  222. bool "Enable EFI framebuffer driver support"
  223. depends on EFI_STUB
  224. help
  225. Turn on this option to enable a framebuffeer driver when U-Boot is
  226. loaded as a payload (see README.u-boot_on_efi) by an EFI BIOS where
  227. the graphics device is configured by the EFI BIOS already. This can
  228. in principle be used with any platform that has an EFI BIOS.
  229. config VIDEO_VESA
  230. bool "Enable VESA video driver support"
  231. default n
  232. help
  233. Turn on this option to enable a very simple driver which uses vesa
  234. to discover the video mode and then provides a frame buffer for use
  235. by U-Boot. This can in principle be used with any platform that
  236. supports PCI and video cards that support VESA BIOS Extension (VBE).
  237. config FRAMEBUFFER_SET_VESA_MODE
  238. bool "Set framebuffer graphics resolution"
  239. depends on VIDEO_VESA || VIDEO_BROADWELL_IGD
  240. help
  241. Set VESA/native framebuffer mode (needed for bootsplash and graphical
  242. framebuffer console)
  243. choice
  244. prompt "framebuffer graphics resolution"
  245. default FRAMEBUFFER_VESA_MODE_118
  246. depends on FRAMEBUFFER_SET_VESA_MODE
  247. help
  248. This option sets the resolution used for the U-Boot framebuffer (and
  249. bootsplash screen).
  250. config FRAMEBUFFER_VESA_MODE_100
  251. bool "640x400 256-color"
  252. config FRAMEBUFFER_VESA_MODE_101
  253. bool "640x480 256-color"
  254. config FRAMEBUFFER_VESA_MODE_102
  255. bool "800x600 16-color"
  256. config FRAMEBUFFER_VESA_MODE_103
  257. bool "800x600 256-color"
  258. config FRAMEBUFFER_VESA_MODE_104
  259. bool "1024x768 16-color"
  260. config FRAMEBUFFER_VESA_MODE_105
  261. bool "1024x768 256-color"
  262. config FRAMEBUFFER_VESA_MODE_106
  263. bool "1280x1024 16-color"
  264. config FRAMEBUFFER_VESA_MODE_107
  265. bool "1280x1024 256-color"
  266. config FRAMEBUFFER_VESA_MODE_108
  267. bool "80x60 text"
  268. config FRAMEBUFFER_VESA_MODE_109
  269. bool "132x25 text"
  270. config FRAMEBUFFER_VESA_MODE_10A
  271. bool "132x43 text"
  272. config FRAMEBUFFER_VESA_MODE_10B
  273. bool "132x50 text"
  274. config FRAMEBUFFER_VESA_MODE_10C
  275. bool "132x60 text"
  276. config FRAMEBUFFER_VESA_MODE_10D
  277. bool "320x200 32k-color (1:5:5:5)"
  278. config FRAMEBUFFER_VESA_MODE_10E
  279. bool "320x200 64k-color (5:6:5)"
  280. config FRAMEBUFFER_VESA_MODE_10F
  281. bool "320x200 16.8M-color (8:8:8)"
  282. config FRAMEBUFFER_VESA_MODE_110
  283. bool "640x480 32k-color (1:5:5:5)"
  284. config FRAMEBUFFER_VESA_MODE_111
  285. bool "640x480 64k-color (5:6:5)"
  286. config FRAMEBUFFER_VESA_MODE_112
  287. bool "640x480 16.8M-color (8:8:8)"
  288. config FRAMEBUFFER_VESA_MODE_113
  289. bool "800x600 32k-color (1:5:5:5)"
  290. config FRAMEBUFFER_VESA_MODE_114
  291. bool "800x600 64k-color (5:6:5)"
  292. config FRAMEBUFFER_VESA_MODE_115
  293. bool "800x600 16.8M-color (8:8:8)"
  294. config FRAMEBUFFER_VESA_MODE_116
  295. bool "1024x768 32k-color (1:5:5:5)"
  296. config FRAMEBUFFER_VESA_MODE_117
  297. bool "1024x768 64k-color (5:6:5)"
  298. config FRAMEBUFFER_VESA_MODE_118
  299. bool "1024x768 16.8M-color (8:8:8)"
  300. config FRAMEBUFFER_VESA_MODE_119
  301. bool "1280x1024 32k-color (1:5:5:5)"
  302. config FRAMEBUFFER_VESA_MODE_11A
  303. bool "1280x1024 64k-color (5:6:5)"
  304. config FRAMEBUFFER_VESA_MODE_11B
  305. bool "1280x1024 16.8M-color (8:8:8)"
  306. config FRAMEBUFFER_VESA_MODE_USER
  307. bool "Manually select VESA mode"
  308. endchoice
  309. # Map the config names to an integer (KB).
  310. config FRAMEBUFFER_VESA_MODE
  311. prompt "VESA mode" if FRAMEBUFFER_VESA_MODE_USER
  312. hex
  313. default 0x100 if FRAMEBUFFER_VESA_MODE_100
  314. default 0x101 if FRAMEBUFFER_VESA_MODE_101
  315. default 0x102 if FRAMEBUFFER_VESA_MODE_102
  316. default 0x103 if FRAMEBUFFER_VESA_MODE_103
  317. default 0x104 if FRAMEBUFFER_VESA_MODE_104
  318. default 0x105 if FRAMEBUFFER_VESA_MODE_105
  319. default 0x106 if FRAMEBUFFER_VESA_MODE_106
  320. default 0x107 if FRAMEBUFFER_VESA_MODE_107
  321. default 0x108 if FRAMEBUFFER_VESA_MODE_108
  322. default 0x109 if FRAMEBUFFER_VESA_MODE_109
  323. default 0x10A if FRAMEBUFFER_VESA_MODE_10A
  324. default 0x10B if FRAMEBUFFER_VESA_MODE_10B
  325. default 0x10C if FRAMEBUFFER_VESA_MODE_10C
  326. default 0x10D if FRAMEBUFFER_VESA_MODE_10D
  327. default 0x10E if FRAMEBUFFER_VESA_MODE_10E
  328. default 0x10F if FRAMEBUFFER_VESA_MODE_10F
  329. default 0x110 if FRAMEBUFFER_VESA_MODE_110
  330. default 0x111 if FRAMEBUFFER_VESA_MODE_111
  331. default 0x112 if FRAMEBUFFER_VESA_MODE_112
  332. default 0x113 if FRAMEBUFFER_VESA_MODE_113
  333. default 0x114 if FRAMEBUFFER_VESA_MODE_114
  334. default 0x115 if FRAMEBUFFER_VESA_MODE_115
  335. default 0x116 if FRAMEBUFFER_VESA_MODE_116
  336. default 0x117 if FRAMEBUFFER_VESA_MODE_117
  337. default 0x118 if FRAMEBUFFER_VESA_MODE_118
  338. default 0x119 if FRAMEBUFFER_VESA_MODE_119
  339. default 0x11A if FRAMEBUFFER_VESA_MODE_11A
  340. default 0x11B if FRAMEBUFFER_VESA_MODE_11B
  341. default 0x117 if FRAMEBUFFER_VESA_MODE_USER
  342. config VIDEO_LCD_ANX9804
  343. bool "ANX9804 bridge chip"
  344. default n
  345. ---help---
  346. Support for the ANX9804 bridge chip, which can take pixel data coming
  347. from a parallel LCD interface and translate it on the fy into a DP
  348. interface for driving eDP TFT displays. It uses I2C for configuration.
  349. config VIDEO_LCD_ORISETECH_OTM8009A
  350. bool "OTM8009A DSI LCD panel support"
  351. depends on DM_VIDEO
  352. select VIDEO_MIPI_DSI
  353. default n
  354. help
  355. Say Y here if you want to enable support for Orise Technology
  356. otm8009a 480x800 dsi 2dl panel.
  357. config VIDEO_LCD_RAYDIUM_RM68200
  358. bool "RM68200 DSI LCD panel support"
  359. depends on DM_VIDEO
  360. select VIDEO_MIPI_DSI
  361. default n
  362. help
  363. Say Y here if you want to enable support for Raydium RM68200
  364. 720x1280 DSI video mode panel.
  365. config VIDEO_LCD_STARFIVE_SEEED
  366. bool "seeed DSI LCD panel support"
  367. depends on DM_VIDEO
  368. select VIDEO_MIPI_DSI
  369. default n
  370. help
  371. Say Y here if you want to enable support for seeed
  372. 800X480 DSI video mode panel.
  373. config VIDEO_SF_MIPI2EDP
  374. bool "mipi to edp LCD panel support"
  375. depends on DM_VIDEO
  376. select VIDEO_MIPI_DSI
  377. default n
  378. help
  379. Say Y here if you want to enable support for edp
  380. 1920X1080 DSI video mode panel.
  381. config VIDEO_LCD_SSD2828
  382. bool "SSD2828 bridge chip"
  383. default n
  384. ---help---
  385. Support for the SSD2828 bridge chip, which can take pixel data coming
  386. from a parallel LCD interface and translate it on the fly into MIPI DSI
  387. interface for driving a MIPI compatible LCD panel. It uses SPI for
  388. configuration.
  389. config VIDEO_LCD_SSD2828_TX_CLK
  390. int "SSD2828 TX_CLK frequency (in MHz)"
  391. depends on VIDEO_LCD_SSD2828
  392. default 0
  393. ---help---
  394. The frequency of the crystal, which is clocking SSD2828. It may be
  395. anything in the 8MHz-30MHz range and the exact value should be
  396. retrieved from the board schematics. Or in the case of Allwinner
  397. hardware, it can be usually found as 'lcd_xtal_freq' variable in
  398. FEX files. It can be also set to 0 for selecting PCLK from the
  399. parallel LCD interface instead of TX_CLK as the PLL clock source.
  400. config VIDEO_LCD_SSD2828_RESET
  401. string "RESET pin of SSD2828"
  402. depends on VIDEO_LCD_SSD2828
  403. default ""
  404. ---help---
  405. The reset pin of SSD2828 chip. This takes a string in the format
  406. understood by 'name_to_gpio' function, e.g. PH1 for pin 1 of port H.
  407. config VIDEO_LCD_TDO_TL070WSH30
  408. bool "TDO TL070WSH30 DSI LCD panel support"
  409. depends on DM_VIDEO
  410. select VIDEO_MIPI_DSI
  411. default n
  412. help
  413. Say Y here if you want to enable support for TDO TL070WSH30
  414. 1024x600 DSI video mode panel.
  415. config VIDEO_LCD_HITACHI_TX18D42VM
  416. bool "Hitachi tx18d42vm LVDS LCD panel support"
  417. default n
  418. ---help---
  419. Support for Hitachi tx18d42vm LVDS LCD panels, these panels have a
  420. lcd controller which needs to be initialized over SPI, once that is
  421. done they work like a regular LVDS panel.
  422. config VIDEO_LCD_SPI_CS
  423. string "SPI CS pin for LCD related config job"
  424. depends on VIDEO_LCD_SSD2828 || VIDEO_LCD_HITACHI_TX18D42VM
  425. default ""
  426. ---help---
  427. This is one of the SPI communication pins, involved in setting up a
  428. working LCD configuration. The exact role of SPI may differ for
  429. different hardware setups. The option takes a string in the format
  430. understood by 'name_to_gpio' function, e.g. PH1 for pin 1 of port H.
  431. config VIDEO_LCD_SPI_SCLK
  432. string "SPI SCLK pin for LCD related config job"
  433. depends on VIDEO_LCD_SSD2828 || VIDEO_LCD_HITACHI_TX18D42VM
  434. default ""
  435. ---help---
  436. This is one of the SPI communication pins, involved in setting up a
  437. working LCD configuration. The exact role of SPI may differ for
  438. different hardware setups. The option takes a string in the format
  439. understood by 'name_to_gpio' function, e.g. PH1 for pin 1 of port H.
  440. config VIDEO_LCD_SPI_MOSI
  441. string "SPI MOSI pin for LCD related config job"
  442. depends on VIDEO_LCD_SSD2828 || VIDEO_LCD_HITACHI_TX18D42VM
  443. default ""
  444. ---help---
  445. This is one of the SPI communication pins, involved in setting up a
  446. working LCD configuration. The exact role of SPI may differ for
  447. different hardware setups. The option takes a string in the format
  448. understood by 'name_to_gpio' function, e.g. PH1 for pin 1 of port H.
  449. config VIDEO_LCD_SPI_MISO
  450. string "SPI MISO pin for LCD related config job (optional)"
  451. depends on VIDEO_LCD_SSD2828
  452. default ""
  453. ---help---
  454. This is one of the SPI communication pins, involved in setting up a
  455. working LCD configuration. The exact role of SPI may differ for
  456. different hardware setups. If wired up, this pin may provide additional
  457. useful functionality. Such as bi-directional communication with the
  458. hardware and LCD panel id retrieval (if the panel can report it). The
  459. option takes a string in the format understood by 'name_to_gpio'
  460. function, e.g. PH1 for pin 1 of port H.
  461. source "drivers/video/meson/Kconfig"
  462. config VIDEO_MVEBU
  463. bool "Armada XP LCD controller"
  464. default n
  465. ---help---
  466. Support for the LCD controller integrated in the Marvell
  467. Armada XP SoC.
  468. config VIDEO_OMAP3
  469. bool "Enable OMAP3+ DSS Support"
  470. depends on ARCH_OMAP2PLUS
  471. help
  472. This enables the Display subsystem (DSS) on OMAP3+ boards.
  473. config I2C_EDID
  474. bool "Enable EDID library"
  475. default n
  476. help
  477. This enables library for accessing EDID data from an LCD panel.
  478. config DISPLAY
  479. bool "Enable Display support"
  480. depends on DM
  481. default n
  482. select I2C_EDID
  483. help
  484. This supports drivers that provide a display, such as eDP (Embedded
  485. DisplayPort) and HDMI (High Definition Multimedia Interface).
  486. The devices provide a simple interface to start up the display,
  487. read display information and enable it.
  488. config NXP_TDA19988
  489. bool "Enable NXP TDA19988 support"
  490. depends on DISPLAY
  491. default n
  492. help
  493. This enables support for the NXP TDA19988 HDMI encoder. This encoder
  494. will convert RGB data streams into HDMI-encoded signals.
  495. config ATMEL_HLCD
  496. bool "Enable ATMEL video support using HLCDC"
  497. help
  498. HLCDC supports video output to an attached LCD panel.
  499. source "drivers/video/ti/Kconfig"
  500. config LOGICORE_DP_TX
  501. bool "Enable Logicore DP TX driver"
  502. depends on DISPLAY
  503. help
  504. Enable the driver for the transmitter part of the Xilinx LogiCORE
  505. DisplayPort, a IP core for Xilinx FPGAs that implements a DisplayPort
  506. video interface as defined by VESA DisplayPort v1.2.
  507. Note that this is a pure transmitter device, and has no display
  508. capabilities by itself.
  509. config VIDEO_BROADWELL_IGD
  510. bool "Enable Intel Broadwell integrated graphics device"
  511. depends on X86
  512. help
  513. This enables support for integrated graphics on Intel broadwell
  514. devices. Initialisation is mostly performed by a VGA boot ROM, with
  515. some setup handled by U-Boot itself. The graphics adaptor works as
  516. a VESA device and supports LCD panels, eDP and LVDS outputs.
  517. Configuration of most aspects of device operation is performed using
  518. a special tool which configures the VGA ROM, but the graphics
  519. resolution can be selected in U-Boot.
  520. config VIDEO_IVYBRIDGE_IGD
  521. bool "Enable Intel Ivybridge integration graphics support"
  522. depends on X86
  523. help
  524. This enables support for integrated graphics on Intel ivybridge
  525. devices. Initialisation is mostly performed by a VGA boot ROM, with
  526. some setup handled by U-Boot itself. The graphics adaptor works as
  527. a VESA device and supports LCD panels, eDP and LVDS outputs.
  528. Configuration of most aspects of device operation is performed using
  529. a special tool which configures the VGA ROM, but the graphics
  530. resolution can be selected in U-Boot.
  531. config VIDEO_FSL_DCU_FB
  532. bool "Enable Freescale Display Control Unit"
  533. depends on VIDEO || DM_VIDEO
  534. help
  535. This enables support for Freescale Display Control Unit (DCU4)
  536. module found on Freescale Vybrid and QorIQ family of SoCs.
  537. config VIDEO_FSL_DCU_MAX_FB_SIZE_MB
  538. int "Freescale DCU framebuffer size"
  539. depends on VIDEO_FSL_DCU_FB
  540. default 4194304
  541. help
  542. Set maximum framebuffer size to be used for Freescale Display
  543. Controller Unit (DCU4).
  544. source "drivers/video/rockchip/Kconfig"
  545. config VIDEO_ARM_MALIDP
  546. bool "Enable Arm Mali Display Processor support"
  547. depends on DM_VIDEO && OF_CONTROL
  548. select VEXPRESS_CLK
  549. help
  550. This enables support for Arm Ltd Mali Display Processors from
  551. the DP500, DP550 and DP650 family.
  552. config VIDEO_SANDBOX_SDL
  553. bool "Enable sandbox video console using SDL"
  554. depends on SANDBOX
  555. help
  556. When using sandbox you can enable an emulated LCD display which
  557. appears as an SDL (Simple DirectMedia Layer) window. This is a
  558. console device and can display stdout output. Within U-Boot is is
  559. a normal bitmap display and can display images as well as text.
  560. source "drivers/video/stm32/Kconfig"
  561. config VIDEO_TEGRA20
  562. bool "Enable LCD support on Tegra20"
  563. depends on OF_CONTROL
  564. help
  565. Tegra20 supports video output to an attached LCD panel as well as
  566. other options such as HDMI. Only the LCD is supported in U-Boot.
  567. This option enables this support which can be used on devices which
  568. have an LCD display connected.
  569. config VIDEO_TEGRA124
  570. bool "Enable video support on Tegra124"
  571. depends on DM_VIDEO
  572. help
  573. Tegra124 supports many video output options including eDP and
  574. HDMI. At present only eDP is supported by U-Boot. This option
  575. enables this support which can be used on devices which
  576. have an eDP display connected.
  577. source "drivers/video/bridge/Kconfig"
  578. source "drivers/video/imx/Kconfig"
  579. config VIDEO_NX
  580. bool "Enable video support on Nexell SoC"
  581. depends on ARCH_S5P6818 || ARCH_S5P4418
  582. help
  583. Nexell SoC supports many video output options including eDP and
  584. HDMI. This option enables this support which can be used on devices
  585. which have an eDP display connected.
  586. config VIDEO_SEPS525
  587. bool "Enable video support for Seps525"
  588. depends on DM_VIDEO
  589. help
  590. Enable support for the Syncoam PM-OLED display driver (RGB 160x128).
  591. Currently driver is supporting only SPI interface.
  592. source "drivers/video/nexell/Kconfig"
  593. config VIDEO
  594. bool "Enable legacy video support"
  595. depends on !DM_VIDEO
  596. help
  597. Define this for video support, without using driver model. Some
  598. drivers use this because they are not yet converted to driver
  599. model. Video drivers typically provide a colour text console and
  600. cursor.
  601. config CFB_CONSOLE
  602. bool "Enable colour frame buffer console"
  603. depends on VIDEO || ARCH_OMAP2PLUS
  604. default y if VIDEO
  605. help
  606. Enables the colour frame buffer driver. This supports colour
  607. output on a bitmap display from an in-memory frame buffer.
  608. Several colour devices are supported along with various options to
  609. adjust the supported features. The driver is implemented in
  610. cfb_console.c
  611. The following defines are needed (cf. smiLynxEM, i8042)
  612. VIDEO_FB_LITTLE_ENDIAN graphic memory organisation
  613. (default big endian)
  614. VIDEO_HW_RECTFILL graphic chip supports
  615. rectangle fill (cf. smiLynxEM)
  616. VIDEO_HW_BITBLT graphic chip supports
  617. bit-blit (cf. smiLynxEM)
  618. VIDEO_VISIBLE_COLS visible pixel columns (cols=pitch)
  619. VIDEO_VISIBLE_ROWS visible pixel rows
  620. VIDEO_PIXEL_SIZE bytes per pixel
  621. VIDEO_DATA_FORMAT graphic data format
  622. (0-5, cf. cfb_console.c)
  623. VIDEO_FB_ADRS framebuffer address
  624. VIDEO_KBD_INIT_FCT keyboard int fct (i.e. rx51_kp_init())
  625. VIDEO_TSTC_FCT test char fct (i.e. rx51_kp_tstc)
  626. VIDEO_GETC_FCT get char fct (i.e. rx51_kp_getc)
  627. CONFIG_VIDEO_LOGO display Linux logo in upper left corner
  628. CONFIG_VIDEO_BMP_LOGO use bmp_logo.h instead of linux_logo.h
  629. for logo. Requires CONFIG_VIDEO_LOGO
  630. CONFIG_CONSOLE_EXTRA_INFO
  631. additional board info beside
  632. the logo
  633. CONFIG_HIDE_LOGO_VERSION
  634. do not display bootloader
  635. version string
  636. When CONFIG_CFB_CONSOLE is defined, the video console is the
  637. default console. The serial console can be forced by setting the
  638. environment 'console=serial'.
  639. config CFB_CONSOLE_ANSI
  640. bool "Support ANSI escape sequences"
  641. depends on CFB_CONSOLE
  642. help
  643. This allows the colour buffer frame buffer driver to support
  644. a limited number of ANSI escape sequences (cursor control,
  645. erase functions and limited graphics rendition control). Normal
  646. output from U-Boot will pass through this filter.
  647. config VGA_AS_SINGLE_DEVICE
  648. bool "Set the video as an output-only device"
  649. depends on CFB_CONSOLE
  650. default y
  651. help
  652. If enable the framebuffer device will be initialized as an
  653. output-only device. The Keyboard driver will not be set up. This
  654. may be used if you have no keyboard device, or more than one
  655. (USB Keyboard, AT Keyboard).
  656. config VIDEO_SW_CURSOR
  657. bool "Enable a software cursor"
  658. depends on CFB_CONSOLE
  659. default y if CFB_CONSOLE
  660. help
  661. This draws a cursor after the last character. No blinking is
  662. provided. This makes it possible to see the current cursor
  663. position when entering text on the console. It is recommended to
  664. enable this.
  665. config CONSOLE_EXTRA_INFO
  666. bool "Display additional board information"
  667. depends on CFB_CONSOLE
  668. help
  669. Display additional board information strings that normally go to
  670. the serial port. When this option is enabled, a board-specific
  671. function video_get_info_str() is called to get the string for
  672. each line of the display. The function should return the string,
  673. which can be empty if there is nothing to display for that line.
  674. config CONSOLE_SCROLL_LINES
  675. int "Number of lines to scroll the console by"
  676. depends on CFB_CONSOLE || DM_VIDEO || LCD
  677. default 1
  678. help
  679. When the console need to be scrolled, this is the number of
  680. lines to scroll by. It defaults to 1. Increasing this makes the
  681. console jump but can help speed up operation when scrolling
  682. is slow.
  683. config SYS_CONSOLE_BG_COL
  684. hex "Background colour"
  685. depends on CFB_CONSOLE
  686. default 0x00
  687. help
  688. Defines the background colour for the console. The value is from
  689. 0x00 to 0xff and the meaning depends on the graphics card.
  690. Typically, 0x00 means black and 0xff means white. Do not set
  691. the background and foreground to the same colour or you will see
  692. nothing.
  693. config SYS_CONSOLE_FG_COL
  694. hex "Foreground colour"
  695. depends on CFB_CONSOLE
  696. default 0xa0
  697. help
  698. Defines the foreground colour for the console. The value is from
  699. 0x00 to 0xff and the meaning depends on the graphics card.
  700. Typically, 0x00 means black and 0xff means white. Do not set
  701. the background and foreground to the same colour or you will see
  702. nothing.
  703. config LCD
  704. bool "Enable legacy LCD support"
  705. help
  706. Define this to enable LCD support (for output to LCD display).
  707. You will also need to select an LCD driver using an additional
  708. CONFIG option. See the README for details. Drives which have been
  709. converted to driver model will instead used CONFIG_DM_VIDEO.
  710. config VIDEO_DW_HDMI
  711. bool
  712. help
  713. Enables the common driver code for the Designware HDMI TX
  714. block found in SoCs from various vendors.
  715. As this does not provide any functionality by itself (but
  716. rather requires a SoC-specific glue driver to call it), it
  717. can not be enabled from the configuration menu.
  718. config VIDEO_DSI_HOST_SANDBOX
  719. bool "Enable sandbox for dsi host"
  720. depends on SANDBOX
  721. select VIDEO_MIPI_DSI
  722. help
  723. Enable support for sandbox dsi host device used for testing
  724. purposes.
  725. Display Serial Interface (DSI) defines a serial bus and
  726. a communication protocol between the host and the device
  727. (panel, bridge).
  728. config VIDEO_DW_MIPI_DSI
  729. bool
  730. select VIDEO_MIPI_DSI
  731. help
  732. Enables the common driver code for the Synopsis Designware
  733. MIPI DSI block found in SoCs from various vendors.
  734. As this does not provide any functionality by itself (but
  735. rather requires a SoC-specific glue driver to call it), it
  736. can not be enabled from the configuration menu.
  737. config VIDEO_SIMPLE
  738. bool "Simple display driver for preconfigured display"
  739. help
  740. Enables a simple generic display driver which utilizes the
  741. simple-framebuffer devicetree bindings.
  742. This driver assumes that the display hardware has been initialized
  743. before u-boot starts, and u-boot will simply render to the pre-
  744. allocated frame buffer surface.
  745. config VIDEO_DT_SIMPLEFB
  746. bool "Enable SimpleFB support for passing framebuffer to OS"
  747. help
  748. Enables the code to pass the framebuffer to the kernel as a
  749. simple framebuffer in the device tree.
  750. The video output is initialized by U-Boot, and kept by the
  751. kernel.
  752. config VIDEO_MCDE_SIMPLE
  753. bool "Simple driver for ST-Ericsson MCDE with preconfigured display"
  754. depends on DM_VIDEO
  755. help
  756. Enables a simple display driver for ST-Ericsson MCDE
  757. (Multichannel Display Engine), which reads the configuration from
  758. the MCDE registers.
  759. This driver assumes that the display hardware has been initialized
  760. before u-boot starts, and u-boot will simply render to the pre-
  761. allocated frame buffer surface.
  762. config OSD
  763. bool "Enable OSD support"
  764. depends on DM
  765. default n
  766. help
  767. This supports drivers that provide a OSD (on-screen display), which
  768. is a (usually text-oriented) graphics buffer to show information on
  769. a display.
  770. config SANDBOX_OSD
  771. bool "Enable sandbox OSD"
  772. depends on OSD
  773. help
  774. Enable support for sandbox OSD device used for testing purposes.
  775. config IHS_VIDEO_OUT
  776. bool "Enable IHS video out driver"
  777. depends on OSD
  778. help
  779. Enable support for the gdsys Integrated Hardware Systems (IHS) video
  780. out On-screen Display (OSD) used on gdsys FPGAs to control dynamic
  781. textual overlays of the display outputs.
  782. config SPLASH_SCREEN
  783. bool "Show a splash-screen image"
  784. help
  785. If this option is set, the environment is checked for a variable
  786. "splashimage". If found, the usual display of logo, copyright and
  787. system information on the LCD is suppressed and the BMP image at the
  788. address specified in "splashimage" is loaded instead. The console is
  789. redirected to the "nulldev", too. This allows for a "silent" boot
  790. where a splash screen is loaded very quickly after power-on.
  791. The splash_screen_prepare() function is a weak function defined in
  792. common/splash.c. It is called as part of the splash screen display
  793. sequence. It gives the board an opportunity to prepare the splash
  794. image data before it is processed and sent to the frame buffer by
  795. U-Boot. Define your own version to use this feature.
  796. config SPLASHIMAGE_GUARD
  797. bool "Support unaligned BMP images"
  798. depends on SPLASH_SCREEN
  799. help
  800. If this option is set, then U-Boot will prevent the environment
  801. variable "splashimage" from being set to a problematic address
  802. (see doc/README.displaying-bmps).
  803. This option is useful for targets where, due to alignment
  804. restrictions, an improperly aligned BMP image will cause a data
  805. abort. If you think you will not have problems with unaligned
  806. accesses (for example because your toolchain prevents them)
  807. there is no need to set this option.
  808. config SPLASH_SCREEN_ALIGN
  809. bool "Allow positioning the splash image anywhere on the display"
  810. depends on SPLASH_SCREEN || CMD_BMP
  811. help
  812. If this option is set the splash image can be freely positioned
  813. on the screen. Environment variable "splashpos" specifies the
  814. position as "x,y". If a positive number is given it is used as
  815. number of pixel from left/top. If a negative number is given it
  816. is used as number of pixel from right/bottom. You can also
  817. specify 'm' for centering the image.
  818. Example:
  819. setenv splashpos m,m
  820. => image at center of screen
  821. setenv splashpos 30,20
  822. => image at x = 30 and y = 20
  823. setenv splashpos -10,m
  824. => vertically centered image
  825. at x = dspWidth - bmpWidth - 9
  826. config SPLASH_SOURCE
  827. bool "Control the source of the splash image"
  828. depends on SPLASH_SCREEN
  829. help
  830. Use the splash_source.c library. This library provides facilities to
  831. declare board specific splash image locations, routines for loading
  832. splash image from supported locations, and a way of controlling the
  833. selected splash location using the "splashsource" environment
  834. variable.
  835. This CONFIG works as follows:
  836. - If splashsource is set to a supported location name as defined by
  837. board code, use that splash location.
  838. - If splashsource is undefined, use the first splash location as
  839. default.
  840. - If splashsource is set to an unsupported value, do not load a splash
  841. screen.
  842. A splash source location can describe either storage with raw data, a
  843. storage formatted with a file system or a FIT image. In case of a
  844. filesystem, the splash screen data is loaded as a file. The name of
  845. the splash screen file can be controlled with the environment variable
  846. "splashfile".
  847. To enable loading the splash image from a FIT image, CONFIG_FIT must
  848. be enabled. The FIT image has to start at the 'offset' field address
  849. in the selected splash location. The name of splash image within the
  850. FIT shall be specified by the environment variable "splashfile".
  851. In case the environment variable "splashfile" is not defined the
  852. default name 'splash.bmp' will be used.
  853. config VIDEO_BMP_GZIP
  854. bool "Gzip compressed BMP image support"
  855. depends on CMD_BMP || SPLASH_SCREEN
  856. help
  857. If this option is set, additionally to standard BMP
  858. images, gzipped BMP images can be displayed via the
  859. splashscreen support or the bmp command.
  860. config VIDEO_BMP_RLE8
  861. bool "Run length encoded BMP image (RLE8) support"
  862. depends on DM_VIDEO || CFB_CONSOLE
  863. help
  864. If this option is set, the 8-bit RLE compressed BMP images
  865. is supported.
  866. config BMP_16BPP
  867. bool "16-bit-per-pixel BMP image support"
  868. depends on DM_VIDEO || LCD
  869. help
  870. Support display of bitmaps file with 16-bit-per-pixel
  871. config BMP_24BPP
  872. bool "24-bit-per-pixel BMP image support"
  873. depends on DM_VIDEO || LCD
  874. help
  875. Support display of bitmaps file with 24-bit-per-pixel.
  876. config BMP_32BPP
  877. bool "32-bit-per-pixel BMP image support"
  878. depends on DM_VIDEO || LCD
  879. help
  880. Support display of bitmaps file with 32-bit-per-pixel.
  881. config VIDEO_VCXK
  882. bool "Enable VCXK video controller driver support"
  883. default n
  884. help
  885. This enables VCXK driver which can be used with VC2K, VC4K
  886. and VC8K devices on various boards from BuS Elektronik GmbH.
  887. source "drivers/video/starfive/Kconfig"
  888. endmenu