device/Kconfig: Introduce MAINBOARD_FORCE_NATIVE_VGA_INIT

MAINBOARD_FORCE_NATIVE_VGA_INIT is to be selected instead of the user
option MAINBOARD_DO_NATIVE_VGA_INIT. The distinction is necessary to
use the latter in a choice.

Change-Id: I689aa5cadea9e1091180fd38b1dc093c6938d69c
Signed-off-by: Nico Huber <nico.huber@secunet.com>
Reviewed-on: https://review.coreboot.org/19813
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin Roth <martinroth@google.com>
This commit is contained in:
Nico Huber
2017-05-22 13:22:09 +02:00
committed by Nico Huber
parent eb881d46e2
commit 26ce9af9a0
14 changed files with 27 additions and 18 deletions

View File

@@ -16,11 +16,6 @@
menu "Devices"
# Only set this in the mainboard
config MAINBOARD_HAS_NATIVE_VGA_INIT
bool
default n
config HAVE_VGA_TEXT_FRAMEBUFFER
bool
help
@@ -38,6 +33,20 @@ config HAVE_LINEAR_FRAMEBUFFER
Selected by graphics drivers that can set up a generic linear
framebuffer.
config MAINBOARD_HAS_NATIVE_VGA_INIT
def_bool n
help
Selected by mainboards / drivers that provide native graphics
init within coreboot.
config MAINBOARD_FORCE_NATIVE_VGA_INIT
def_bool n
depends on MAINBOARD_HAS_NATIVE_VGA_INIT || MAINBOARD_HAS_LIBGFXINIT
select MAINBOARD_DO_NATIVE_VGA_INIT
help
Selected by mainboards / chipsets whose graphics driver can't or
shouldn't be disabled.
config MAINBOARD_DO_NATIVE_VGA_INIT
bool "Use native graphics initialization"
depends on MAINBOARD_HAS_NATIVE_VGA_INIT