console: Always allow setting "EARLY_CONSOLE" configuration.
Early console should always be allowed to be turned on / off (for generating production and debug versions), and should not be enforced by "select" Kconfig rule. A new "DEFAULT_EARLY_CONSOLE" is introduced for devices to select if they prefer early console output by default. Verified Kconfig value on qemu/x86 (default y by CACHE_AS_RAM), snow/x86 (default y by EXYNOS5 config), and intel/jarrell (default n). Change-Id: Ib1cc76d4ec115a302b95e7317224f1a40d1ab035 Signed-off-by: Hung-Te Lin <hungte@chromium.org> Reviewed-on: http://review.coreboot.org/2307 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: David Hendricks <dhendrix@chromium.org>
This commit is contained in:
committed by
David Hendricks
parent
31bb2df508
commit
f7fcb2056f
@ -1,8 +1,12 @@
|
|||||||
menu "Console"
|
menu "Console"
|
||||||
|
|
||||||
|
config DEFAULT_EARLY_CONSOLE
|
||||||
|
bool
|
||||||
|
default n
|
||||||
|
|
||||||
config EARLY_CONSOLE
|
config EARLY_CONSOLE
|
||||||
bool "Enable early (pre-RAM) console output."
|
bool "Enable early (pre-RAM) console output."
|
||||||
default n
|
default DEFAULT_EARLY_CONSOLE
|
||||||
help
|
help
|
||||||
Use console during early (pre-RAM) boot stages
|
Use console during early (pre-RAM) boot stages
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ source src/cpu/x86/Kconfig
|
|||||||
|
|
||||||
config CACHE_AS_RAM
|
config CACHE_AS_RAM
|
||||||
bool
|
bool
|
||||||
select EARLY_CONSOLE
|
select DEFAULT_EARLY_CONSOLE
|
||||||
default !ROMCC
|
default !ROMCC
|
||||||
|
|
||||||
config DCACHE_RAM_BASE
|
config DCACHE_RAM_BASE
|
||||||
|
@ -6,9 +6,7 @@ config CPU_SAMSUNG_EXYNOS5
|
|||||||
depends on ARCH_ARMV7
|
depends on ARCH_ARMV7
|
||||||
select CPU_SAMSUNG_EXYNOS
|
select CPU_SAMSUNG_EXYNOS
|
||||||
select HAVE_UART_SPECIAL
|
select HAVE_UART_SPECIAL
|
||||||
# TODO remove EARLY_CONSOLE when we can run ramstage without early UART
|
select DEFAULT_EARLY_CONSOLE
|
||||||
# init.
|
|
||||||
select EARLY_CONSOLE
|
|
||||||
bool
|
bool
|
||||||
default n
|
default n
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user