diff options
author | Jian Luo <jian.luo4@boschrexroth.de> | 2015-07-06 16:31:29 +0800 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-07-14 18:03:18 -0600 |
commit | 0e98a1473a85f2d8590f97653a36f90f55267732 (patch) | |
tree | c169b47e0c506de92d9f8a006317be3bccff2563 /drivers/pci | |
parent | 1441d81a793507745603c4c3b9481930ebd53822 (diff) | |
download | u-boot-0e98a1473a85f2d8590f97653a36f90f55267732.tar.gz u-boot-0e98a1473a85f2d8590f97653a36f90f55267732.tar.xz u-boot-0e98a1473a85f2d8590f97653a36f90f55267732.zip |
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>
Diffstat (limited to 'drivers/pci')
-rw-r--r-- | drivers/pci/pci_rom.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pci/pci_rom.c b/drivers/pci/pci_rom.c index 37450c8e31..0a644a9bc5 100644 --- a/drivers/pci/pci_rom.c +++ b/drivers/pci/pci_rom.c @@ -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; |