diff options
author | Gwendal Grignou <gwendal@chromium.org> | 2015-07-30 15:37:11 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2015-09-23 21:26:22 -0700 |
commit | dac76cc8d053d592202e5caf6ccff03e78b1c43d (patch) | |
tree | 0c123130ca9f6ef623312a392654fb114c7de885 /board | |
parent | 4ae115e145fb080f363dda74a09ff1c5ad3044ca (diff) | |
download | chrome-ec-dac76cc8d053d592202e5caf6ccff03e78b1c43d.tar.gz |
common: add command spixfer
Similar to i2c_xfer: allow access to a SPI device registers.
We assume the protocol use is set MSB bit to the offset for read
operation.
id is the index of the device in spi_devices.
BRANCH=smaug
TEST=Read/Write SPI registers.
BUG=none
Change-Id: Id4aaffbb6f514fd47086aee240b556ea23298d33
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/289857
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'board')
-rw-r--r-- | board/ryu/board.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/board/ryu/board.h b/board/ryu/board.h index db06bf1e1a..071f99bda3 100644 --- a/board/ryu/board.h +++ b/board/ryu/board.h @@ -175,6 +175,7 @@ #define CONFIG_ACCEL_INTERRUPTS #define CONFIG_CMD_ACCELS #define CONFIG_CMD_ACCEL_INFO +#define CONFIG_CMD_SPI_XFER /* Size of FIFO queue is determined by Android Hifi sensor requirements: * Wake up sensors: Accel @50Hz + Barometer @5Hz + uncal mag @ 10Hz |