From 84c3b5e0515deb4e4557d128a69058a8acfdb827 Mon Sep 17 00:00:00 2001 From: Jeremy Compostella Date: Thu, 1 Dec 2022 16:31:55 -0700 Subject: drivers/pc80/vga: Add legacy VGA romstage support This is support for adding legacy VGA support into romstage. Support for this is being provided by libgfxinit. The current use case allows us to initialize the display before memory init (prior to physical memory init) to inform the user when lengthy memory training is needed. BUG=b:252792591 BRANCH=firmware-brya-14505.B TEST=VGA code compiles for romstage Change-Id: I81309871e8db71657b2a9816708141f121d767d3 Signed-off-by: Jeremy Compostella Reviewed-on: https://review.coreboot.org/c/coreboot/+/70278 Reviewed-by: Angel Pons Reviewed-by: Tarun Tuli Tested-by: build bot (Jenkins) --- src/drivers/pc80/vga/Kconfig | 5 +++++ src/drivers/pc80/vga/Makefile.inc | 5 +++++ 2 files changed, 10 insertions(+) (limited to 'src/drivers') diff --git a/src/drivers/pc80/vga/Kconfig b/src/drivers/pc80/vga/Kconfig index 7da71afcfb..0df65bc349 100644 --- a/src/drivers/pc80/vga/Kconfig +++ b/src/drivers/pc80/vga/Kconfig @@ -2,3 +2,8 @@ config VGA bool help Include legacy VGA support code. + +config ROMSTAGE_VGA + bool + help + Include legacy VGA support code in romstage. diff --git a/src/drivers/pc80/vga/Makefile.inc b/src/drivers/pc80/vga/Makefile.inc index 3e31de1ddf..f7ec2b5025 100644 --- a/src/drivers/pc80/vga/Makefile.inc +++ b/src/drivers/pc80/vga/Makefile.inc @@ -1,5 +1,10 @@ ifeq ($(CONFIG_ARCH_X86),y) +romstage-$(CONFIG_ROMSTAGE_VGA) += vga_io.c +romstage-$(CONFIG_ROMSTAGE_VGA) += vga_palette.c +romstage-$(CONFIG_ROMSTAGE_VGA) += vga_font_8x16.c +romstage-$(CONFIG_ROMSTAGE_VGA) += vga.c + ramstage-$(CONFIG_VGA) += vga_io.c ramstage-$(CONFIG_VGA) += vga_palette.c ramstage-$(CONFIG_VGA) += vga_font_8x16.c -- cgit v1.2.3