summaryrefslogtreecommitdiff
path: root/chip/mec1322/lfw/ec_lfw.h
blob: dd26fbd323c0c12668d7a29bd133587c91264237 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* 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
 *
 */

#include <stdnoreturn.h>

noreturn void lfw_main(void) __attribute__ ((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