diff options
author | Bin Meng <bmeng.cn@gmail.com> | 2018-04-11 22:02:15 -0700 |
---|---|---|
committer | Bin Meng <bmeng.cn@gmail.com> | 2018-04-16 22:38:35 +0800 |
commit | ca5eb0c5fb8823a480bd7caecb456407d8098488 (patch) | |
tree | 09f1797eced2ef7b2f5fb8ee014563a9bd475e74 /drivers/bios_emulator | |
parent | 839c4e9c5bb09ac1ef2c129c7082a15b9cbd3a8a (diff) | |
download | u-boot-ca5eb0c5fb8823a480bd7caecb456407d8098488.tar.gz u-boot-ca5eb0c5fb8823a480bd7caecb456407d8098488.tar.bz2 u-boot-ca5eb0c5fb8823a480bd7caecb456407d8098488.zip |
bios: vesa: Guard setting vesa mode with CONFIG_FRAMEBUFFER_SET_VESA_MODE
If CONFIG_FRAMEBUFFER_SET_VESA_MODE is not set, don't switch
graphics card to VESA mode. This applies to both native mode
and emulator mode of running the VGA BIOS.
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/bios_emulator')
-rw-r--r-- | drivers/bios_emulator/atibios.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/bios_emulator/atibios.c b/drivers/bios_emulator/atibios.c index 2d5b5dc562..4a16fc7e1c 100644 --- a/drivers/bios_emulator/atibios.c +++ b/drivers/bios_emulator/atibios.c @@ -65,6 +65,7 @@ static u32 saveBaseAddress20; /* Addres im memory of VBE region */ const int vbe_offset = 0x2000; +#ifdef CONFIG_FRAMEBUFFER_SET_VESA_MODE static const void *bios_ptr(const void *buf, BE_VGAInfo *vga_info, u32 x86_dword_ptr) { @@ -215,6 +216,7 @@ static int atibios_set_vesa_mode(RMREGS *regs, int vesa_mode, return 0; } +#endif /* CONFIG_FRAMEBUFFER_SET_VESA_MODE */ /**************************************************************************** PARAMETERS: @@ -263,11 +265,13 @@ static void PCI_doBIOSPOST(pci_dev_t pcidev, BE_VGAInfo *vga_info, /*Cleanup and exit*/ BE_getVGA(vga_info); +#ifdef CONFIG_FRAMEBUFFER_SET_VESA_MODE /* Useful for debugging */ if (0) atibios_debug_mode(vga_info, ®s, vesa_mode, mode_info); if (vesa_mode != -1) atibios_set_vesa_mode(®s, vesa_mode, mode_info); +#endif } /**************************************************************************** |