aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/pc80
diff options
context:
space:
mode:
authorJeremy Compostella <jeremy.compostella@intel.com>2022-12-01 16:31:55 -0700
committerSubrata Banik <subratabanik@google.com>2023-01-07 17:46:54 +0000
commit84c3b5e0515deb4e4557d128a69058a8acfdb827 (patch)
tree1e69afd9c77f7813de9562fcbfe65bcad5e194ea /src/drivers/pc80
parent114f87bf2e697554301b5288dc1478fc851eabc3 (diff)
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 <jeremy.compostella@intel.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/70278 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Tarun Tuli <taruntuli@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/drivers/pc80')
-rw-r--r--src/drivers/pc80/vga/Kconfig5
-rw-r--r--src/drivers/pc80/vga/Makefile.inc5
2 files changed, 10 insertions, 0 deletions
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