From mboxrd@z Thu Jan 1 00:00:00 1970 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 A57E2C6379F for ; Mon, 20 Feb 2023 10:49:16 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 70449857E9; Mon, 20 Feb 2023 11:49:14 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="A3FXwAEM"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 50752857B1; Mon, 20 Feb 2023 11:49:11 +0100 (CET) Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 0ACC58586B for ; Mon, 20 Feb 2023 11:49:06 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=dsankouski@gmail.com Received: by mail-ed1-x52c.google.com with SMTP id ck15so4148244edb.0 for ; Mon, 20 Feb 2023 02:49:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=eHDfBwuUzYLh5t7NRF44V2sFVUWEVfaNwvxYzc2KeSc=; b=A3FXwAEM4s/yv0T4zHvf2151V3U3KgkuZCe2I3UDPdX4Af48RI1gh9gsmovbBbrcxB J+s/Om7kkZ1qT3l9w6oPz3e88w9tBOPCrnQBKEm+en+61aRkO5P3mlBV2UuYpeXU6NJ+ 91auIYJIBRhQjR+ffZMH3UZ/ieB2n8yQBoKP46/N1AO3deceEnWl4MR62LiARNkz2/sP gB2jVJ/qzyChLx4j4GrYbOmziyHyjha1pjmBQOBrLZmb0aulZZ4OVZfglW0mkRCE5CvB qKShcplGl/uBKX0+TdNQI0hDV6ikR+t7+O3s6v//c5aTmZhWYycD/oHYLB9O9/dHRRdY 6Kag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=eHDfBwuUzYLh5t7NRF44V2sFVUWEVfaNwvxYzc2KeSc=; b=EfRr/PMs5RQILeHo+zOlOMiu4J2k+lFYfze+CfBX8tyqF9IpJdwkkdb3N+fFV/3d3D rCa/MNhagMAcKQP+zV7FMVXrBBsKUdsrjO25Vn+WleEXUZ15BKwYPmxyN2MSjoczSvba T+SD5NTAiWLx5lpGjUpl4HepHCUpf7s/B3UWqCnFgbk7WfO2QPBJzy4Gd7f4Kn64mL9C ctDArSnYFKyHMbo2MAk1fNEjg01QSkAO8OEwlLCSj0xG0RCgW5gkhD2JEIEPZcleDayx 4nswb/lozZLDJ6ZYhOLngUKqKJOBglcHpMce+2eeqIXUhgwlmAPeIBd2siw2vgkLvDmL qWEQ== X-Gm-Message-State: AO0yUKVHuHTIr3Jw+wbjfoZMXp9TzUvj8k2oZaLkSHFSI1jm+QIrShlG v9FgXnGY7T8lM7QVUjySDH4jl57Giyg= X-Google-Smtp-Source: AK7set8iOuqOfqveHcMqHSfTD3Jjlfr0lceUOCGnXQNwQo2shADYADjg+12PhmCSXeecAvn+Em9Z8w== X-Received: by 2002:aa7:d6d0:0:b0:4a2:2e8a:14cc with SMTP id x16-20020aa7d6d0000000b004a22e8a14ccmr2757227edr.1.1676890145257; Mon, 20 Feb 2023 02:49:05 -0800 (PST) Received: from debian.localdomain ([178.127.181.53]) by smtp.googlemail.com with ESMTPSA id f7-20020a50d547000000b00488117821ffsm161774edj.31.2023.02.20.02.49.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Feb 2023 02:49:04 -0800 (PST) From: Dzmitry Sankouski To: u-boot@lists.denx.de Cc: Dzmitry Sankouski , Anatolij Gustschin , Simon Glass Subject: [PATCH v5 0/1] vidconsole: refactoring and support for wider fonts Date: Mon, 20 Feb 2023 13:49:00 +0300 Message-Id: <20230220104901.1256731-1-dsankouski@gmail.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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.6 at phobos.denx.de X-Virus-Status: Clean Version 5 contain minor changes: - move common functions to console-core.c file - remove static keyword from shared functions In version 4, only first patch sent, because review fixes to this would add large rebase & patch formatting overhead. When it'll receive reviewed tag, I'll resent entire rebased series. Modern mobile phones typically have high pixel density. Bootmenu is hardly readable on those with 8x16 font. This patch series aims to add wider fonts for devices with high ppi. Add 16x32, 12x22 fonts from linux, and allow font size configuration. There was significant changes in version 2: - fix video tests failures - add runtime font size configuration - add test for 12x22 font In version 3, 'video console: add select font logic to vidconsole uclass driver' patch was removed in favor of already merged patch 'video: Add font functions to the vidconsole API' Dzmitry Sankouski (1): video console: refactoring and optimization drivers/video/Makefile | 6 + drivers/video/console_core.c | 141 +++++++++++++ drivers/video/console_normal.c | 150 ++++---------- drivers/video/console_rotate.c | 308 ++++------------------------ drivers/video/vidconsole_internal.h | 95 +++++++++ 5 files changed, 324 insertions(+), 376 deletions(-) create mode 100644 drivers/video/console_core.c create mode 100644 drivers/video/vidconsole_internal.h -- 2.30.2