summaryrefslogtreecommitdiff
path: root/chip/mec1322/lfw/ec_lfw.h
diff options
context:
space:
mode:
Diffstat (limited to 'chip/mec1322/lfw/ec_lfw.h')
-rw-r--r--chip/mec1322/lfw/ec_lfw.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/chip/mec1322/lfw/ec_lfw.h b/chip/mec1322/lfw/ec_lfw.h
new file mode 100644
index 0000000000..b7f9f6359f
--- /dev/null
+++ b/chip/mec1322/lfw/ec_lfw.h
@@ -0,0 +1,21 @@
+/* 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.
+ *
+ * MEC1322 SoC little FW
+ *
+ */
+
+void lfw_main(void) __attribute__ ((noreturn, naked));
+void fault_handler(void) __attribute__((naked));
+
+struct int_vector_t {
+ void *stack_ptr;
+ void *reset_vector;
+ void *nmi;
+ void *hard_fault;
+ void *bus_fault;
+ void *usage_fault;
+};
+
+#define SPI_CHUNK_SIZE 1024