diff options
author | Alper Nebi Yasak | 2021-05-19 19:33:31 +0300 |
---|---|---|
committer | Simon Glass | 2021-07-06 10:38:03 -0600 |
commit | e712245d08d95fac6467fd0d05a12d6506aeda2d (patch) | |
tree | aceedee89f30d6b0a9dc7bbdc25fbd65d647e4de /test/dm/soc.c | |
parent | 98c14ff019515ffcb1b40b550e56fe1dfbede51b (diff) |
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>
Diffstat (limited to 'test/dm/soc.c')
0 files changed, 0 insertions, 0 deletions