summaryrefslogtreecommitdiff
path: root/chip/g
diff options
context:
space:
mode:
authorNadim Taha <ntaha@google.com>2016-05-30 18:33:24 -0700
committerNadim Taha <ntaha@chromium.org>2016-05-31 22:16:42 +0000
commit60259c4d7c3d97a7f6ed08df0b860e6097c0122f (patch)
treeac6e8e61974a649ff0e86766faf6419fedc57634 /chip/g
parent85120f5beed0bd78ca6243207de8697419a844b5 (diff)
downloadchrome-ec-60259c4d7c3d97a7f6ed08df0b860e6097c0122f.tar.gz
Cr50: Export the chip-specific SPI master functions
This change is motivated by an internal use case. BRANCH=none BUG=none TEST=make buildall -j Successfully used the exported functions on Cr50. Change-Id: I5a54b4ea407866c7d7a4bd075d7773ac81e00930 Signed-off-by: Nadim Taha <ntaha@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/348215 Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Diffstat (limited to 'chip/g')
-rw-r--r--chip/g/spi_master.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/chip/g/spi_master.h b/chip/g/spi_master.h
new file mode 100644
index 0000000000..42441886f8
--- /dev/null
+++ b/chip/g/spi_master.h
@@ -0,0 +1,15 @@
+/*
+ * Copyright 2015 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.
+ */
+
+#ifndef __CROS_EC_INCLUDE_SPI_MASTER_H
+#define __CROS_EC_INCLUDE_SPI_MASTER_H
+
+#include "spi.h"
+
+void configure_spi0_passthrough(int enable);
+void set_spi_clock_mode(int port, enum spi_clock_mode mode);
+
+#endif