diff options
author | Bin Meng <bmeng.cn@gmail.com> | 2016-10-09 04:14:19 -0700 |
---|---|---|
committer | Bin Meng <bmeng.cn@gmail.com> | 2016-10-12 10:58:24 +0800 |
commit | 21c9bcebd0e388a7acc2b1a3dc38127e0fd6182c (patch) | |
tree | c991833e10ecb802a64c0b4bda169d9cf0515a33 /drivers/video/vesa_fb.c | |
parent | 2d3c573ee6373f4521491f1a38e81245c3a6be57 (diff) | |
download | u-boot-imx-21c9bcebd0e388a7acc2b1a3dc38127e0fd6182c.zip u-boot-imx-21c9bcebd0e388a7acc2b1a3dc38127e0fd6182c.tar.gz u-boot-imx-21c9bcebd0e388a7acc2b1a3dc38127e0fd6182c.tar.bz2 |
video: Remove legacy VESA and coreboot framebuffer drivers
Now that all x86 boards have been converted to DM video, drop the
legacy drivers.
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/video/vesa_fb.c')
-rw-r--r-- | drivers/video/vesa_fb.c | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/drivers/video/vesa_fb.c b/drivers/video/vesa_fb.c deleted file mode 100644 index 021c1d6..0000000 --- a/drivers/video/vesa_fb.c +++ /dev/null @@ -1,63 +0,0 @@ -/* - * VESA frame buffer driver - * - * Copyright (C) 2014 Google, Inc - * - * SPDX-License-Identifier: GPL-2.0+ - */ - -#include <common.h> -#include <pci_rom.h> -#include <video_fb.h> -#include <vbe.h> - -/* - * The Graphic Device - */ -GraphicDevice ctfb; - -void *video_hw_init(void) -{ - GraphicDevice *gdev = &ctfb; - struct udevice *dev; - int bits_per_pixel; - int ret; - - printf("Video: "); - if (!ll_boot_init()) { - /* - * If we are running from EFI or coreboot, this driver can't - * work. - */ - printf("Not available (previous bootloader prevents it)\n"); - return NULL; - } - if (vbe_get_video_info(gdev)) { - ret = dm_pci_find_class(PCI_CLASS_DISPLAY_VGA << 8, 0, &dev); - if (ret) { - printf("no card detected\n"); - return NULL; - } - bootstage_start(BOOTSTAGE_ID_ACCUM_LCD, "vesa display"); - ret = dm_pci_run_vga_bios(dev, NULL, PCI_ROM_USE_NATIVE | - PCI_ROM_ALLOW_FALLBACK); - bootstage_accum(BOOTSTAGE_ID_ACCUM_LCD); - if (ret) { - printf("failed to run video BIOS: %d\n", ret); - return NULL; - } - } - - if (vbe_get_video_info(gdev)) { - printf("No video mode configured\n"); - return NULL; - } - - bits_per_pixel = gdev->gdfBytesPP * 8; - sprintf(gdev->modeIdent, "%dx%dx%d", gdev->winSizeX, gdev->winSizeY, - bits_per_pixel); - printf("%s\n", gdev->modeIdent); - debug("Frame buffer at %x\n", gdev->pciBase); - - return (void *)gdev; -} |