blob: d8957791c9829332ec9aff688b01f7bea0f19968 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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.
*/
#ifndef __CROS_EC_INCLUDE_SPI_CONTROLLER_H
#define __CROS_EC_INCLUDE_SPI_CONTROLLER_H
#include "spi.h"
void configure_spi0_passthrough(int enable);
void set_spi_clock_mode(int port, enum spi_clock_mode mode);
/*
* Not defined in the hardware register spec, the RX and TX buffers share the
* same 128 bytes FIFO.
*/
#define SPI_BUF_SIZE 0x80
#endif
|