]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
video: Add 32-bit color depth support for VBE
authorJian Luo <jian.luo4@boschrexroth.de>
Mon, 6 Jul 2015 08:31:29 +0000 (16:31 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 9 Sep 2015 11:29:25 +0000 (13:29 +0200)
The TunnelCreek IGD VBE reports 32-bit color depth regardless 24-bit
color depth is configured. Since 24-bit mode already uses 4 bytes
internally, it should be OK to just add this option in switch case.

Signed-off-by: Jian Luo <jian.luo4@boschrexroth.de>
Acked-by: Simon Glass <sjg@chromium.org>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
drivers/pci/pci_rom.c

index 37450c8e31112ebea2012c606d715a7b67d2eca0..0a644a9bc5bfe56aeb9c8377a72504dd9eb9c7c9 100644 (file)
@@ -203,6 +203,7 @@ int vbe_get_video_info(struct graphic_device *gdev)
        gdev->gdfBytesPP = vesa->bits_per_pixel / 8;
 
        switch (vesa->bits_per_pixel) {
+       case 32:
        case 24:
                gdev->gdfIndex = GDF_32BIT_X888RGB;
                break;