summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRong Chang <rongchang@google.com>2017-02-06 19:05:56 +0800
committerchrome-bot <chrome-bot@chromium.org>2017-04-26 11:25:58 -0700
commit9807e01760cef5c0f5e158f59c0bf36b063916ed (patch)
tree626544b8b3a140c4ea2f967f056ddaef0edc520f /include
parent3e68c64dfd7be4e5819bdc3ff9019cc5718c9f02 (diff)
downloadchrome-ec-9807e01760cef5c0f5e158f59c0bf36b063916ed.tar.gz
rose: add stm32f4 SPI master support
This change adds stm32f4 stream DMA support and a config option to use first SPI port as master. BUG=chromium:688979 TEST=build and load on stm32f4 dev board BRANCH=none Change-Id: I2b504be70e0fbb17f16ce070119ae4715c88333a Signed-off-by: Rong Chang <rongchang@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/438911 Commit-Ready: Wei-Ning Huang <wnhuang@chromium.org> Tested-by: Wei-Ning Huang <wnhuang@chromium.org> Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/config.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h
index a0877d2097..3a989294ee 100644
--- a/include/config.h
+++ b/include/config.h
@@ -1961,6 +1961,9 @@
/* SPI master feature */
#undef CONFIG_SPI_MASTER
+/* Support STM32 SPI1 as master. */
+#undef CONFIG_STM32_SPI1_MASTER
+
/* SPI master configure gpios on init */
#undef CONFIG_SPI_MASTER_CONFIGURE_GPIOS