From patchwork Wed Oct 1 23:05:26 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 33 Return-Path: X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1759359951; bh=YSZyWg+YJMINhnX538UYUM0PfH06e9LnCxVXUPdmOs0=; h=From:To:Date:CC:Subject:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=gxfb2EHLjuPlTdv3GNYq58/zDzYT5ImezPKWZsp0isS38FLb0Z4eq5R0tIpx+80sg XKoHesOCKmQTu2Fw+iJj7yrM8owxWFOLZ43xrpVJUqAX5B3oga6u3wPTpLKy3x9kjo Qxc4TjHJmIY/GOwVcDvbnQ3AJ7I9kLtTO22fXgFgmOlL+a1+UT6Ynd4M9apRnUrNIz MtrAx23O21OgLo5LCDMOOlV3QnSsYIEUMgeDCRAtHMJwfs4+TMCXNFlAiIciTsISQx 3gG03CbMHiZrzuF6a/quHRqyD2kvBf+fAWo+nYqjYKNamZso9UMMCkCK5S172+tOe4 2Xn+L6NDXVxUA== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id C8D9E67EEA for ; Wed, 1 Oct 2025 17:05:51 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id i4IQz_UetxGY for ; Wed, 1 Oct 2025 17:05:51 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1759359951; bh=YSZyWg+YJMINhnX538UYUM0PfH06e9LnCxVXUPdmOs0=; h=From:To:Date:CC:Subject:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=gxfb2EHLjuPlTdv3GNYq58/zDzYT5ImezPKWZsp0isS38FLb0Z4eq5R0tIpx+80sg XKoHesOCKmQTu2Fw+iJj7yrM8owxWFOLZ43xrpVJUqAX5B3oga6u3wPTpLKy3x9kjo Qxc4TjHJmIY/GOwVcDvbnQ3AJ7I9kLtTO22fXgFgmOlL+a1+UT6Ynd4M9apRnUrNIz MtrAx23O21OgLo5LCDMOOlV3QnSsYIEUMgeDCRAtHMJwfs4+TMCXNFlAiIciTsISQx 3gG03CbMHiZrzuF6a/quHRqyD2kvBf+fAWo+nYqjYKNamZso9UMMCkCK5S172+tOe4 2Xn+L6NDXVxUA== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id B55D067EE5 for ; Wed, 1 Oct 2025 17:05:51 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1759359950; bh=qxCfCzizhDowYfoqPmDQCS9BVQ4HsW13tdtDHo1ALmc=; h=From:To:Cc:Subject:Date:From; b=ixVzsywL8yotElQT3myt4tRPesuxnJTrOpklFa0MhgbIfzAodp2Vez2NGj0sJapsm 4pSPCXvzVYx6xLoUpDHHtv2bMk4e2w6L851hi1OxWYZdKdPkas9V3gzaHzgxKfeJp5 xh5ZrR2SiEbwuD6+1adiIuNaErUWR9Pm0Z7+rT/GKFobscGshkPFUi8uSMNnZfAdkt firZpcGFmOx8rqQ7EGg/XqyEfRFNAcWB+cDrS1tnzvfUaM8waqYRASZFRco6ee6iAU umMDsIQWFNm4cY+t2raHYEF6zi+8H5JkGAmvwkReqQ5rEzR0HTxg/IxgX9uPxRPYUX V7y+CVIPTppxA== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 00EA667ED2; Wed, 1 Oct 2025 17:05:50 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id Zhd0SFE5jtrE; Wed, 1 Oct 2025 17:05:49 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1759359945; bh=Pk0IYeLBbKteki95k+5mmlb04zuy69GPwYp6ckMM4do=; h=From:To:Cc:Subject:Date:From; b=k5mMX9VvbB/TSz47pO1onGPg6yEHHQSnURcnoRrRkCaa5BnEigonAkVQcI0q3akmQ Nqk1hEjz9ijYxu9PBPBVG+9Be52TnS83CD+MWnsqBkzL5NRqapR6e495NL1WLJINcW Jgp9vAOsb6YNDuHdTWHNIIwfO0U2ol/QaE+XuNLY67z6sfBfH259RP4opVgUGCJEBN 30BbftaW9AAqRPalZ5jhGE7/P5VLSnPAH8LPWmrzFoc8iFwiKoD7rp0WgIfVQsY0Th 27WyyHHWmT34QjPKoQ8wwbchJLkWPfjfhWFMGGQIHwmNNGbuXb0scD8op3p5j3MA+f VP6R6WBcfdjKg== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 8E3BE67D8D; Wed, 1 Oct 2025 17:05:45 -0600 (MDT) From: Simon Glass To: U-Boot Concept Date: Wed, 1 Oct 2025 17:05:26 -0600 Message-ID: <20251001230537.3324058-1-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Message-ID-Hash: SP5VLY45MWJMTVNRUUBSDXXMVA6PKKCG X-Message-ID-Hash: SP5VLY45MWJMTVNRUUBSDXXMVA6PKKCG X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Heinrich Schuchardt , Simon Glass X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 0/6] video: Tidy up embedded graphical images List-Id: Discussion and patches related to U-Boot Concept Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Simon Glass U-Boot includes a few graphical images which are compiled in, such as the logo and the BGRT logo used for EFI. At present these are handled by a Makefile rule which looks for files ending with '_logo.bmp'. This series moves these into a new drivers/video/images directory and puts them in a linker list, so it is possible to see what images are available. Adding a new image is simpler, just requiring the addition of the normal 'obj-y += file.bmp' rule. This series also adds a new 'video' command which provides the existing 'setcurs' and 'lcdputs' as subcommands, along with documentation and tests. Simon Glass (6): video: doc: Add docs and tests for video commands video: Add video command with subcommands video: Support a linker list of images video: Move the logo into the new video-images directory acpi: bgrt: Move the BGRT image into the images directory video: Provide a command to list built-in images cmd/video.c | 34 +++++++ doc/usage/cmd/lcdputs.rst | 58 ++++++++++++ doc/usage/cmd/setcurs.rst | 53 +++++++++++ doc/usage/cmd/video.rst | 85 ++++++++++++++++++ doc/usage/index.rst | 3 + drivers/video/Makefile | 3 +- drivers/video/images/Makefile | 9 ++ .../video/images/bgrt.bmp | Bin .../{u_boot_logo.bmp => images/u_boot.bmp} | Bin drivers/video/video-uclass.c | 20 ++--- include/video.h | 46 ++++++++++ include/video_image.h | 13 +++ lib/acpi/Makefile | 2 - lib/acpi/acpi_extra.c | 22 +---- scripts/Makefile.lib | 42 ++++++--- test/dm/video.c | 41 +++++++++ 16 files changed, 387 insertions(+), 44 deletions(-) create mode 100644 doc/usage/cmd/lcdputs.rst create mode 100644 doc/usage/cmd/setcurs.rst create mode 100644 doc/usage/cmd/video.rst create mode 100644 drivers/video/images/Makefile rename lib/acpi/bgrt_image.bmp => drivers/video/images/bgrt.bmp (100%) rename drivers/video/{u_boot_logo.bmp => images/u_boot.bmp} (100%) create mode 100644 include/video_image.h