summaryrefslogtreecommitdiff
path: root/io-module/mts_io_module.h
blob: 301b8534a54dac1e690758f259c7ca09e11c60cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
#ifndef __MTS_IO_MODULE_H
#define __MTS_IO_MODULE_H

/* Specific to mts-io module, and not used by the
 * MTAC cards.
 */

#define DRIVER_VERSION  "v4.5.0"
#define DRIVER_AUTHOR   "Multitech Systems"
#define DRIVER_DESC "MTS-IO Controller"
#define DRIVER_NAME "mts-io"
#define DEBUG		0

/* Atmel AT91 Platforms */
#define PRODUCT_ID_MTCDP_E1_DK			"MTCDP-E1-DK"
#define PRODUCT_ID_MT100EOCG			"MT100EOCG"
#define PRODUCT_ID_MTR				"MTR"
#define PRODUCT_ID_MTCDT			"MTCDT"
#define PRODUCT_ID_MTCAP                        "MTCAP"
#define PRODUCT_ID_MTCDTIP                      "MTCDTIP"
#define PRODUCT_ID_MTCDTIPHP                    "MTCDTIPHP"
#define PRODUCT_ID_MTHS			        "MTHS"

#define HW_VERSION_MTCBA2_2_0			"MTCBA2-2.0"
#define HW_VERSION_MTCDP_0_0			"MTCDP-0.0"
#define HW_VERSION_MTCDP_1_0			"MTCDP-1.0"
#define HW_VERSION_MT100EOCG_0_0		"MT100EOCG-0.0"
#define HW_VERSION_MTR_0_0			"MTR-0.0"
#define HW_VERSION_MTR_0_1			"MTR-0.1"
#define HW_VERSION_MTRV1_0_0			"MTRV1-0.0"
#define HW_VERSION_MTRV1_0_1			"MTRV1-0.1"
#define HW_VERSION_MTRV1_0_2			"MTRV1-0.2"  // Cat M
#define HW_VERSION_MTRV1_0_3                    "MTRV1-0.3"  // MTR-MTQ
#define HW_VERSION_MTCDT_0_0			"MTCDT-0.0"  // No GPS or WiFi Capability
#define HW_VERSION_MTCDT_0_1			"MTCDT-0.1"  // Conduit refresh with GPS and WiFi possible
#define HW_VERSION_MTCDTIP_0_0			"MTCDTIP-0.0"
#define HW_VERSION_MTCDTIPHP_0_0		"MTCDTIPHP-0.0" // Also known as LoRa 2.1
#define HW_VERSION_MTCAP_0_0			"MTCAP-0.0"
#define HW_VERSION_MTCAP_0_1			"MTCAP-0.1"
#define HW_VERSION_MTCAP_0_2			"MTCAP-0.2"  // MTCAP 2 with POE
#define HW_VERSION_MTCAP_0_3			"MTCAP-0.3"  // MTCDTIP2 with super-cap 
#define HW_VERSION_MTHS_0_0			"MTHS-0.0"   // Never released
#define HW_VERSION_MTHS_0_1			"MTHS-0.1"

/* TI OMAP Platforms */
#define PRODUCT_ID_MTCPM             "MTCPM"

#define HW_VERSION_MTCPM_DASH        "MTCPM-"
#define HW_VERSION_MTCPM_0_0         "MTCPM-0.0"  // Lora-16 CPU
#define HW_VERSION_MTCPM_0_1         "MTCPM-0.1"  // MTCDT3AC CPU, GPS on CDC ACM driver

enum {
	MTHWUNKNOWN,
	MTCDP_E1_DK_0_0,
	MTCDP_E1_DK_1_0,
	MT100EOCG_0_0,
	MTR_0_0,
	MTR_0_1,
	MTRV1_0_0,
	MTRV1_0_1,
	MTRV1_0_2,
	MTRV1_0_3,
	MTCDT_0_0,
	MTCDT_0_1,
	MTCDTIP_0_0,
	MTCDTIPHP_0_0,
	MTCAP_0_0,
	MTCAP_0_1,
	MTCAP_0_2,
	MTCAP_0_3,
	MTHS_0_0,
	MTHS_0_1,
	MTCPM_0_0,
	MTCPM_0_1,
};

enum {
	LED_OFF,
	LED_ON,
	LED_FLASHING,
};

enum {
	RADIO_UNKNOWN,
	RADIO_LEU1,  // LE910-EUG
	RADIO_LEU3,  // LE910-EU1
	RADIO_LNA3,  // LE910-NA1
};

extern struct mutex mts_io_mutex;


#endif /* __MTS_IO_MODULE_H */