summaryrefslogtreecommitdiff
path: root/src/mts_fpga_reg.h
diff options
context:
space:
mode:
authorHarsh Sharma <harsh.sharma@multitech.com>2019-10-25 11:10:37 -0500
committerHarsh Sharma <harsh.sharma@multitech.com>2019-10-25 11:10:37 -0500
commitf7c611e12ab924475c1f6c3b81a915e516e04186 (patch)
tree6876476e5599c1e82b01f699f38f9e3c9a894fc5 /src/mts_fpga_reg.h
parent0fc3e8fceb3adc4210c3c438b7bd177f0fa98284 (diff)
downloadmts-id-eeprom-f7c611e12ab924475c1f6c3b81a915e516e04186.tar.gz
mts-id-eeprom-f7c611e12ab924475c1f6c3b81a915e516e04186.tar.bz2
mts-id-eeprom-f7c611e12ab924475c1f6c3b81a915e516e04186.zip
added ap port config and fpga flash requirements for mtcdt3
Diffstat (limited to 'src/mts_fpga_reg.h')
-rw-r--r--src/mts_fpga_reg.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mts_fpga_reg.h b/src/mts_fpga_reg.h
index 8efc191..7803802 100644
--- a/src/mts_fpga_reg.h
+++ b/src/mts_fpga_reg.h
@@ -35,10 +35,14 @@ typedef struct mts {
#define SPI_DEV_PATH_AP2 "/dev/spidev32765.2"
#define SPI_DEV_PATH_MTCAP "/dev/spidev0.1"
#define SPI_DEV_PATH_MTCDT "/dev/spidev0.0"
+#define SPI_DEV_PATH_MTCDT3_AP1 "/dev/spidev0.0"
+#define SPI_DEV_PATH_MTCDT3_AP2 "/dev/spidev1.0"
#define MTCDT "MTAC-LORA-1.5"
+#define MTCDT3 "MTCDT3B-0.0"
#define MTCAP "MTCAP-LORA-1.5"
#define HW_FILE "/sys/devices/platform/mts-io/hw-version"
#define MTCDT_DEFAULT_FILE "/usr/lib/mts-flash-binaries/mtcdt-fpga-v31.hex"
+#define MTCDT3_DEFAULT_FILE "/usr/lib/mts-flash-binaries/mtcdt3-fpga-v35.hex"
#define MTCAP_DEFAULT_FILE "/usr/lib/mts-flash-binaries/mtcap-fpga-v31.hex"
#define CRESET "/sys/devices/platform/mts-io/lora/creset"
#define CRESET_AP1 "/sys/devices/platform/mts-io/ap1/creset"
@@ -46,6 +50,11 @@ typedef struct mts {
#define MTAC_HW_VERSION "/sys/devices/platform/mts-io/lora/hw-version"
#define MTAC_HW_VERSION_AP1 "/sys/devices/platform/mts-io/ap1/hw-version"
#define MTAC_HW_VERSION_AP2 "/sys/devices/platform/mts-io/ap2/hw-version"
+#define MTCDT3_HW_VERSION_AP1 "/sys/devices/platform/mts-io/lora/hw-version"
+#define MTCDT3_HW_VERSION_AP2 "/sys/devices/platform/mts-io/lora-2/hw-version"
+#define MTCDT3_CRESET_AP1 "/sys/devices/platform/mts-io/lora/creset"
+#define MTCDT3_CRESET_AP2 "/sys/devices/platform/mts-io/lora-2/creset"
+
/* -------------------------------------------------------------------------- */
/* --- PUBLIC FUNCTIONS PROTOTYPES ------------------------------------------ */