summaryrefslogtreecommitdiff
path: root/fw/fe310/eos/soc/spi_cfg.h
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2022-08-09 22:23:08 +0200
committerUros Majstorovic <majstor@majstor.org>2022-08-09 22:23:08 +0200
commit3f913efda03fd840cd526ef72e6f397c7da61bd7 (patch)
tree08f62c93e0e0660fdb7beba32276ff1ceb7a8a3c /fw/fe310/eos/soc/spi_cfg.h
parent810dde21ee65653c15606917b19566cfbaaf165e (diff)
code layout
Diffstat (limited to 'fw/fe310/eos/soc/spi_cfg.h')
-rw-r--r--fw/fe310/eos/soc/spi_cfg.h37
1 files changed, 0 insertions, 37 deletions
diff --git a/fw/fe310/eos/soc/spi_cfg.h b/fw/fe310/eos/soc/spi_cfg.h
deleted file mode 100644
index 84ab8bb..0000000
--- a/fw/fe310/eos/soc/spi_cfg.h
+++ /dev/null
@@ -1,37 +0,0 @@
-#include <stdint.h>
-
-#define EOS_SPI_MAX_DEV 4
-
-typedef struct {
- uint16_t div;
- uint8_t csid;
- uint8_t cspin;
- unsigned char evt;
-} SPIConfig;
-
-static const SPIConfig spi_cfg[EOS_SPI_MAX_DEV] = {
- { // DEV_NET
- .div = SPI_DIV_NET,
- .csid = SPI_CSID_NET,
- .cspin = SPI_CSPIN_NET,
- .evt = 0, // Not SPI event
- },
- { // DEV_EVE
- .div = SPI_DIV_EVE,
- .csid = SPI_CSID_EVE,
- .cspin = SPI_CSPIN_EVE,
- .evt = 0,
- },
- { // DEV_SDC
- .div = SPI_DIV_SDC,
- .csid = SPI_CSID_SDC,
- .cspin = SPI_CSPIN_SDC,
- .evt = EOS_SPI_EVT_SDC,
- },
- { // DEV_CAM
- .div = SPI_DIV_CAM,
- .csid = SPI_CSID_CAM,
- .cspin = SPI_CSPIN_CAM,
- .evt = EOS_SPI_EVT_CAM,
- },
-};