diff options
Diffstat (limited to 'fw/fe310/eos/board.h')
-rw-r--r-- | fw/fe310/eos/board.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/fw/fe310/eos/board.h b/fw/fe310/eos/board.h new file mode 100644 index 0000000..98741da --- /dev/null +++ b/fw/fe310/eos/board.h @@ -0,0 +1,34 @@ +#define SPI_DIV_NET 16 +#define SPI_DIV_EVE 16 +#define SPI_DIV_SDC 16 +#define SPI_DIV_CAM 16 + +#define SPI_CSID_NET 3 +#define SPI_CSID_EVE 2 +#define SPI_CSID_SDC 0 +#define SPI_CSID_CAM SPI_CSID_NONE + +#define SPI_CSPIN_NET SPI_CSPIN_NONE +#define SPI_CSPIN_EVE SPI_CSPIN_NONE +#define SPI_CSPIN_SDC SPI_CSPIN_NONE +#define SPI_CSPIN_CAM 23 + +#define NET_PIN_RTS 20 +#define NET_PIN_CTS 22 + +#define I2S_PIN_CK 1 /* PWM 0.1 */ +#define I2S_PIN_CK_SW 21 /* PWM 1.2 */ +#define I2S_PIN_CK_SR 18 +#define I2S_PIN_WS_MIC 19 /* PWM 1.1 */ +#define I2S_PIN_WS_SPK 11 /* PWM 2.1 */ +#define I2S_PIN_SD_IN 13 +#define I2S_PIN_SD_OUT 12 + +#define I2S_IRQ_WS_ID (INT_PWM2_BASE + 0) +#define I2S_IRQ_SD_ID (INT_PWM2_BASE + 3) + +#define I2S_CTRL_ADDR_CK PWM0_CTRL_ADDR +#define I2S_CTRL_ADDR_WS_MIC PWM1_CTRL_ADDR +#define I2S_CTRL_ADDR_WS_SPK PWM2_CTRL_ADDR + +#define I2S_IDLE_CYCLES 8 |