diff options
Diffstat (limited to 'src/mts_fpga_reg.c')
-rw-r--r-- | src/mts_fpga_reg.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/mts_fpga_reg.c b/src/mts_fpga_reg.c index 0c3a922..f2ca298 100644 --- a/src/mts_fpga_reg.c +++ b/src/mts_fpga_reg.c @@ -120,6 +120,23 @@ int hw_check(mts_hw *mts) { strcpy(mts->creset, CRESET); return MTAC_SUCCESS; } + } else if (strstr(mts->dev_hw, "MTCDT3")) { + if (mts->path == 0) { + strcpy(mts->mtac_hw, MTCDT3_HW_VERSION_AP1); + strcpy(mts->spi_path, SPI_DEV_PATH_MTCDT3_AP1); + strcpy(mts->creset, MTCDT3_CRESET_AP1); + return MTAC_SUCCESS; + } else if (mts->path == 1) { + strcpy(mts->mtac_hw, MTCDT3_HW_VERSION_AP1); + strcpy(mts->spi_path, SPI_DEV_PATH_MTCDT3_AP1); + strcpy(mts->creset, MTCDT3_CRESET_AP1); + return MTAC_SUCCESS; + } else if (mts->path == 2) { + strcpy(mts->mtac_hw, MTCDT3_HW_VERSION_AP2); + strcpy(mts->spi_path, SPI_DEV_PATH_MTCDT3_AP2); + strcpy(mts->creset, MTCDT3_CRESET_AP2); + return MTAC_SUCCESS; + } } else if (strstr(mts->dev_hw, "MTCDT")) { if (mts->path == 0) { strcpy(mts->spi_path, SPI_DEV_PATH_MTCDT); |