From 0a6233e3acf598e09dd5d676c37883cbbf444130 Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Thu, 25 Nov 2021 05:21:17 +0100 Subject: spi display driver initial commit --- fw/fe310/eos/board.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'fw/fe310/eos/board.h') 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 */ -- cgit v1.2.3