Go to the documentation of this file.
21 #ifndef _TI_3410_5052_H_
22 #define _TI_3410_5052_H_
25 #define TI_BOOT_CONFIG 1
26 #define TI_ACTIVE_CONFIG 2
29 #define TI_VENDOR_ID 0x0451
30 #define IBM_VENDOR_ID 0x04b3
31 #define TI_3410_PRODUCT_ID 0x3410
32 #define IBM_4543_PRODUCT_ID 0x4543
33 #define IBM_454B_PRODUCT_ID 0x454b
34 #define IBM_454C_PRODUCT_ID 0x454c
35 #define TI_3410_EZ430_ID 0xF430
36 #define TI_5052_BOOT_PRODUCT_ID 0x5052
37 #define TI_5152_BOOT_PRODUCT_ID 0x5152
38 #define TI_5052_EEPROM_PRODUCT_ID 0x505A
39 #define TI_5052_FIRMWARE_PRODUCT_ID 0x505F
40 #define FRI2_PRODUCT_ID 0x5053
43 #define MTS_VENDOR_ID 0x06E0
44 #define MTS_GSM_NO_FW_PRODUCT_ID 0xF108
45 #define MTS_CDMA_NO_FW_PRODUCT_ID 0xF109
46 #define MTS_CDMA_PRODUCT_ID 0xF110
47 #define MTS_GSM_PRODUCT_ID 0xF111
48 #define MTS_EDGE_PRODUCT_ID 0xF112
49 #define MTS_MT9234MU_PRODUCT_ID 0xF114
50 #define MTS_MT9234ZBA_PRODUCT_ID 0xF115
51 #define MTS_MT9234ZBAOLD_PRODUCT_ID 0x0319
54 #define ABBOTT_VENDOR_ID 0x1a61
55 #define ABBOTT_PRODUCT_ID 0x3410
58 #define TI_GET_VERSION 0x01
59 #define TI_GET_PORT_STATUS 0x02
60 #define TI_GET_PORT_DEV_INFO 0x03
61 #define TI_GET_CONFIG 0x04
62 #define TI_SET_CONFIG 0x05
63 #define TI_OPEN_PORT 0x06
64 #define TI_CLOSE_PORT 0x07
65 #define TI_START_PORT 0x08
66 #define TI_STOP_PORT 0x09
67 #define TI_TEST_PORT 0x0A
68 #define TI_PURGE_PORT 0x0B
69 #define TI_RESET_EXT_DEVICE 0x0C
70 #define TI_WRITE_DATA 0x80
71 #define TI_READ_DATA 0x81
72 #define TI_REQ_TYPE_CLASS 0x82
75 #define TI_I2C_PORT 0x01
76 #define TI_IEEE1284_PORT 0x02
77 #define TI_UART1_PORT 0x03
78 #define TI_UART2_PORT 0x04
79 #define TI_RAM_PORT 0x05
82 #define TI_MSR_DELTA_CTS 0x01
83 #define TI_MSR_DELTA_DSR 0x02
84 #define TI_MSR_DELTA_RI 0x04
85 #define TI_MSR_DELTA_CD 0x08
86 #define TI_MSR_CTS 0x10
87 #define TI_MSR_DSR 0x20
88 #define TI_MSR_RI 0x40
89 #define TI_MSR_CD 0x80
90 #define TI_MSR_DELTA_MASK 0x0F
91 #define TI_MSR_MASK 0xF0
94 #define TI_LSR_OVERRUN_ERROR 0x01
95 #define TI_LSR_PARITY_ERROR 0x02
96 #define TI_LSR_FRAMING_ERROR 0x04
97 #define TI_LSR_BREAK 0x08
98 #define TI_LSR_ERROR 0x0F
99 #define TI_LSR_RX_FULL 0x10
100 #define TI_LSR_TX_EMPTY 0x20
103 #define TI_LCR_BREAK 0x40
106 #define TI_MCR_LOOP 0x04
107 #define TI_MCR_DTR 0x10
108 #define TI_MCR_RTS 0x20
111 #define TI_UART_ENABLE_RTS_IN 0x0001
112 #define TI_UART_DISABLE_RTS 0x0002
113 #define TI_UART_ENABLE_PARITY_CHECKING 0x0008
114 #define TI_UART_ENABLE_DSR_OUT 0x0010
115 #define TI_UART_ENABLE_CTS_OUT 0x0020
116 #define TI_UART_ENABLE_X_OUT 0x0040
117 #define TI_UART_ENABLE_XA_OUT 0x0080
118 #define TI_UART_ENABLE_X_IN 0x0100
119 #define TI_UART_ENABLE_DTR_IN 0x0800
120 #define TI_UART_DISABLE_DTR 0x1000
121 #define TI_UART_ENABLE_MS_INTS 0x2000
122 #define TI_UART_ENABLE_AUTO_START_DMA 0x4000
125 #define TI_UART_NO_PARITY 0x00
126 #define TI_UART_ODD_PARITY 0x01
127 #define TI_UART_EVEN_PARITY 0x02
128 #define TI_UART_MARK_PARITY 0x03
129 #define TI_UART_SPACE_PARITY 0x04
132 #define TI_UART_1_STOP_BITS 0x00
133 #define TI_UART_1_5_STOP_BITS 0x01
134 #define TI_UART_2_STOP_BITS 0x02
137 #define TI_UART_5_DATA_BITS 0x00
138 #define TI_UART_6_DATA_BITS 0x01
139 #define TI_UART_7_DATA_BITS 0x02
140 #define TI_UART_8_DATA_BITS 0x03
143 #define TI_UART_232 0x00
144 #define TI_UART_485_RECEIVER_DISABLED 0x01
145 #define TI_UART_485_RECEIVER_ENABLED 0x02
148 #define TI_PIPE_MODE_CONTINOUS 0x01
149 #define TI_PIPE_MODE_MASK 0x03
150 #define TI_PIPE_TIMEOUT_MASK 0x7C
151 #define TI_PIPE_TIMEOUT_ENABLE 0x80
175 #define TI_PURGE_OUTPUT 0x00
176 #define TI_PURGE_INPUT 0x80
179 #define TI_RW_DATA_ADDR_SFR 0x10
180 #define TI_RW_DATA_ADDR_IDATA 0x20
181 #define TI_RW_DATA_ADDR_XDATA 0x30
182 #define TI_RW_DATA_ADDR_CODE 0x40
183 #define TI_RW_DATA_ADDR_GPIO 0x50
184 #define TI_RW_DATA_ADDR_I2C 0x60
185 #define TI_RW_DATA_ADDR_FLASH 0x70
186 #define TI_RW_DATA_ADDR_DSP 0x80
188 #define TI_RW_DATA_UNSPECIFIED 0x00
189 #define TI_RW_DATA_BYTE 0x01
190 #define TI_RW_DATA_WORD 0x02
191 #define TI_RW_DATA_DOUBLE_WORD 0x04
224 #define TI_GET_PORT_FROM_CODE(c) (((c) >> 4) - 3)
225 #define TI_GET_FUNC_FROM_CODE(c) ((c) & 0x0f)
226 #define TI_CODE_HARDWARE_ERROR 0xFF
227 #define TI_CODE_DATA_ERROR 0x03
228 #define TI_CODE_MODEM_STATUS 0x04
231 #define TI_DOWNLOAD_MAX_PACKET_SIZE 64
240 #define TI_UART1_BASE_ADDR 0xFFA0
241 #define TI_UART2_BASE_ADDR 0xFFB0
242 #define TI_UART_OFFSET_LCR 0x0002
243 #define TI_UART_OFFSET_MCR 0x0004