coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
spi.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-only */
2
3
#ifndef MTK_MT8195_SPI_H
4
#define MTK_MT8195_SPI_H
5
6
#include <
soc/spi_common.h
>
7
8
#define SPI_BUS_NUMBER 6
9
10
#define GET_SCK_REG(x) x->spi_cfg2_reg
11
12
DEFINE_BITFIELD
(SPI_CFG_CS_HOLD, 15, 0)
13
DEFINE_BITFIELD
(SPI_CFG_CS_SETUP, 31, 16)
14
15
DEFINE_BITFIELD
(SPI_CFG_SCK_LOW, 15, 0)
16
DEFINE_BITFIELD
(SPI_CFG_SCK_HIGH, 31, 16)
17
18
DEFINE_BITFIELD
(SPI_CFG1_CS_IDLE, 7, 0)
19
DEFINE_BITFIELD
(SPI_CFG1_PACKET_LOOP, 15, 8)
20
DEFINE_BITFIELD
(SPI_CFG1_PACKET_LENGTH, 28, 16)
21
DEFINE_BITFIELD
(SPI_CFG1_TICK_DLY, 31, 29)
22
23
#endif
DEFINE_BITFIELD
#define DEFINE_BITFIELD(name, high_bit, low_bit)
Definition:
mmio.h:124
spi_common.h
src
soc
mediatek
mt8195
include
soc
spi.h
Generated by
1.9.1