summaryrefslogtreecommitdiff
path: root/io-module/mts_io_module.h
blob: 29b6e817007cf1fd12413b8e283704a235f5ecf0 (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
#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.4.3"
#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"
#define HW_VERSION_MTCDT_0_1			"MTCDT-0.1"
#define HW_VERSION_MTCDTIP_0_0			"MTCDTIP-0.0"
#define HW_VERSION_MTCDTIPHP_0_0		"MTCDTIPHP-0.0"
#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"
#define HW_VERSION_MTCAP_0_3			"MTCAP-0.3"
#define HW_VERSION_MTHS_0_0			"MTHS-0.0"
#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"
#define HW_VERSION_MTCPM_0_0         "MTCPM-0.1"

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,
	MTCDTIPHP_0_0,
	MTCAP_0_0,
	MTCAP_0_1,
	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 */