From 4a6db7b19c3ceb526eeb934fa0eb619bfef45828 Mon Sep 17 00:00:00 2001 From: Vadim Bendebury Date: Wed, 15 Oct 2014 18:04:27 -0700 Subject: [PATCH] console: add configs to support Marvell bg4cd uart This adds a new option to the set of console UART choices and uses the common console wrapper for bg4cd based devices. BRANCH=none BUG=chrome-os-partner:32631 TEST=with the upcoming SOC specific patch applied, when building with serial console enabled the following option shows up in auto.conf: CONFIG_CONSOLE_SERIAL_BG4CD=y Change-Id: Id2aa2ed4827740aaf04514233bd57cd8df0fea55 Signed-off-by: Vadim Bendebury Reviewed-on: https://chromium-review.googlesource.com/223596 Reviewed-by: Aaron Durbin --- src/console/Kconfig | 9 +++++++++ src/console/Makefile.inc | 1 + 2 files changed, 10 insertions(+) diff --git a/src/console/Kconfig b/src/console/Kconfig index 656058d17d..03a79a0e6b 100644 --- a/src/console/Kconfig +++ b/src/console/Kconfig @@ -36,6 +36,15 @@ config CONSOLE_SERIAL_IPQ806X help Send coreboot debug output to an SGMI based uart (ipq806x) +config CONSOLE_SERIAL_BG4CD + bool "Serial port console output for Marvell BG4CD" + depends on CONSOLE_SERIAL + depends on SOC_MARVELL_BG4CD + default y + help + Enable use of Marvell BG4CD based uart for coreboot serial console + output. + config CONSOLE_SERIAL8250MEM bool "Serial port console output (memory mapped, 8250-compatible)" depends on CONSOLE_SERIAL diff --git a/src/console/Makefile.inc b/src/console/Makefile.inc index 85376b7170..7db26637a8 100644 --- a/src/console/Makefile.inc +++ b/src/console/Makefile.inc @@ -28,6 +28,7 @@ ramstage-$(CONFIG_USBDEBUG) += usbdebug_console.c ramstage-$(CONFIG_CONSOLE_NE2K) += ne2k_console.c ramstage-$(CONFIG_CONSOLE_CBMEM) += cbmem_console.c ramstage-$(CONFIG_CONSOLE_SERIAL_IPQ806X) += uart_wrapper.c +ramstage-$(CONFIG_CONSOLE_SERIAL_BG4CD) += uart_wrapper.c secmon-$(CONFIG_ARCH_USE_SECURE_MONITOR) += vtxprintf.c secmon-$(CONFIG_ARCH_USE_SECURE_MONITOR) += console.c