diff options
author | Bill Richardson <wfrichar@chromium.org> | 2015-07-06 13:12:31 -0700 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-07-07 09:01:32 +0000 |
commit | 806cc814917209f9bc8eab1d94a78f8d828aa2c5 (patch) | |
tree | 90a154036dbd9bf74f22e92f41973b5e25c4937e /board | |
parent | eded0406a367bbfed69d3f78871df5f9be7b7b41 (diff) | |
download | chrome-ec-806cc814917209f9bc8eab1d94a78f8d828aa2c5.tar.gz |
Cr50: Simplify the API for the SPS driver
The SPS (SPI Slave) driver handles incoming traffic from the SPI
master. This abstracts the basic hardware functions into a clean
API so that the response to the SPI bytes can be put into
separate files.
BUG=chrome-os-partner:40969
BRANCH=none
TEST=make buildall
If CONFIG_SPI is not defined, incoming SPI traffic is completely ignored.
Even when it's enabled, nothing is reacting to the traffic so
incoming SPI bytes return 0xFF bytes to the master (SPI traffic
is always bidirectional).
Change-Id: I9bbcebc9c5223b942362200fe43a11ac57dfff40
Signed-off-by: Bill Richardson <wfrichar@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/283581
Reviewed-by: Sheng-liang Song <ssl@chromium.org>
Diffstat (limited to 'board')
-rw-r--r-- | board/cr50/board.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/board/cr50/board.h b/board/cr50/board.h index a42f6a789f..42fcaa74a8 100644 --- a/board/cr50/board.h +++ b/board/cr50/board.h @@ -24,6 +24,9 @@ #define CONFIG_USB_PID 0x5014 +/* Enable SPI Slave (SPS) module */ +#define CONFIG_SPI + #endif /* * Allow dangerous commands all the time, since we don't have a write protect |