summaryrefslogtreecommitdiff
path: root/code/fe310/eos/spi_def.h
blob: 7c7f817b444028e7c8c0336c4de191b1083624e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#define SPI_MODE0               0x00
#define SPI_MODE1               0x01
#define SPI_MODE2               0x02
#define SPI_MODE3               0x03

/* DO NOT TOUCH THEESE */
#define SPI_SIZE_CHUNK          4
#define SPI_SIZE_WM             2

#define SPI_FLAG_XCHG           0x10
#define SPI_FLAG_CS             0x20

#define SPI_DIV_NET             16
#define SPI_DIV_DISP            16
#define SPI_DIV_CARD            16
#define SPI_DIV_CAM             16


#define SPI_CS_IDX_NET          3
#define SPI_CS_IDX_DISP         2
#define SPI_CS_IDX_CARD         0
#define SPI_CS_IDX_NONE         1

#define SPI_CS_PIN_CAM          23