console: Revise serial console configuration names.
The console drivers (especially serial drivers) in Kconfig were named in
different styles. This change will rename configuration names to a better naming
style.
- EARLY_CONSOLE:
Enable output in pre-ram stage. (Renamed from EARLY_SERIAL_CONSOLE
because it also supports non-serial)
- CONSOLE_SERIAL:
Enable serial output console, from one of the serial drivers. (Renamed
from SERIAL_CONSOLE because other non-serial drivers are named as
CONSOLE_XXX like CONSOLE_CBMEM)
- CONSOLE_SERIAL_UART:
Device-specific UART driver. (Renamed from
CONSOLE_SERIAL_NONSTANDARD_MEM because it may be not memory-mapped)
- HAVE_UART_SPECIAL:
A dependency for CONSOLE_SERIAL_UART.
Verified to boot on x86/qemu and armv7/snow, and still seeing console
messages in romstage for both platforms.
Change-Id: I4bea3c8fea05bbb7d78df6bc22f82414ac66f973
Signed-off-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-on: http://review.coreboot.org/2299
Tested-by: build bot (Jenkins)
Reviewed-by: David Hendricks <dhendrix@chromium.org>
This commit is contained in:
parent
1c3187932d
commit
ad173ea70b
10 changed files with 41 additions and 34 deletions
|
|
@ -24,7 +24,6 @@ config BOARD_SPECIFIC_OPTIONS # dummy
|
|||
select ARCH_ARMV7
|
||||
select CPU_SAMSUNG_EXYNOS5
|
||||
select HAVE_UART_MEMORY_MAPPED
|
||||
select CONSOLE_SERIAL_NONSTANDARD_MEM # enable serial debugging
|
||||
# select EC_GOOGLE_CHROMEEC
|
||||
select BOARD_ROMSIZE_KB_4096
|
||||
select DRIVER_MAXIM_MAX77686
|
||||
|
|
@ -71,7 +70,7 @@ config NR_DRAM_BANKS
|
|||
choice
|
||||
prompt "Serial Console UART"
|
||||
default CONSOLE_SERIAL_UART3
|
||||
depends on CONSOLE_SERIAL_NONSTANDARD_MEM
|
||||
depends on CONSOLE_SERIAL_UART
|
||||
|
||||
config CONSOLE_SERIAL_UART0
|
||||
bool "UART0"
|
||||
|
|
@ -97,7 +96,7 @@ endchoice
|
|||
|
||||
config CONSOLE_SERIAL_UART_ADDRESS
|
||||
hex
|
||||
depends on CONSOLE_SERIAL_NONSTANDARD_MEM
|
||||
depends on CONSOLE_SERIAL_UART
|
||||
default 0x12c00000 if CONSOLE_SERIAL_UART0
|
||||
default 0x12c10000 if CONSOLE_SERIAL_UART1
|
||||
default 0x12c20000 if CONSOLE_SERIAL_UART2
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#if CONFIG_EARLY_SERIAL_CONSOLE
|
||||
#if CONFIG_EARLY_CONSOLE
|
||||
#include <types.h>
|
||||
#include <arch/io.h>
|
||||
#include <cbfs.h>
|
||||
|
|
@ -40,7 +40,7 @@ void bootblock_mainboard_init(void)
|
|||
arm_ratios = get_arm_clk_ratios();
|
||||
system_clock_init(mem, arm_ratios);
|
||||
|
||||
#if CONFIG_EARLY_SERIAL_CONSOLE
|
||||
#if CONFIG_EARLY_CONSOLE
|
||||
exynos_pinmux_config(PERIPH_ID_UART3, PINMUX_FLAG_NONE);
|
||||
uart_init();
|
||||
printk(BIOS_INFO, "\n\n\n%s: UART initialized\n", __func__);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue