Matt DeVillier has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/37918 )
Change subject: drivers/aspeed/ast2050: make VGA init conditional ......................................................................
drivers/aspeed/ast2050: make VGA init conditional
Inclusion of the driver doesn't imply MAINBOARD_DO_NATIVE_VGA_INIT has been selected, so only perform VGA init if it is selected. This allows different display init methods to be used depending on board .config, without removing the driver from the board Kconfig.
Signed-off-by: Matt DeVillier matt.devillier@puri.sm Change-Id: I938e2db48e8b3c9857cac93e11482e6dce589fd3 --- M src/drivers/aspeed/ast2050/ast2050.c 1 file changed, 4 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/18/37918/1
diff --git a/src/drivers/aspeed/ast2050/ast2050.c b/src/drivers/aspeed/ast2050/ast2050.c index 8bc7307..8a2605b 100644 --- a/src/drivers/aspeed/ast2050/ast2050.c +++ b/src/drivers/aspeed/ast2050/ast2050.c @@ -47,6 +47,10 @@ outb(0xa6, 0x3d4); outb(0x2f, 0x3d5); outb(0xa7, 0x3d4); outb(0x3f, 0x3d5);
+ if (!CONFIG(MAINBOARD_DO_NATIVE_VGA_INIT)) { + return; + } + if (CONFIG(VGA_TEXT_FRAMEBUFFER)) { /* Initialize standard VGA text mode */ vga_io_init();