
From: Simon Glass <sjg@chromium.org> This series resurects some old code that was never submitted, related to using Nuklear with U-Boot. It includes: - a very simple mouse uclass - sandbox mouse driver - USB mouse driver, useful on x86 - EFI mouse driver, useful when running as an EFI app - script updates to use the above with build-qemu and build-efi It also includes a few small patches for sandbox, tests and membuf Not everything is fully working at present: - Mouse works on x86 QEMU (after 'usb start') but not ARM - Mouse works on real hardware with EFI, but not with build-efi script - Mouse times out with 'usb start', even though it does actually work More work will be needed to tidy up these remaining issues. Simon Glass (17): membuf: Add a function to set up a static membuf sandbox: Add a way to set the window title test: Add newlines at the end of the img functions input: Add mouse support sandbox: sdl: Add support for mouse input input: sandbox: Provide a mouse driver input: Add a command to show mouse input sandbox: Enable the mouse sandbox: Provide a test for the mouse uclass usb: Add a USB mouse driver mouse: Provide a way to read clicks efi: Add the simple-pointer protocol efi: Provide a mouse driver for EFI efi: arm: x86: Enable the mouse script: Support mouse with build-efi/qemu scripts x86: emulation: Enable USB support qemu: Enable the mouse MAINTAINERS | 7 + arch/arm/dts/efi-arm_app.dts | 5 + arch/sandbox/cpu/sdl.c | 46 +++- arch/sandbox/cpu/start.c | 9 + arch/sandbox/dts/sandbox.dtsi | 4 + arch/sandbox/dts/test.dts | 4 + arch/sandbox/include/asm/sdl.h | 9 + arch/sandbox/include/asm/state.h | 2 + arch/sandbox/include/asm/test.h | 17 ++ arch/x86/dts/efi-x86_app.dts | 4 + cmd/Kconfig | 9 + cmd/Makefile | 1 + cmd/mouse.c | 69 ++++++ configs/qemu-x86_64_defconfig | 3 + configs/qemu-x86_defconfig | 3 + configs/tools-only_defconfig | 2 +- drivers/input/Kconfig | 29 +++ drivers/input/Makefile | 7 + drivers/input/efi_mouse.c | 221 +++++++++++++++++++ drivers/input/mouse-uclass.c | 72 +++++++ drivers/input/sandbox_mouse.c | 84 ++++++++ drivers/input/usb_mouse.c | 353 +++++++++++++++++++++++++++++++ include/dm/uclass-id.h | 1 + include/efi.h | 1 + include/efi_api.h | 29 +++ include/membuf.h | 17 +- include/mouse.h | 105 +++++++++ include/usb.h | 1 + lib/efi/device_path.c | 1 + lib/membuf.c | 8 + scripts/build-efi | 3 + scripts/build-qemu | 6 +- test/dm/Makefile | 1 + test/dm/mouse.c | 217 +++++++++++++++++++ test/lib/membuf.c | 19 ++ test/py/img/android.py | 2 +- test/py/img/armbian.py | 2 +- test/py/img/cedit.py | 2 +- test/py/img/chromeos.py | 2 +- test/py/img/common.py | 2 +- test/py/img/efi.py | 2 +- test/py/img/fedora.py | 2 +- test/py/img/localboot.py | 2 +- test/py/img/ubuntu.py | 2 +- 44 files changed, 1374 insertions(+), 13 deletions(-) create mode 100644 cmd/mouse.c create mode 100644 drivers/input/efi_mouse.c create mode 100644 drivers/input/mouse-uclass.c create mode 100644 drivers/input/sandbox_mouse.c create mode 100644 drivers/input/usb_mouse.c create mode 100644 include/mouse.h create mode 100644 test/dm/mouse.c -- 2.43.0 base-commit: f3005834f6822612feb627cf52338e123c723e2b branch: ape