u-boot/test/cmd
Alper Nebi Yasak e712245d08 sandbox: cros-ec: Add tests for the Chromium OS EC PWM driver
This patch adds a limited pulse-width modulator to sandbox's Chromium OS
Embedded Controller emulation. The emulated PWM device supports multiple
channels but can only set a duty cycle for each, as the actual EC
doesn't expose any functionality or information other than that. Though
the EC supports specifying the PWM channel by its type (e.g. display
backlight, keyboard backlight), this is not implemented in the emulation
as nothing in U-Boot uses this type specification.

This emulated PWM device is then used to test the Chromium OS PWM driver
in sandbox. Adding the required device node to the sandbox test
device-tree unfortunately makes it the first PWM device, so this also
touches some other tests to make sure they still use the sandbox PWM.

Signed-off-by: Alper Nebi Yasak <alpernebiyasak@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2021-07-06 10:38:03 -06:00
..
addrmap.c test: cmd: Add a basic test for 'addrmap' command 2021-03-05 10:25:43 +05:30
Makefile test: cmd: Add a basic test for 'addrmap' command 2021-03-05 10:25:43 +05:30
mem.c test: Add a macros for finding tests in linker_lists 2021-03-12 09:57:30 -05:00
mem_search.c display_options: Drop two spaces before the ASCII column 2021-06-08 11:39:09 -04:00
pwm.c sandbox: cros-ec: Add tests for the Chromium OS EC PWM driver 2021-07-06 10:38:03 -06:00
setexpr.c test: cmd: setexpr: Fix a typo 2021-03-22 19:23:26 +13:00
test_echo.c hush: Fix assignments being misinterpreted as commands 2021-04-12 17:17:11 -04:00