summaryrefslogtreecommitdiff
path: root/fw/fe310/eos/board.h
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2021-11-25 05:21:17 +0100
committerUros Majstorovic <majstor@majstor.org>2021-11-25 05:21:17 +0100
commit0a6233e3acf598e09dd5d676c37883cbbf444130 (patch)
tree4a6f3ec5024b8f2389086de1356c8e7333854c38 /fw/fe310/eos/board.h
parent6a31936e80ae2743376dcbf9d39cd92461c4deca (diff)
spi display driver initial commit
Diffstat (limited to 'fw/fe310/eos/board.h')
-rw-r--r--fw/fe310/eos/board.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/fw/fe310/eos/board.h b/fw/fe310/eos/board.h
index b92d500..79465b0 100644
--- a/fw/fe310/eos/board.h
+++ b/fw/fe310/eos/board.h
@@ -8,16 +8,18 @@
#define SPI_CSID_SDC SPI_CSID_NONE
#define SPI_CSID_CAM 2
-#define SPI_CSPIN_NET SPI_CSPIN_NONE
-#define SPI_CSPIN_EVE SPI_CSPIN_NONE
-#define SPI_CSPIN_SDC 0
-#define SPI_CSPIN_CAM SPI_CSPIN_NONE
+#define SPI_IOF_MASK ((1 << IOF_SPI1_SCK) | (1 << IOF_SPI1_MOSI) | (1 << IOF_SPI1_MISO) | (1 << IOF_SPI1_SS0) | (1 << IOF_SPI1_SS2) | (1 << IOF_SPI1_SS3))
-#define SPI_IOF_MASK_CS (((uint32_t)1 << IOF_SPI1_SS0) | ((uint32_t)1 << IOF_SPI1_SS2) | ((uint32_t)1 << IOF_SPI1_SS3))
+#define SPI_CSPIN_NET 2
+#define SPI_CSPIN_EVE 10
+#define SPI_CSPIN_SDC 0
+#define SPI_CSPIN_CAM 9
#define NET_PIN_RTS 20
#define NET_PIN_CTS 22
+#define DISP_PIN_CS 11
+
#define EVE_PIN_INTR 23
#define I2S_PIN_CK 1 /* PWM 0.1 */