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 E218AC433F5 for ; Mon, 10 Jan 2022 00:57:54 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id AD5CC81DF6; Mon, 10 Jan 2022 01:57:28 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=arm.com 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 76A7181B4B; Mon, 10 Jan 2022 01:57:22 +0100 (CET) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by phobos.denx.de (Postfix) with ESMTP id 75B8081277 for ; Mon, 10 Jan 2022 01:57:15 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=andre.przywara@arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id B13EB139F; Sun, 9 Jan 2022 16:57:14 -0800 (PST) Received: from localhost.localdomain (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 61CD93F774; Sun, 9 Jan 2022 16:57:13 -0800 (PST) From: Andre Przywara To: Anatolij Gustschin Cc: Simon Glass , Tom Rini , Heinrich Schuchardt , Alexander Graf , Mark Kettenis , u-boot@lists.denx.de Subject: [PATCH 3/8] video: Kconfig: convert CONFIG_VIDEO_FONT_4X6 to Kconfig Date: Mon, 10 Jan 2022 00:56:33 +0000 Message-Id: <20220110005638.21599-4-andre.przywara@arm.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20220110005638.21599-1-andre.przywara@arm.com> References: <20220110005638.21599-1-andre.przywara@arm.com> 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.2 at phobos.denx.de X-Virus-Status: Clean We used to have two boards using a very tiny font, replacing the standard 8x16 font used on most framebuffers. This was done outside of Kconfig though, so move this over now. As those boards have been removed lately, there are currently no users, but we will gain more font support in a later patch. Fix the build for the 4x6 font on the way. Signed-off-by: Andre Przywara --- drivers/video/fonts/Kconfig | 12 ++++++++++++ include/video_font_4x6.h | 2 +- scripts/config_whitelist.txt | 1 - 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/drivers/video/fonts/Kconfig b/drivers/video/fonts/Kconfig index c692fa9602f..82df137542c 100644 --- a/drivers/video/fonts/Kconfig +++ b/drivers/video/fonts/Kconfig @@ -2,6 +2,18 @@ # Video fonts # +choice + prompt "Bitmap font for framebuffers" + default VIDEO_FONT_8X16 + +config VIDEO_FONT_4X6 + bool "Tiny 4x6 font" + +config VIDEO_FONT_8X16 + bool "Standard VGA font" + +endchoice + menu "TrueType Fonts" config CONSOLE_TRUETYPE_NIMBUS diff --git a/include/video_font_4x6.h b/include/video_font_4x6.h index c7e6351b64c..65dd5e8c1d9 100644 --- a/include/video_font_4x6.h +++ b/include/video_font_4x6.h @@ -46,7 +46,7 @@ __END__; #define VIDEO_FONT_HEIGHT 6 #define VIDEO_FONT_SIZE (VIDEO_FONT_CHARS * VIDEO_FONT_HEIGHT) -static unsigned char video_fontdata[VIDEO_FONT_SIZE] = { +static unsigned char __maybe_unused video_fontdata[VIDEO_FONT_SIZE] = { /*{*/ /* Char 0: ' ' */ diff --git a/scripts/config_whitelist.txt b/scripts/config_whitelist.txt index b9c1c61e13d..2159bf36997 100644 --- a/scripts/config_whitelist.txt +++ b/scripts/config_whitelist.txt @@ -3051,7 +3051,6 @@ CONFIG_VERY_BIG_RAM CONFIG_VIDEO_BCM2835 CONFIG_VIDEO_BMP_LOGO CONFIG_VIDEO_DA8XX -CONFIG_VIDEO_FONT_4X6 CONFIG_VIDEO_LOGO CONFIG_VIDEO_MXS_MODE_SYSTEM CONFIG_VIDEO_STD_TIMINGS -- 2.17.6