From 71030319ec40c3fb299733d3abd4dcede28f1386 Mon Sep 17 00:00:00 2001 From: David Hendricks Date: Sat, 7 Apr 2012 21:46:06 -0700 Subject: 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 --- include/spi.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 include/spi.h (limited to 'include') 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 */ -- cgit v1.2.1