From patchwork Mon Oct 6 20:58:34 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 37 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=1759784358; bh=sQvs03HWvNh4uYBdfdVEuRLdPjOZyK5LFRvjgpF+n20=; h=From:To:Date:CC:Subject:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=aCFO3kHg6YnYoC1wPYEe9r1jMwQTO7LKNTnRTc17J6rbe/cccg4ST7wLUF6so6+pU 3WBqqowLjQFiw2Dlkp/jaRL0Po5R1inmHGo47fvam5Bg1zjCci6Dsqgq7LfIbSvv4D fcd8KfQVrAWfSVH4tScWz3ZCF5crtTP08fdCsDM3a9ozNfYjPquNN0mQ9wpIoEOfhd cF4+LvrMauvpmPzagvVbsrPj9siVCDLLVxnfswLSqHPvGmafoQJXwKYXI45krS3rv4 KM3wTa3Tr78snUsE1jMwA4OicLC9/YeENVnw8FS8GiNKmIqSHVmjoNpP4UDKJXQ6Y6 nz9dmSKif6V5g== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 4A14B67F8D for ; Mon, 6 Oct 2025 14:59:18 -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 M6gEwFApzxvw for ; Mon, 6 Oct 2025 14:59:18 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1759784358; bh=sQvs03HWvNh4uYBdfdVEuRLdPjOZyK5LFRvjgpF+n20=; h=From:To:Date:CC:Subject:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=aCFO3kHg6YnYoC1wPYEe9r1jMwQTO7LKNTnRTc17J6rbe/cccg4ST7wLUF6so6+pU 3WBqqowLjQFiw2Dlkp/jaRL0Po5R1inmHGo47fvam5Bg1zjCci6Dsqgq7LfIbSvv4D fcd8KfQVrAWfSVH4tScWz3ZCF5crtTP08fdCsDM3a9ozNfYjPquNN0mQ9wpIoEOfhd cF4+LvrMauvpmPzagvVbsrPj9siVCDLLVxnfswLSqHPvGmafoQJXwKYXI45krS3rv4 KM3wTa3Tr78snUsE1jMwA4OicLC9/YeENVnw8FS8GiNKmIqSHVmjoNpP4UDKJXQ6Y6 nz9dmSKif6V5g== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 3718967F52 for ; Mon, 6 Oct 2025 14:59:18 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1759784356; bh=dxwIw5xj9ch/DRbaDcb3uSjLhF3aPLtIT7mxUP6EiUA=; h=From:To:Cc:Subject:Date:From; b=k8x8c9Wb+y0YyOW/8a+vKFInofVhN2zOo+LEYA2RCA7JUtMDtl8/GQmPTFnxpPf9X gCFAmEmPczNiIAaEmXqaYdzBmrAk80nUfNltytAjPZjYwFylMS5Zvo0ZVSCJdZwhn3 pHkLwZOhjin/38ZREAmrIwrDhq2ewrWnWA3LQ0Bes/xTy4orbSrxBRAU0cOeCnrlxP UekjnWdotqTtl1iezYSUecKYhoHgJzWUEAhWxwJEadSpICQ9VjXng8QV5M3bTOHmLE 6ecYxEh1I3JevCoFeNpQ3Lgw4CLeahTM9VYarUj2tdHXkXTtIZLd1dI72b7M56RSpD 1YlZQ4wCuKl2g== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 122E767EE4; Mon, 6 Oct 2025 14:59:16 -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 e5JncmWGEaow; Mon, 6 Oct 2025 14:59:16 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1759784352; bh=LAWDY62eNAPjHzKZqafN1Le6IDmgLAuPEL8r5jF3Hk0=; h=From:To:Cc:Subject:Date:From; b=DU4YflKxR34eW5qs9ga52d/sa3jTrTMudbfwCsESoQcLDk7EmPlRrMwTVDkUlEXSx OerSfcisx2c4YUpfFEzwXTk7aWv7O9X8UWgqzHidbNdAI9V7vK65MP/OquFvD0Z69U ATtaba8Y2FaXtXas1ekhE44xMhHSOG63Ps1RX3299PiCHlAPjszSsk3etU4vPk5+Pt t9A89+z/EpdKEu22z4No2dmn73XTYDwnUln0C5ebBVN8x3tufz32yMpdNafqv3sxSr PaVFXQbzMJ+YjW/qiUpCi5zYgXPWZ0MvL6EDFq04vheFW4Qc7NeriXqK1Ftw878ub+ 9h7nBJG7klB6Q== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id B6D9667F03; Mon, 6 Oct 2025 14:59:11 -0600 (MDT) From: Simon Glass To: U-Boot Concept Date: Mon, 6 Oct 2025 14:58:34 -0600 Message-ID: <20251006205856.2009292-1-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Message-ID-Hash: X3XNOZHJPIOA42M3AEYEYFFHZ54YNVTP X-Message-ID-Hash: X3XNOZHJPIOA42M3AEYEYFFHZ54YNVTP 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 00/14] expo: More mouse development for expo 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 This series adds support for hiding the system pointer, if one is available, since it is confusing to have an expo pointer separate from the system one. It als introduces a simple test mode for expo, to check the frame rate, etc. Some minor tweaks in the video uclass are also included, as well as improvements to the video documentation. Simon Glass (14): video: Do the sync timing within video_sync() video: Add a little more documentation to the uclass mouse: Add comment for mouse_get_event() mouse: Add method to show/hide the system pointer mouse: Add support for scaling of video-device coordinates sandbox: mouse: Implement set_ptr_visible() sandbox: mouse: Add test for pointer visibility expo: Hide system pointer when entering expo mode expo: Introduce a test mode expo: Track the number of render calls expo: Add test mode to display frame count expo: Add FPS tracking to test mode expo: Expand timing to include render and poll expo: Use manual-sync mode arch/sandbox/cpu/sdl.c | 5 + arch/sandbox/include/asm/sdl.h | 11 ++ arch/sandbox/include/asm/test.h | 8 ++ boot/Kconfig | 10 ++ boot/Makefile | 1 + boot/expo.c | 44 ++++++- boot/expo_test.c | 217 ++++++++++++++++++++++++++++++++ doc/develop/expo.rst | 36 ++++++ drivers/input/mouse-uclass.c | 27 ++++ drivers/input/sandbox_mouse.c | 33 +++++ drivers/video/video-uclass.c | 44 +++++-- include/expo.h | 4 + include/expo_test.h | 181 ++++++++++++++++++++++++++ include/mouse.h | 66 ++++++++++ test/boot/expo.c | 123 ++++++++++++++++++ test/dm/mouse.c | 22 ++++ 16 files changed, 818 insertions(+), 14 deletions(-) create mode 100644 boot/expo_test.c create mode 100644 include/expo_test.h