aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.inc4
-rw-r--r--payloads/external/SeaBIOS/Kconfig18
2 files changed, 22 insertions, 0 deletions
diff --git a/Makefile.inc b/Makefile.inc
index aa93222920..7ce236031e 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -1023,6 +1023,10 @@ ifneq ($(CONFIG_UPDATE_IMAGE),y)
endif
endif
endif
+ifeq ($(CONFIG_SEABIOS_ADD_SERCON_PORT_FILE),y)
+ @printf " SeaBIOS Add sercon-port file\n"
+ $(CBFSTOOL) $@.tmp add-int -i $(CONFIG_SEABIOS_SERCON_PORT_ADDR) -n etc/sercon-port
+endif
ifeq ($(CONFIG_CPU_INTEL_FIRMWARE_INTERFACE_TABLE),y)
ifeq ($(CONFIG_CPU_MICROCODE_CBFS_EXTERNAL_HEADER),y)
@printf " UPDATE-FIT\n"
diff --git a/payloads/external/SeaBIOS/Kconfig b/payloads/external/SeaBIOS/Kconfig
index 52dc738a8b..fb9f32b620 100644
--- a/payloads/external/SeaBIOS/Kconfig
+++ b/payloads/external/SeaBIOS/Kconfig
@@ -86,6 +86,24 @@ config SEABIOS_BOOTORDER_FILE
If used, a typical value would be:
$(top)/src/mainboard/$(MAINBOARDDIR)/bootorder
+config SEABIOS_ADD_SERCON_PORT_FILE
+ prompt "Add SeaBIOS sercon-port file to CBFS"
+ default n
+ bool
+ help
+ Select this option to enable SeaBIOS' VGA adapter emulation
+ on serial port.
+
+config SEABIOS_SERCON_PORT_ADDR
+ hex "SeaBIOS sercon-port base address"
+ depends on SEABIOS_ADD_SERCON_PORT_FILE
+ default TTYS0_BASE
+ help
+ Set this field to the IO address of a serial port for SeaBIOS' VGA
+ adapter emulation.
+
+ By default primary console UART defined by TTYS0_BASE is used.
+
config PAYLOAD_FILE
default "payloads/external/SeaBIOS/seabios/out/bios.bin.elf"