console: Drop EARLY_CONSOLE option
We have means to easily disable a specific console in romstage if necessary, so this global option makes little sense. The option was initially introduced as a work-around for build issues around CACHE_AS_RAM, ROMCC and ARCH_ARMV7 dependencies for UARTs. Change-Id: I797bdd11a48ddd813d3ee7ccef9a0c050f16f669 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: http://review.coreboot.org/5607 Tested-by: build bot (Jenkins) Reviewed-by: David Hendricks <dhendrix@chromium.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
This commit is contained in:
@ -7,17 +7,9 @@ config BOOTBLOCK_CONSOLE
|
|||||||
help
|
help
|
||||||
Use console during the bootblock if supported
|
Use console during the bootblock if supported
|
||||||
|
|
||||||
config EARLY_CONSOLE
|
|
||||||
bool "Enable early (pre-RAM) console output."
|
|
||||||
default y if CACHE_AS_RAM
|
|
||||||
default n
|
|
||||||
help
|
|
||||||
Use console during early (pre-RAM) boot stages
|
|
||||||
|
|
||||||
config SQUELCH_EARLY_SMP
|
config SQUELCH_EARLY_SMP
|
||||||
bool "Squelch AP CPUs from early console."
|
bool "Squelch AP CPUs from early console."
|
||||||
default y
|
default y
|
||||||
depends on EARLY_CONSOLE
|
|
||||||
help
|
help
|
||||||
When selected only the BSP CPU will output to early console.
|
When selected only the BSP CPU will output to early console.
|
||||||
|
|
||||||
|
@ -6,8 +6,8 @@ ramstage-y += die.c
|
|||||||
smm-$(CONFIG_DEBUG_SMI) += init.c console.c vtxprintf.c printk.c
|
smm-$(CONFIG_DEBUG_SMI) += init.c console.c vtxprintf.c printk.c
|
||||||
smm-$(CONFIG_SMM_TSEG) += die.c
|
smm-$(CONFIG_SMM_TSEG) += die.c
|
||||||
|
|
||||||
romstage-$(CONFIG_EARLY_CONSOLE) += vtxprintf.c printk.c
|
romstage-y += vtxprintf.c printk.c
|
||||||
romstage-$(CONFIG_EARLY_CONSOLE) += init.c console.c
|
romstage-y += init.c console.c
|
||||||
romstage-y += post.c
|
romstage-y += post.c
|
||||||
romstage-y += die.c
|
romstage-y += die.c
|
||||||
|
|
||||||
|
@ -9,7 +9,6 @@ config CPU_SPECIFIC_OPTIONS
|
|||||||
select HAVE_MONOTONIC_TIMER
|
select HAVE_MONOTONIC_TIMER
|
||||||
select HAVE_UART_SPECIAL
|
select HAVE_UART_SPECIAL
|
||||||
select BOOTBLOCK_CONSOLE
|
select BOOTBLOCK_CONSOLE
|
||||||
select EARLY_CONSOLE
|
|
||||||
|
|
||||||
config BOOTBLOCK_CPU_INIT
|
config BOOTBLOCK_CPU_INIT
|
||||||
string
|
string
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
config CPU_ARMLTD_CORTEX_A9
|
config CPU_ARMLTD_CORTEX_A9
|
||||||
depends on ARCH_ARMV7
|
depends on ARCH_ARMV7
|
||||||
bool
|
bool
|
||||||
select EARLY_CONSOLE
|
|
||||||
default n
|
default n
|
||||||
|
|
||||||
if CPU_ARMLTD_CORTEX_A9
|
if CPU_ARMLTD_CORTEX_A9
|
||||||
|
@ -2,7 +2,6 @@ config CPU_SAMSUNG_EXYNOS5250
|
|||||||
depends on ARCH_ARMV7
|
depends on ARCH_ARMV7
|
||||||
select HAVE_MONOTONIC_TIMER
|
select HAVE_MONOTONIC_TIMER
|
||||||
select HAVE_UART_SPECIAL
|
select HAVE_UART_SPECIAL
|
||||||
select EARLY_CONSOLE
|
|
||||||
select DYNAMIC_CBMEM
|
select DYNAMIC_CBMEM
|
||||||
bool
|
bool
|
||||||
default n
|
default n
|
||||||
|
@ -26,7 +26,7 @@ romstage-y += power.c
|
|||||||
romstage-y += mct.c
|
romstage-y += mct.c
|
||||||
romstage-y += monotonic_timer.c
|
romstage-y += monotonic_timer.c
|
||||||
ifeq ($(CONFIG_DRIVERS_UART),y)
|
ifeq ($(CONFIG_DRIVERS_UART),y)
|
||||||
romstage-$(CONFIG_EARLY_CONSOLE) += uart.c
|
romstage-y += uart.c
|
||||||
endif
|
endif
|
||||||
romstage-y += wakeup.c
|
romstage-y += wakeup.c
|
||||||
romstage-y += gpio.c
|
romstage-y += gpio.c
|
||||||
|
@ -2,7 +2,6 @@ config CPU_SAMSUNG_EXYNOS5420
|
|||||||
depends on ARCH_ARMV7
|
depends on ARCH_ARMV7
|
||||||
select HAVE_MONOTONIC_TIMER
|
select HAVE_MONOTONIC_TIMER
|
||||||
select HAVE_UART_SPECIAL
|
select HAVE_UART_SPECIAL
|
||||||
select EARLY_CONSOLE
|
|
||||||
select DYNAMIC_CBMEM
|
select DYNAMIC_CBMEM
|
||||||
bool
|
bool
|
||||||
default n
|
default n
|
||||||
|
@ -26,7 +26,7 @@ romstage-y += power.c
|
|||||||
romstage-y += mct.c
|
romstage-y += mct.c
|
||||||
romstage-y += monotonic_timer.c
|
romstage-y += monotonic_timer.c
|
||||||
ifeq ($(CONFIG_DRIVERS_UART),y)
|
ifeq ($(CONFIG_DRIVERS_UART),y)
|
||||||
romstage-$(CONFIG_EARLY_CONSOLE) += uart.c
|
romstage-y += uart.c
|
||||||
endif
|
endif
|
||||||
romstage-y += wakeup.c
|
romstage-y += wakeup.c
|
||||||
romstage-y += gpio.c
|
romstage-y += gpio.c
|
||||||
|
@ -3,7 +3,6 @@ config CPU_TI_AM335X
|
|||||||
select HAVE_MONOTONIC_TIMER
|
select HAVE_MONOTONIC_TIMER
|
||||||
select HAVE_UART_SPECIAL
|
select HAVE_UART_SPECIAL
|
||||||
select BOOTBLOCK_CONSOLE
|
select BOOTBLOCK_CONSOLE
|
||||||
select EARLY_CONSOLE
|
|
||||||
bool
|
bool
|
||||||
default n
|
default n
|
||||||
|
|
||||||
|
@ -25,6 +25,6 @@ endif
|
|||||||
|
|
||||||
ifeq ($(CONFIG_DRIVERS_UART_PL011),y)
|
ifeq ($(CONFIG_DRIVERS_UART_PL011),y)
|
||||||
bootblock-$(CONFIG_BOOTBLOCK_CONSOLE) += pl011.c
|
bootblock-$(CONFIG_BOOTBLOCK_CONSOLE) += pl011.c
|
||||||
romstage-$(CONFIG_EARLY_CONSOLE) += pl011.c
|
romstage-y += pl011.c
|
||||||
ramstage-y += pl011.c
|
ramstage-y += pl011.c
|
||||||
endif
|
endif
|
||||||
|
@ -35,7 +35,7 @@ if USBDEBUG
|
|||||||
config USBDEBUG_IN_ROMSTAGE
|
config USBDEBUG_IN_ROMSTAGE
|
||||||
bool "Enable early (pre-RAM) usbdebug"
|
bool "Enable early (pre-RAM) usbdebug"
|
||||||
default y
|
default y
|
||||||
depends on EARLY_CBMEM_INIT && EARLY_CONSOLE
|
depends on EARLY_CBMEM_INIT
|
||||||
help
|
help
|
||||||
Configuring USB controllers in system-agent binary may cause
|
Configuring USB controllers in system-agent binary may cause
|
||||||
problems to usbdebug. Disabling this option delays usbdebug to
|
problems to usbdebug. Disabling this option delays usbdebug to
|
||||||
|
@ -42,8 +42,7 @@ void __attribute__ ((noreturn)) die(const char *msg);
|
|||||||
|
|
||||||
#define __CONSOLE_ENABLE__ \
|
#define __CONSOLE_ENABLE__ \
|
||||||
((ENV_BOOTBLOCK && CONFIG_BOOTBLOCK_CONSOLE) || \
|
((ENV_BOOTBLOCK && CONFIG_BOOTBLOCK_CONSOLE) || \
|
||||||
(ENV_ROMSTAGE && CONFIG_EARLY_CONSOLE) || \
|
ENV_ROMSTAGE || ENV_RAMSTAGE || (ENV_SMM && CONFIG_DEBUG_SMI))
|
||||||
ENV_RAMSTAGE || (ENV_SMM && CONFIG_DEBUG_SMI))
|
|
||||||
|
|
||||||
#if __CONSOLE_ENABLE__
|
#if __CONSOLE_ENABLE__
|
||||||
void console_init(void);
|
void console_init(void);
|
||||||
|
@ -70,7 +70,7 @@ void main(unsigned long bist)
|
|||||||
* scrub_ecc() are recovered to stack via xmm0-xmm3.
|
* scrub_ecc() are recovered to stack via xmm0-xmm3.
|
||||||
*/
|
*/
|
||||||
#if CONFIG_HW_SCRUBBER
|
#if CONFIG_HW_SCRUBBER
|
||||||
#if ! ( CONFIG_USBDEBUG && CONFIG_EARLY_CONSOLE )
|
#if !CONFIG_USBDEBUG_IN_ROMSTAGE
|
||||||
unsigned long ret_addr = (unsigned long)((unsigned long*)&bist - 1);
|
unsigned long ret_addr = (unsigned long)((unsigned long*)&bist - 1);
|
||||||
e7505_mch_scrub_ecc(ret_addr);
|
e7505_mch_scrub_ecc(ret_addr);
|
||||||
#endif
|
#endif
|
||||||
|
@ -28,7 +28,6 @@ config BOARD_SPECIFIC_OPTIONS # dummy
|
|||||||
select HAVE_PIRQ_TABLE
|
select HAVE_PIRQ_TABLE
|
||||||
select BOARD_ROMSIZE_KB_256
|
select BOARD_ROMSIZE_KB_256
|
||||||
select ROMCC
|
select ROMCC
|
||||||
select DEFAULT_EARLY_CONSOLE
|
|
||||||
select HAVE_DEBUG_RAM_SETUP
|
select HAVE_DEBUG_RAM_SETUP
|
||||||
|
|
||||||
config MAINBOARD_DIR
|
config MAINBOARD_DIR
|
||||||
|
Reference in New Issue
Block a user