u-boot/drivers/video
Simon Glass 1834c081d3 efi: Add video support to the app
The current EFI video driver only works when running in the stub. In that
case the stub calls boot services (before jumping to U-Boot proper) and
copies the graphics info over to the efi table. This is necessary because
the stub exits boot services before jumping to U-Boot.

The app maintains access to boot services throughout its life, so does not
need to do this. Update the driver to support calling boot services
directly.

Enable video output for the app. Note that this uses the
EFI_GRAPHICS_OUTPUT_PROTOCOL protocol, even though it mentions vesa.

A sample qemu command-line for this case is:

   qemu-system-x86_64 -bios /usr/share/edk2.git/ovmf-ia32/OVMF-pure-efi.fd
   -drive id=disk,file=try.img,if=none,format=raw -nic none
   -device ahci,id=ahci -device ide-hd,drive=disk,bus=ahci.0

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
2021-11-07 18:36:55 +01:00
..
bridge dm: define LOG_CATEGORY for all uclass 2021-07-06 10:38:03 -06:00
exynos treewide: fdt: Move fdt_get_config_... to ofnode_conf_read... 2021-09-25 09:46:15 -06:00
fonts video: add wrappers for ttf type files to .gitignore 2020-01-02 17:45:42 +01:00
imx dm: treewide: Rename ..._platdata variables to just ..._plat 2020-12-13 16:51:09 -07:00
meson Merge branch '2021-02-02-drop-asm_global_data-when-unused' 2021-02-15 10:16:45 -05:00
nexell video: add nexell video driver (display/video driver) 2020-07-29 08:43:40 -04:00
rockchip WS cleanup: remove trailing empty lines 2021-09-30 08:08:56 -04:00
stm32 video: stm32: remove all child of DSI bridge when its probe failed 2021-03-11 17:55:09 +01:00
sunxi sunxi: video: Convert panel I2C to use DM_I2C 2021-10-12 11:01:17 +01:00
tegra124 tegra: video: fix tegra_dc_sor_config_panel() 2021-04-10 17:07:35 +02:00
ti common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
anx98xx-edp.h common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
anx9804.c sunxi: video: Convert panel I2C to use DM_I2C 2021-10-12 11:01:17 +01:00
anx9804.h sunxi: video: Convert panel I2C to use DM_I2C 2021-10-12 11:01:17 +01:00
atmel_hlcdfb.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
atmel_lcdfb.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
backlight-uclass.c dm: define LOG_CATEGORY for all uclass 2021-07-06 10:38:03 -06:00
backlight_gpio.c Prepare v2021.01-rc5 2021-01-05 16:20:26 -05:00
bcm2835.c video: arm: rpi: Add brcm,bcm2711-hdmi0 compatible 2021-02-18 11:59:08 +01:00
broadwell_igd.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
bus_vcxk.c WS cleanup: remove SPACE(s) followed by TAB 2021-09-30 09:08:16 -04:00
cfb_console.c video: move MXS to Kconfig 2021-10-09 19:50:03 +02:00
console_normal.c video: Update normal console to support copy buffer 2020-07-09 12:33:24 +08:00
console_rotate.c video: Update rotated console to support copy buffer 2020-07-09 12:33:24 +08:00
console_truetype.c video: buffer overrun in TrueType console 2021-08-01 15:45:11 +02:00
coreboot.c x86: video: Allow coreboot video to be used on any x86 board 2021-03-27 15:04:30 +13:00
da8xx-fb.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
da8xx-fb.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
display-uclass.c dm: define LOG_CATEGORY for all uclass 2021-07-06 10:38:03 -06:00
dsi-host-uclass.c dm: define LOG_CATEGORY for all uclass 2021-07-06 10:38:03 -06:00
dw_hdmi.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
dw_mipi_dsi.c video: dw_mipi_dsi: update log of dphy_enable 2021-03-11 17:55:44 +01:00
efi.c efi: Add video support to the app 2021-11-07 18:36:55 +01:00
formike.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
fsl_dcu_fb.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
fsl_diu_fb.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
hitachi_tx18d42vm_lcd.c sunxi: gpio: Remove name_to_gpio macro 2021-10-11 10:46:44 +01:00
hitachi_tx18d42vm_lcd.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
hx8238d.c drivers: video: hx8238 fix build bug 2021-07-15 17:56:03 +05:30
i915_reg.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ihs_video_out.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
ivybridge_igd.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
Kconfig efi: Add video support to the app 2021-11-07 18:36:55 +01:00
ld9040.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
lg4573.c dm: Rename DM_GET_DRIVER() to DM_DRIVER_GET() 2021-01-05 12:26:35 -07:00
logicore_dp_dpcd.h video_display: Add Xilinx LogiCore DP TX 2018-08-11 09:18:44 +02:00
logicore_dp_tx.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
logicore_dp_tx.h video_display: Add Xilinx LogiCore DP TX 2018-08-11 09:18:44 +02:00
logicore_dp_tx_regif.h video_display: Add Xilinx LogiCore DP TX 2018-08-11 09:18:44 +02:00
Makefile video: remove not used mx3fb driver 2021-10-09 19:42:32 +02:00
mali_dp.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mcde_simple.c video: Add simple driver for ST-Ericsson MCDE with pre-configured display 2021-08-01 21:40:51 +02:00
mipi_dsi.c dm: core: Require users of devres to include the header 2020-02-05 19:33:46 -07:00
mvebu_lcd.c dm: treewide: Rename ..._platdata variables to just ..._plat 2020-12-13 16:51:09 -07:00
mxsfb.c WS cleanup: remove SPACE(s) followed by TAB 2021-09-30 09:08:16 -04:00
nexell_display.c Replace video_uc_platdata with video_uc_plat 2021-02-19 22:45:47 +01:00
omap3_dss.c omap3: allow dynamic selection of gfx_format 2013-03-08 16:41:13 -05:00
orisetech_otm8009a.c dm: treewide: Rename ofdata_to_platdata() to of_to_plat() 2020-12-13 16:51:09 -07:00
panel-uclass.c dm: define LOG_CATEGORY for all uclass 2021-07-06 10:38:03 -06:00
pwm_backlight.c video: Check return value in pwm_backlight_of_to_plat() 2021-07-15 18:42:05 -04:00
pxa_lcd.c global: Remove dead code that starts with CONFIG_[0-9A] 2021-08-30 14:13:28 -04:00
raydium-rm68200.c dm: treewide: Rename ofdata_to_platdata() to of_to_plat() 2020-12-13 16:51:09 -07:00
s6e8ax0.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
sandbox_dsi_host.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
sandbox_osd.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
sandbox_osd.h video_osd: Add osd sandbox driver and tests 2018-09-28 18:26:52 +02:00
sandbox_sdl.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
scf0403_lcd.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
seps525.c dm: fix build errors generated by last merges 2021-01-15 13:12:38 -05:00
simple_panel.c video: simple_panel: Add boe,nv101wxmn51 display 2021-02-19 22:26:57 +01:00
simplefb.c video: simplefb: Add 30bpp support 2021-10-09 18:48:25 +02:00
ssd2828.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
ssd2828.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
stb_truetype.h WS cleanup: remove excessive empty lines 2021-09-30 08:08:56 -04:00
tda19988.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
tdo-tl070wsh30.c WS cleanup: remove trailing white space 2021-09-30 08:08:56 -04:00
tegra.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
vesa.c dm: treewide: Rename ..._platdata variables to just ..._plat 2020-12-13 16:51:09 -07:00
vidconsole-uclass.c video: Add 30bpp support 2021-10-09 18:43:51 +02:00
video-uclass.c dm: define LOG_CATEGORY for all uclass 2021-07-06 10:38:03 -06:00
video_bmp.c video: Fix line padding calculation for 16 and 24 BPP bitmaps 2021-04-10 17:09:59 +02:00
video_osd-uclass.c dm: define LOG_CATEGORY for all uclass 2021-07-06 10:38:03 -06:00
videomodes.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
videomodes.h videomodes: add helper function to convert from ctfb to display_timing 2020-04-18 12:54:43 +02:00