Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8B30FC001E0 for ; Sun, 23 Jul 2023 04:42:19 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id ED22B86680; Sun, 23 Jul 2023 06:41:28 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=tinylab.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 9BDDC86612; Sun, 23 Jul 2023 06:41:21 +0200 (CEST) Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.154.221.58]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id C5B6E861E2 for ; Sun, 23 Jul 2023 06:41:18 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=tinylab.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=bmeng@tinylab.org X-QQ-mid: bizesmtp84t1690087268t5ia2xk2 Received: from ubuntu.. ( [111.196.130.174]) by bizesmtp.qq.com (ESMTP) with id ; Sun, 23 Jul 2023 12:41:07 +0800 (CST) X-QQ-SSF: 01200000000000F0H000000A0000000 X-QQ-FEAT: znfcQSa1hKYf4Q1fULbDSurRLTK2eabfBHr8hD8JPnViI9zA/ZoM+XV09i2oH XqJ7ctZTceTTByg57nb+Mf/MNpX9zr6FMbsWUrv4jKkEoPsedCTZw8t42C0jiRVmNWX2PdK Kbup7MuKMb6/eALSiQs3rdg4vJK+uiSXvkN7uGdI62d1jO02XHjIuDH5lY3jictexikZd73 pv85kUM7S3JXwp8FwjWZMNl5h5Zk5VW4pqogrGAkN1ygT60QIIP+fAn0ZQOus2+ejrrsOrf lFT6Pw5/JBWz4YL7T3TIxdjTNQazptM0KoYAjqhh/OODKGXM9QxHprURQJ0e3H329gyzUAt Urk16EBnnVTiJD8R+tOxvH0mZXpXuR7o4VKiS2GINxVS7Hpe9I= X-QQ-GoodBg: 0 X-BIZMAIL-ID: 14356098133875051871 From: Bin Meng To: Simon Glass , u-boot@lists.denx.de Cc: Anatolij Gustschin Subject: [PATCH 08/18] video: kconfig: Set default FB size for Bochs Date: Sun, 23 Jul 2023 12:40:31 +0800 Message-Id: <20230723044041.1089804-9-bmeng@tinylab.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230723044041.1089804-1-bmeng@tinylab.org> References: <20230723044041.1089804-1-bmeng@tinylab.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:tinylab.org:qybglogicsvrgz:qybglogicsvrgz7a-0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Set up a default frame buffer size of 8MiB for Bochs for non-x86 architecturs as PCI is normally not enumerated before relocation on these architectures. Signed-off-by: Bin Meng --- drivers/video/Kconfig | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig index 3f6b7d71b8..e32ce13fb6 100644 --- a/drivers/video/Kconfig +++ b/drivers/video/Kconfig @@ -65,7 +65,8 @@ config BACKLIGHT config VIDEO_PCI_DEFAULT_FB_SIZE hex "Default framebuffer size to use if no drivers request it" default 0x1000000 if X86 - default 0 if !X86 + default 0x800000 if !X86 && VIDEO_BOCHS + default 0 if !X86 && !VIDEO_BOCHS help Generally, video drivers request the amount of memory they need for the frame buffer when they are bound, by setting the size field in @@ -1037,7 +1038,8 @@ config SPL_SYS_WHITE_ON_BLACK config SPL_VIDEO_PCI_DEFAULT_FB_SIZE hex "Default framebuffer size to use if no drivers request it at SPL" default 0x1000000 if X86 - default 0 if !X86 + default 0x800000 if !X86 && VIDEO_BOCHS + default 0 if !X86 && !VIDEO_BOCHS help Generally, video drivers request the amount of memory they need for the frame buffer when they are bound, by setting the size field in -- 2.34.1