u-boot/arch/sandbox/include/asm
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
..
acpi_table.h acpi: Add a simple sandbox test 2020-04-16 14:36:28 +08:00
axi.h axi: Add AXI sandbox driver and simple emulator 2018-08-11 08:09:39 +02:00
bitops.h sandbox: Use the generic bitops headers 2015-11-05 10:52:14 -05:00
byteorder.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
cache.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
clk.h clk: sandbox: Create a special fixed-rate driver 2021-03-26 17:03:08 +13:00
config.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
cpu.h timer: Add a test for timer_timebase_fallback 2020-09-30 08:54:45 +08:00
dma-mapping.h dma-mapping: add <asm/dma-mapping.h> for all architectures 2020-02-20 15:09:54 +08:00
eth-raw-os.h sandbox: eth-raw: Add a SIMPLE_BUS to enumerate host interfaces 2018-07-26 14:08:19 -05:00
eth.h common: Drop net.h from common header 2020-05-18 17:33:31 -04:00
getopt.h treewide: Convert macro and uses of __section(foo) to __section("foo") 2021-05-24 14:21:30 -04:00
global_data.h acpi: Add an acpi command 2020-04-30 17:16:12 +08:00
gpio.h gpio: Add a way to read 3-way strapping pins 2021-03-03 15:40:47 -05:00
handoff.h spl: Add support for passing handoff info to U-Boot proper 2018-11-26 08:25:37 -05:00
i2c.h sandbox: i2c: Move platdata structs to header files 2021-03-26 17:03:08 +13:00
io.h sandbox: Drop 'const' from sandbox_write() 2019-10-27 10:56:41 -06:00
linkage.h efi: Use asmlinkage for EFIAPI 2016-10-19 09:01:53 +02:00
malloc.h sandbox: Add a new header for the system malloc() 2020-02-05 19:33:46 -07:00
mbox.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
posix_types.h sandbox: Add architecture header files 2011-10-17 22:45:50 +02:00
power-domain.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
processor.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ptrace.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
reset.h test: reset: Add tests for the managed API 2020-09-30 11:55:22 -04:00
rtc.h sandbox: i2c: Move platdata structs to header files 2021-03-26 17:03:08 +13:00
scmi_test.h firmware: scmi: fix inline comments and minor coding style issues 2021-04-12 17:17:11 -04:00
sdl.h sandbox: sdl: Add an option to double the screen size 2020-02-05 19:33:46 -07:00
sections.h sandbox: use sections instead of symbols for getopt array boundaries 2021-05-24 14:21:30 -04:00
serial.h sandbox: serial: Move priv into a header file 2021-01-05 12:24:41 -07:00
setjmp.h sandbox: Fix setjmp/longjmp 2018-09-23 21:55:30 +02:00
spi.h sandbox: spi: Drop unused sandbox_spi_parse_spec function 2020-12-22 20:39:25 -07:00
spl.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
state.h sandbox: Support signal handling only when requested 2021-07-06 10:38:03 -06:00
string.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
system.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
test.h sandbox: cros-ec: Add tests for the Chromium OS EC PWM driver 2021-07-06 10:38:03 -06:00
types.h sandbox: Use correct phys_{addr, size}_t for PHYS_64BIT=y 2019-04-11 20:10:05 -06:00
u-boot-sandbox.h sandbox: implement reset 2020-11-05 09:11:30 -07:00
u-boot.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
unaligned.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00