From patchwork Wed Jul 1 08:28:01 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bin Meng X-Patchwork-Id: 489947 X-Patchwork-Delegate: sjg@chromium.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id A620A1401F6 for ; Wed, 1 Jul 2015 18:29:16 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=Sq28YKVa; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 57A364B698; Wed, 1 Jul 2015 10:28:56 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id H72zL6KEslrg; Wed, 1 Jul 2015 10:28:56 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A4E7B4B67D; Wed, 1 Jul 2015 10:28:50 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 48F794B652 for ; Wed, 1 Jul 2015 10:28:47 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7IpXWjGE0p44 for ; Wed, 1 Jul 2015 10:28:47 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-qk0-f181.google.com (mail-qk0-f181.google.com [209.85.220.181]) by theia.denx.de (Postfix) with ESMTPS id 0337E4B624 for ; Wed, 1 Jul 2015 10:28:39 +0200 (CEST) Received: by qkhu186 with SMTP id u186so24336762qkh.0 for ; Wed, 01 Jul 2015 01:28:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:from:to:subject:date:in-reply-to:references:mime-version :content-type; bh=nw7rQrlUszhiSWf2Xl5iT/6wFlmJg1XvCdOeGnbXYH0=; b=Sq28YKVa1EMffqq0g2OnKU8BEO2NBpc5IgZIheuW4KyzRuepxLLGubEYGFojvZFKQs vc34/Ekf3eh1NDUvUShSTFA+sbBA+b88eG9OcagAioe47KIZ9BTdBEC/rW1MGEcwoLhJ pp/Lj3tTs0i8N5d4OoBJU87ERVsVCE22D6E+KSy6IA8Z5uYSk5nJl6+WIBKa+R6I6weK BwqbPh0lLZOskSahVQN9lANnyuIolQJHtkJUKcYG2/BfVHbtQ7FYvIN9YXInLE9XDuP6 D3tCrndgOYpkhNln/zVMSsyOsSbnMTbbYP7uB91XHmj3EkR+qw1eL0eryRalgsDTX4ye k7KA== X-Received: by 10.140.95.85 with SMTP id h79mr31723557qge.68.1435739318187; Wed, 01 Jul 2015 01:28:38 -0700 (PDT) Received: from mail.hotmail.com (blu004-wss1s5.hotmail.com. [134.170.2.220]) by mx.google.com with ESMTPSA id g81sm571851qhc.8.2015.07.01.01.28.37 (version=TLSv1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 01 Jul 2015 01:28:37 -0700 (PDT) Received: from BLU437-SMTP34 ([134.170.2.215]) by BLU004-WSS1S5.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Wed, 1 Jul 2015 01:28:37 -0700 X-TMN: [n/sugXIIovwuXBKD8THxaaJnIKEFNxAQ] Message-ID: From: Bin Meng To: Simon Glass , U-Boot Mailing List , Jian Luo Date: Wed, 1 Jul 2015 16:28:01 +0800 X-Mailer: git-send-email 1.8.2.1 In-Reply-To: <1435739288-28359-1-git-send-email-bmeng.cn@gmail.com> References: <1435739288-28359-1-git-send-email-bmeng.cn@gmail.com> X-OriginalArrivalTime: 01 Jul 2015 08:28:36.0079 (UTC) FILETIME=[EC7E5FF0:01D0B3D7] MIME-Version: 1.0 Subject: [U-Boot] [PATCH 04/11] video: Add 32-bit color depth support for VBE X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" From: Jian Luo 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 Tested-by: Bin Meng Acked-by: Simon Glass --- 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;