aboutsummaryrefslogtreecommitdiff
path: root/src/device/Kconfig
diff options
context:
space:
mode:
authorNico Huber <nico.h@gmx.de>2017-05-20 01:07:48 +0200
committerMartin Roth <martinroth@google.com>2017-06-02 18:37:45 +0200
commit7971582ec49574e42c5fa5d75e6bdba8a0b9b1f8 (patch)
tree53ab8f8d49a541e22f8252967faa2c6bb4a81845 /src/device/Kconfig
parentce642f08b953dd752c5edeb1899b193c202d22fd (diff)
Kconfig: Introduce HAVE_(VBE_)LINEAR_FRAMEBUFFER
Like HAVE_VGA_TEXT_FRAMEBUFFER, these are selected by graphics drivers that support a linear framebuffer. Some related settings moved to the drivers (i.e. for rockchip/rk3288 and nvidia/tegra124) since they are hardcoded. Change-Id: Iff6dac5a5f61af49456bc6312e7a376def02ab00 Signed-off-by: Nico Huber <nico.h@gmx.de> Reviewed-on: https://review.coreboot.org/19800 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/device/Kconfig')
-rw-r--r--src/device/Kconfig21
1 files changed, 18 insertions, 3 deletions
diff --git a/src/device/Kconfig b/src/device/Kconfig
index 50d75c7b14..cf70a980c5 100644
--- a/src/device/Kconfig
+++ b/src/device/Kconfig
@@ -23,7 +23,20 @@ config MAINBOARD_HAS_NATIVE_VGA_INIT
config HAVE_VGA_TEXT_FRAMEBUFFER
bool
- default n
+ help
+ Selected by graphics drivers that support legacy VGA text mode.
+
+config HAVE_VBE_LINEAR_FRAMEBUFFER
+ bool
+ help
+ Selected by graphics drivers that can set up a VBE linear-framebuffer
+ mode.
+
+config HAVE_LINEAR_FRAMEBUFFER
+ bool
+ help
+ Selected by graphics drivers that can set up a generic linear
+ framebuffer.
config MAINBOARD_DO_NATIVE_VGA_INIT
bool "Use native graphics initialization"
@@ -48,6 +61,7 @@ config MAINBOARD_USE_LIBGFXINIT
depends on MAINBOARD_DO_NATIVE_VGA_INIT
depends on MAINBOARD_HAS_LIBGFXINIT
select HAVE_VGA_TEXT_FRAMEBUFFER
+ select HAVE_LINEAR_FRAMEBUFFER
select RAMSTAGE_LIBHWBASE
select VGA if !FRAMEBUFFER_KEEP_VESA_MODE
select NO_EDID_FILL_FB
@@ -383,12 +397,13 @@ config SOFTWARE_I2C
endmenu
menu "Display"
- depends on PCI_OPTION_ROM_RUN_YABEL || PCI_OPTION_ROM_RUN_REALMODE || MAINBOARD_DO_NATIVE_VGA_INIT
+ depends on HAVE_VGA_TEXT_FRAMEBUFFER || HAVE_LINEAR_FRAMEBUFFER
config FRAMEBUFFER_SET_VESA_MODE
prompt "Set framebuffer graphics resolution"
bool
depends on PCI_OPTION_ROM_RUN_YABEL || PCI_OPTION_ROM_RUN_REALMODE
+ select HAVE_VBE_LINEAR_FRAMEBUFFER
help
Set VESA/native framebuffer mode (needed for bootsplash and graphical framebuffer console)
@@ -527,7 +542,7 @@ config FRAMEBUFFER_VESA_MODE
config FRAMEBUFFER_KEEP_VESA_MODE
prompt "Keep VESA framebuffer"
bool
- depends on HAVE_VGA_TEXT_FRAMEBUFFER
+ depends on HAVE_VGA_TEXT_FRAMEBUFFER && (HAVE_VBE_LINEAR_FRAMEBUFFER || HAVE_LINEAR_FRAMEBUFFER)
help
This option keeps the framebuffer mode set after coreboot finishes
execution. If this option is enabled, coreboot will pass a