diff options
author | Craig Hesling <hesling@chromium.org> | 2019-07-01 12:21:49 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-07-18 00:15:57 +0000 |
commit | dca00fcd76546d28f64dfc805c548d9fb34a7ba4 (patch) | |
tree | 22c7fd5a2c1d31dcd1e6fb0541b74180aba4213f /board | |
parent | 048e8abbb05ec7758045cb43dbc71fa1ecc93fbe (diff) | |
download | chrome-ec-dca00fcd76546d28f64dfc805c548d9fb34a7ba4.tar.gz |
chip/host: Add spi+trng support, and add gpio func
This adds fake SPI Master and TRNG support to the
host target.
This change also adds the missing emulated gpio
interface function.
Although general purpose, these changes are setup for
allowing fuzzing of the FPMCU specific host commands.
Thus, they do not impact any outstanding code.
BRANCH=none
BUG=b:116065496
TEST=make buildall -j
Change-Id: Icfc40e7bf8ee421a4c3ad15377fd56ae68c763d7
Signed-off-by: Craig Hesling <hesling@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1684223
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'board')
-rw-r--r-- | board/host/board.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/board/host/board.c b/board/host/board.c index 58e895a6f2..086a6f1359 100644 --- a/board/host/board.c +++ b/board/host/board.c @@ -14,6 +14,7 @@ #include "motion_sense.h" #include "motion_lid.h" #include "power_button.h" +#include "spi.h" #include "temp_sensor.h" #include "timer.h" #include "util.h" @@ -58,6 +59,14 @@ const struct i2c_port_t i2c_ports[] = { const unsigned int i2c_ports_used = ARRAY_SIZE(i2c_ports); #endif +#ifdef CONFIG_SPI_MASTER +/* SPI devices */ +const struct spi_device_t spi_devices[] = { +}; + +const unsigned int spi_devices_used = ARRAY_SIZE(spi_devices); +#endif + #ifdef TEST_BUILD /* Poor source of entropy for testing purpose. */ int board_get_entropy(void *buffer, int len) |