]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
x86: Set up video framebuffer for coreboot before loading kernel
authorBin Meng <bmeng.cn@gmail.com>
Thu, 13 Aug 2015 07:29:17 +0000 (00:29 -0700)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 09:29:45 +0000 (11:29 +0200)
Currenlty we only set up video framebuffer when VIDEO_VESA driver is
used. With coreboot, VIDEO_COREBOOT driver is used instead. Since we
already saved VESA mode in the VIDEO_COREBOOT driver, now we can also
set up video framebuffer for coreboot before loading Linux kernel.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
drivers/pci/pci_rom.c

index b9a3990ecc870c9623ed0948c82645b0e4749561..d2445438a6ccd3c58517d969c21566a82767b165 100644 (file)
@@ -232,7 +232,6 @@ int vbe_get_video_info(struct graphic_device *gdev)
 
 void setup_video(struct screen_info *screen_info)
 {
-#ifdef CONFIG_FRAMEBUFFER_SET_VESA_MODE
        struct vesa_mode_info *vesa = &mode_info.vesa;
 
        /* Sanity test on VESA parameters */
@@ -258,7 +257,6 @@ void setup_video(struct screen_info *screen_info)
        screen_info->blue_pos = vesa->blue_mask_pos;
        screen_info->rsvd_size = vesa->reserved_mask_size;
        screen_info->rsvd_pos = vesa->reserved_mask_pos;
-#endif
 }
 
 int pci_run_vga_bios(pci_dev_t dev, int (*int15_handler)(void), int exec_method)