diff options
author | Vincent Palatin <vpalatin@chromium.org> | 2017-12-20 14:16:10 +0100 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-01-08 17:22:48 -0800 |
commit | d56195cfdbc1a3efcf7009ebe120fdb7d1a4f26c (patch) | |
tree | f86d1301c0ecf2e1f94bc2f9917de42e4e881d08 /include | |
parent | e24a3953c2c23df219fc0c735e0c188fd8edbded (diff) | |
download | chrome-ec-d56195cfdbc1a3efcf7009ebe120fdb7d1a4f26c.tar.gz |
stm32: add SPI master for STM32H7
Add the driver for the new silicon used in STM32H7 SPI controller,
including its bad errata when used with DMA.
Signed-off-by: Vincent Palatin <vpalatin@chromium.org>
BRANCH=none
BUG=b:67081508
TEST=on ZerbleBarn, do finger image acquisition on the SPI fingerprint
sensor.
Change-Id: Ieaf4a09e961d3e0ef78b58886c409a7dfb63aaf3
Reviewed-on: https://chromium-review.googlesource.com/836617
Commit-Ready: Vincent Palatin <vpalatin@chromium.org>
Tested-by: Vincent Palatin <vpalatin@chromium.org>
Reviewed-by: Shawn N <shawnn@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/spi.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/spi.h b/include/spi.h index 49bddd3cc3..5cf3389e91 100644 --- a/include/spi.h +++ b/include/spi.h @@ -88,6 +88,8 @@ int spi_transaction(const struct spi_device_t *spi_device, /* Similar to spi_transaction(), but hands over to DMA for reading response. * Must call spi_transaction_flush() after this to make sure the response is * received. + * Contrary the regular spi_transaction(), this function does NOT lock the + * SPI port, it's up to the caller to ensure proper mutual exclusion if needed. */ int spi_transaction_async(const struct spi_device_t *spi_device, const uint8_t *txdata, int txlen, |