diff options
author | Stefan Reinauer <reinauer@chromium.org> | 2012-11-13 12:49:59 -0800 |
---|---|---|
committer | Ronald G. Minnich <rminnich@gmail.com> | 2012-11-14 05:56:05 +0100 |
commit | c5334635caca830600525f9c914465c0c17ec4fc (patch) | |
tree | 46252b3f14e93382938287d71caa1c81b9c396bc /src/northbridge/via/cx700/vga.c | |
parent | 13c2c025a46291cc6f06cb55dde9a4d54a4b37fe (diff) |
VIA chipsets: fix compilation without real mode code
The VIA chipsets CX700, VT8623 and VX800 required to be
configured with real mode option rom code enabled. This
patch fixes the issue and drops some unneeded header files.
Change-Id: I0d8a3f8f99c2eacec7666f08f85b99f09c06af84
Signed-off-by: Stefan Reinauer <reinauer@google.com>
Reviewed-on: http://review.coreboot.org/1833
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Diffstat (limited to 'src/northbridge/via/cx700/vga.c')
-rw-r--r-- | src/northbridge/via/cx700/vga.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/northbridge/via/cx700/vga.c b/src/northbridge/via/cx700/vga.c index 821edc4992..c6bf72ea8f 100644 --- a/src/northbridge/via/cx700/vga.c +++ b/src/northbridge/via/cx700/vga.c @@ -31,7 +31,9 @@ #include <cpu/x86/msr.h> #include <arch/interrupt.h> #include "registers.h" -#include "northbridge.h" +#if CONFIG_PCI_OPTION_ROM_RUN_REALMODE +#include <devices/oprom/x86.h> +#endif /* PCI Domain 1 Device 0 Function 0 */ @@ -145,6 +147,7 @@ static void write_protect_vgabios(void) static void vga_enable_console(void) { +#if CONFIG_PCI_OPTION_ROM_RUN_REALMODE /* Call VGA BIOS int10 function 0x4f14 to enable main console * Epia-M does not always autosense the main console so forcing * it on is good. @@ -152,6 +155,7 @@ static void vga_enable_console(void) /* int#, EAX, EBX, ECX, EDX, ESI, EDI */ realmode_interrupt(0x10, 0x4f14, 0x8003, 0x0001, 0x0000, 0x0000, 0x0000); +#endif } static void vga_init(device_t dev) |