Commit 0e98a1473a85f2d8590f97653a36f90f55267732

Authored by Jian Luo
Committed by Simon Glass
1 parent 1441d81a79

video: Add 32-bit color depth support for VBE

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>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

drivers/pci/pci_rom.c
... ... @@ -203,6 +203,7 @@
203 203 gdev->gdfBytesPP = vesa->bits_per_pixel / 8;
204 204  
205 205 switch (vesa->bits_per_pixel) {
  206 + case 32:
206 207 case 24:
207 208 gdev->gdfIndex = GDF_32BIT_X888RGB;
208 209 break;