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" menu "Devices"
# Only set this in the mainboard
config MAINBOARD_HAS_NATIVE_VGA_INIT
bool
default n
config HAVE_VGA_TEXT_FRAMEBUFFER config HAVE_VGA_TEXT_FRAMEBUFFER
bool bool
help help
@ -38,6 +33,20 @@ config HAVE_LINEAR_FRAMEBUFFER
Selected by graphics drivers that can set up a generic linear Selected by graphics drivers that can set up a generic linear
framebuffer. 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 config MAINBOARD_DO_NATIVE_VGA_INIT
bool "Use native graphics initialization" bool "Use native graphics initialization"
depends on MAINBOARD_HAS_NATIVE_VGA_INIT depends on MAINBOARD_HAS_NATIVE_VGA_INIT

View File

@ -32,7 +32,7 @@ config BOARD_SPECIFIC_OPTIONS # dummy
select HAVE_ACPI_RESUME select HAVE_ACPI_RESUME
select DRIVERS_I2C_W83795 select DRIVERS_I2C_W83795
select DRIVERS_ASPEED_AST2050 select DRIVERS_ASPEED_AST2050
select MAINBOARD_DO_NATIVE_VGA_INIT select MAINBOARD_FORCE_NATIVE_VGA_INIT
select MAINBOARD_HAS_NATIVE_VGA_INIT select MAINBOARD_HAS_NATIVE_VGA_INIT
config MAINBOARD_DIR config MAINBOARD_DIR

View File

@ -33,7 +33,7 @@ config BOARD_SPECIFIC_OPTIONS # dummy
select HAVE_ACPI_RESUME select HAVE_ACPI_RESUME
select DRIVERS_I2C_W83795 select DRIVERS_I2C_W83795
select DRIVERS_ASPEED_AST2050 select DRIVERS_ASPEED_AST2050
select MAINBOARD_DO_NATIVE_VGA_INIT select MAINBOARD_FORCE_NATIVE_VGA_INIT
select MAINBOARD_HAS_NATIVE_VGA_INIT select MAINBOARD_HAS_NATIVE_VGA_INIT
config MAINBOARD_DIR config MAINBOARD_DIR

View File

@ -28,7 +28,7 @@ config BOARD_SPECIFIC_OPTIONS # dummy
select BOOTBLOCK_CONSOLE select BOOTBLOCK_CONSOLE
select CONSOLE_SERIAL select CONSOLE_SERIAL
select MAINBOARD_HAS_NATIVE_VGA_INIT select MAINBOARD_HAS_NATIVE_VGA_INIT
select MAINBOARD_DO_NATIVE_VGA_INIT select MAINBOARD_FORCE_NATIVE_VGA_INIT
select HAVE_LINEAR_FRAMEBUFFER select HAVE_LINEAR_FRAMEBUFFER
select ARCH_BOOTBLOCK_ARMV7 select ARCH_BOOTBLOCK_ARMV7
select ARCH_ROMSTAGE_ARMV7 select ARCH_ROMSTAGE_ARMV7

View File

@ -11,7 +11,7 @@ config BOARD_SPECIFIC_OPTIONS # dummy
select HAVE_ACPI_TABLES select HAVE_ACPI_TABLES
select BOARD_ROMSIZE_KB_256 select BOARD_ROMSIZE_KB_256
select MAINBOARD_HAS_NATIVE_VGA_INIT select MAINBOARD_HAS_NATIVE_VGA_INIT
select MAINBOARD_DO_NATIVE_VGA_INIT select MAINBOARD_FORCE_NATIVE_VGA_INIT
config MAINBOARD_DIR config MAINBOARD_DIR
string string

View File

@ -10,7 +10,7 @@ config BOARD_SPECIFIC_OPTIONS # dummy
select HAVE_ACPI_TABLES select HAVE_ACPI_TABLES
select BOARD_ROMSIZE_KB_2048 select BOARD_ROMSIZE_KB_2048
select MAINBOARD_HAS_NATIVE_VGA_INIT select MAINBOARD_HAS_NATIVE_VGA_INIT
select MAINBOARD_DO_NATIVE_VGA_INIT select MAINBOARD_FORCE_NATIVE_VGA_INIT
config MAINBOARD_DIR config MAINBOARD_DIR
string string

View File

@ -26,7 +26,7 @@ config BOARD_SPECIFIC_OPTIONS # dummy
select MAINBOARD_HAS_CHROMEOS select MAINBOARD_HAS_CHROMEOS
select DRIVER_TI_TPS65090 select DRIVER_TI_TPS65090
select MAINBOARD_HAS_NATIVE_VGA_INIT select MAINBOARD_HAS_NATIVE_VGA_INIT
select MAINBOARD_DO_NATIVE_VGA_INIT select MAINBOARD_FORCE_NATIVE_VGA_INIT
select HAVE_LINEAR_FRAMEBUFFER select HAVE_LINEAR_FRAMEBUFFER
config VBOOT config VBOOT

View File

