summaryrefslogtreecommitdiff
path: root/include/spi.h
diff options
context:
space:
mode:
authorDavid Hendricks <dhendrix@chromium.org>2012-04-07 21:46:06 -0700
committerSimon Glass <sjg@chromium.org>2012-04-12 15:52:07 -0700
commit71030319ec40c3fb299733d3abd4dcede28f1386 (patch)
treed0df3b58a1b93517bdb12f8e71c998444174efca /include/spi.h
parentc87611ff5796fb1f322f3350398985ad26002c26 (diff)
downloadchrome-ec-71030319ec40c3fb299733d3abd4dcede28f1386.tar.gz
stm32l: Add basic SPI driver
Add a SPI driver which can receive and process commands, and provide responses using the message interface. BUG=chromium-os:28925 TEST=build on daisy and discovery; run on daisy Change-Id: I286da803b85640525607de6c4d41f0629f7006dc Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/spi.h')
-rw-r--r--include/spi.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/spi.h b/include/spi.h
new file mode 100644
index 0000000000..45ea75231f
--- /dev/null
+++ b/include/spi.h
@@ -0,0 +1,14 @@
+/* Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+/* SPI interface for Chrome EC */
+
+#ifndef __CROS_EC_SPI_H
+#define __CROS_EC_SPI_H
+
+/* Initialize the SPI module ready for use */
+extern int spi_init(void);
+
+#endif /* __CROS_EC_SPI_H */