emul: Add an emulator for the eSPI Host

This emulator pretends a generic eSPI Host. It supports basic virtual
wires and port80 operations.

There are functions to trigger actions on the host side e.g. for
setting a virtual wire from the host to the eSPI slave, use
emul_espi_host_send_vw. It will prepare data and set a proper event
on the slave side which will trigger callback (if there is any).

Signed-off-by: Dawid Niedzwiecki <dn@semihalf.com>
This commit is contained in:
Dawid Niedzwiecki 2020-12-16 15:08:59 +01:00 committed by Anas Nashif
commit 6ec4ff22e3
6 changed files with 298 additions and 0 deletions

View file

@ -9,3 +9,4 @@ zephyr_library_sources_ifdef(CONFIG_EMUL_BMI160 emul_bmi160.c)
add_subdirectory(i2c)
add_subdirectory(spi)
add_subdirectory(espi)