emul: spi: Add support for SPI emulators

Add an emulation controller which routes SPI traffic to an attached
emulator. Only one emulator is supported per bus at present, since
chip-selction functionality is not present.

This allows drivers for SPI peripherals to be tested on systems that
don't have that peripheral attached, with the emulator handling the SPI
traffic.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass 2020-09-18 16:31:23 -06:00 committed by Anas Nashif
commit a1d8e55cad
6 changed files with 264 additions and 0 deletions

View file

@ -207,6 +207,8 @@ source "drivers/spi/Kconfig.sam0"
source "drivers/spi/Kconfig.sifive"
source "drivers/spi/Kconfig.spi_emul"
source "drivers/spi/Kconfig.nrfx"
source "drivers/spi/Kconfig.cc13xx_cc26xx"