[U-Boot] [PATCH v2 04/11] video: Add 32-bit color depth support for VBE

Bin Meng bmeng.cn at gmail.com
Mon Jul 6 10:31:29 CEST 2015


From: Jian Luo <jian.luo4 at boschrexroth.de>

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 at boschrexroth.de>
Acked-by: Simon Glass <sjg at chromium.org>
Tested-by: Bin Meng <bmeng.cn at gmail.com>
---

Changes in v2: None

 drivers/pci/pci_rom.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/pci/pci_rom.c b/drivers/pci/pci_rom.c
index e6f4806..83c69a5 100644
--- a/drivers/pci/pci_rom.c
+++ b/drivers/pci/pci_rom.c
@@ -202,6 +202,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;
-- 
1.8.2.1



More information about the U-Boot mailing list