summaryrefslogtreecommitdiff
path: root/code/fe310/eos/spi_def.h
diff options
context:
space:
mode:
Diffstat (limited to 'code/fe310/eos/spi_def.h')
-rw-r--r--code/fe310/eos/spi_def.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/code/fe310/eos/spi_def.h b/code/fe310/eos/spi_def.h
index 0c90b6d..7c7f817 100644
--- a/code/fe310/eos/spi_def.h
+++ b/code/fe310/eos/spi_def.h
@@ -7,3 +7,18 @@
#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