payloads/external/SeaBIOS: add support for sercon port

Change-Id: Id2d2ed0fa97f2cef5818a8508bb8ee3ddba73647
Signed-off-by: Piotr Król <piotr.krol@3mdeb.com>
Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
Reviewed-on: https://review.coreboot.org/26060
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Rudolph <siro@das-labor.org>
This commit is contained in:
Piotr Król 2018-05-04 15:29:56 +02:00 committed by Martin Roth
parent 8aee7f7fad
commit bb95731dad
2 changed files with 22 additions and 0 deletions

View File

@ -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"

View File

@ -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"