@ -34,7 +34,7 @@ config BOARD_SPECIFIC_OPTIONS
select EC_GOOGLE_CHROMEEC_RTC select EC_GOOGLE_CHROMEEC_RTC
select EC_GOOGLE_CHROMEEC_SPI select EC_GOOGLE_CHROMEEC_SPI
select HAVE_HARD_RESET select HAVE_HARD_RESET
select MAINBOARD_DO_NATIVE_VGA_INIT select MAINBOARD_FORCE_NATIVE_VGA_INIT
select MAINBOARD_HAS_CHROMEOS select MAINBOARD_HAS_CHROMEOS
select MAINBOARD_HAS_NATIVE_VGA_INIT select MAINBOARD_HAS_NATIVE_VGA_INIT
select RAM_CODE_SUPPORT select RAM_CODE_SUPPORT

View File

@ -34,7 +34,7 @@ config BOARD_SPECIFIC_OPTIONS
select EC_GOOGLE_CHROMEEC select EC_GOOGLE_CHROMEEC
select EC_GOOGLE_CHROMEEC_SPI select EC_GOOGLE_CHROMEEC_SPI
select MAINBOARD_HAS_NATIVE_VGA_INIT select MAINBOARD_HAS_NATIVE_VGA_INIT
select MAINBOARD_DO_NATIVE_VGA_INIT select MAINBOARD_FORCE_NATIVE_VGA_INIT
select HAVE_LINEAR_FRAMEBUFFER select HAVE_LINEAR_FRAMEBUFFER
select MAINBOARD_HAS_CHROMEOS select MAINBOARD_HAS_CHROMEOS
select RAM_CODE_SUPPORT select RAM_CODE_SUPPORT

View File

@ -22,7 +22,7 @@ config BOARD_SPECIFIC_OPTIONS # dummy
select EC_GOOGLE_CHROMEEC_SPI select EC_GOOGLE_CHROMEEC_SPI
select BOARD_ROMSIZE_KB_4096 select BOARD_ROMSIZE_KB_4096
select MAINBOARD_HAS_NATIVE_VGA_INIT select MAINBOARD_HAS_NATIVE_VGA_INIT
select MAINBOARD_DO_NATIVE_VGA_INIT select MAINBOARD_FORCE_NATIVE_VGA_INIT
select HAVE_LINEAR_FRAMEBUFFER select HAVE_LINEAR_FRAMEBUFFER
select DRIVER_PARADE_PS8625 select DRIVER_PARADE_PS8625

View File

@ -22,7 +22,7 @@ if BOARD_GOOGLE_BASEBOARD_SLIPPY
config VBOOT config VBOOT
select EC_GOOGLE_CHROMEEC_SWITCHES select EC_GOOGLE_CHROMEEC_SWITCHES
select VBOOT_LID_SWITCH select VBOOT_LID_SWITCH
select MAINBOARD_DO_NATIVE_VGA_INIT select MAINBOARD_FORCE_NATIVE_VGA_INIT
select VBOOT_VBNV_CMOS select VBOOT_VBNV_CMOS
config MAINBOARD_DIR config MAINBOARD_DIR

View File

@ -24,7 +24,7 @@ config BOARD_SPECIFIC_OPTIONS # dummy
select EC_GOOGLE_CHROMEEC_I2C select EC_GOOGLE_CHROMEEC_I2C
select EC_GOOGLE_CHROMEEC_I2C_PROTO3 select EC_GOOGLE_CHROMEEC_I2C_PROTO3
select MAINBOARD_HAS_NATIVE_VGA_INIT select MAINBOARD_HAS_NATIVE_VGA_INIT
select MAINBOARD_DO_NATIVE_VGA_INIT select MAINBOARD_FORCE_NATIVE_VGA_INIT
select SPI_FLASH select SPI_FLASH
select SPI_FLASH_WINBOND select SPI_FLASH_WINBOND
select SOC_NVIDIA_TEGRA210 select SOC_NVIDIA_TEGRA210

View File

@ -14,7 +14,7 @@ config SOC_NVIDIA_TEGRA124
select ARM_LPAE select ARM_LPAE
select GENERIC_GPIO_LIB select GENERIC_GPIO_LIB
select MAINBOARD_HAS_NATIVE_VGA_INIT select MAINBOARD_HAS_NATIVE_VGA_INIT
select MAINBOARD_DO_NATIVE_VGA_INIT select MAINBOARD_FORCE_NATIVE_VGA_INIT
select HAVE_LINEAR_FRAMEBUFFER select HAVE_LINEAR_FRAMEBUFFER
if SOC_NVIDIA_TEGRA124 if SOC_NVIDIA_TEGRA124

View File

@ -29,7 +29,7 @@ config SOC_ROCKCHIP_RK3288
select RTC select RTC
select UART_OVERRIDE_REFCLK select UART_OVERRIDE_REFCLK
select MAINBOARD_HAS_NATIVE_VGA_INIT select MAINBOARD_HAS_NATIVE_VGA_INIT
select MAINBOARD_DO_NATIVE_VGA_INIT select MAINBOARD_FORCE_NATIVE_VGA_INIT
select HAVE_LINEAR_FRAMEBUFFER select HAVE_LINEAR_FRAMEBUFFER
if SOC_ROCKCHIP_RK3288 if SOC_ROCKCHIP_RK3288