diff mbox

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

Message ID BLU437-SMTP346FC0DBDEB18ECB649017BFA80@phx.gbl
State Superseded
Delegated to: Simon Glass
Headers show

Commit Message

Bin Meng July 1, 2015, 8:28 a.m. UTC
From: Jian Luo <jian.luo4@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@boschrexroth.de>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
---

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

Comments

Simon Glass July 1, 2015, 2:58 p.m. UTC | #1
On 1 July 2015 at 02:28, Bin Meng <bmeng.cn@gmail.com> wrote:
> From: Jian Luo <jian.luo4@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@boschrexroth.de>
> Tested-by: Bin Meng <bmeng.cn@gmail.com>
> ---
>
>  drivers/pci/pci_rom.c | 1 +
>  1 file changed, 1 insertion(+)

Acked-by: Simon Glass <sjg@chromium.org>
diff mbox

Patch

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;