LMS 2012
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
omapl_suart_board.h
Go to the documentation of this file.
1 /*
2  * linux/<file location within the kernel tree>
3  *
4  * Copyright (C) 2010 Texas Instruments Incorporated
5  * Author: Ganeshan N
6  *
7  * Based on <Give reference of old kernel file from which this file is derived from>
8  *
9  * This program is free software; you can redistribute it and/or modify it
10  * under the terms of the GNU General Public License as published by the
11  * Free Software Foundation version 2.
12  *
13  * This program is distributed "as is" WITHOUT ANY WARRANTY of any kind,
14  * whether express or implied; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * General Public License for more details.
17  */
18 
19 #ifndef _OMAPL_SUART_BOARD_H_
20 #define _OMAPL_SUART_BOARD_H_
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
26 #define PRU_SUART1_CONFIG_DUPLEX (PRU_SUART_HALF_TX | PRU_SUART_HALF_RX)
27 #define PRU_SUART1_CONFIG_RX_SER (PRU_SUART_SERIALIZER_1)
28 #define PRU_SUART1_CONFIG_TX_SER (PRU_SUART_SERIALIZER_3)
29 
30 #define PRU_SUART2_CONFIG_DUPLEX (PRU_SUART_HALF_TX | PRU_SUART_HALF_RX)
31 #define PRU_SUART2_CONFIG_RX_SER (PRU_SUART_SERIALIZER_2)
32 #define PRU_SUART2_CONFIG_TX_SER (PRU_SUART_SERIALIZER_4)
33 
34 
35 #define PRU_SUART3_CONFIG_DUPLEX (PRU_SUART_HALF_TX_DISABLED | PRU_SUART_HALF_RX_DISABLED)
36 #define PRU_SUART3_CONFIG_RX_SER (PRU_SUART_SERIALIZER_NONE)
37 #define PRU_SUART3_CONFIG_TX_SER (PRU_SUART_SERIALIZER_NONE)
38 
39 #define PRU_SUART4_CONFIG_DUPLEX (PRU_SUART_HALF_TX_DISABLED | PRU_SUART_HALF_RX_DISABLED)
40 #define PRU_SUART4_CONFIG_RX_SER (PRU_SUART_SERIALIZER_NONE)
41 #define PRU_SUART4_CONFIG_TX_SER (PRU_SUART_SERIALIZER_NONE)
42 
43 
44 #define PRU_SUART5_CONFIG_DUPLEX (PRU_SUART_HALF_TX_DISABLED | PRU_SUART_HALF_RX_DISABLED)
45 #define PRU_SUART5_CONFIG_RX_SER (PRU_SUART_SERIALIZER_NONE)
46 #define PRU_SUART5_CONFIG_TX_SER (PRU_SUART_SERIALIZER_NONE)
47 
48 #define PRU_SUART6_CONFIG_DUPLEX (PRU_SUART_HALF_TX_DISABLED | PRU_SUART_HALF_RX_DISABLED)
49 #define PRU_SUART6_CONFIG_RX_SER (PRU_SUART_SERIALIZER_NONE)
50 #define PRU_SUART6_CONFIG_TX_SER (PRU_SUART_SERIALIZER_NONE)
51 
52 #define PRU_SUART7_CONFIG_DUPLEX (PRU_SUART_HALF_TX_DISABLED | PRU_SUART_HALF_RX_DISABLED)
53 #define PRU_SUART7_CONFIG_RX_SER (PRU_SUART_SERIALIZER_NONE)
54 #define PRU_SUART7_CONFIG_TX_SER (PRU_SUART_SERIALIZER_NONE)
55 
56 #define PRU_SUART8_CONFIG_DUPLEX (PRU_SUART_HALF_TX_DISABLED | PRU_SUART_HALF_RX_DISABLED)
57 #define PRU_SUART8_CONFIG_RX_SER (PRU_SUART_SERIALIZER_NONE)
58 #define PRU_SUART8_CONFIG_TX_SER (PRU_SUART_SERIALIZER_NONE)
59 
60 /*
61 #define PRU_SUART1_CONFIG_DUPLEX (PRU_SUART_HALF_TX | PRU_SUART_HALF_RX_DISABLED)
62 #define PRU_SUART1_CONFIG_RX_SER (PRU_SUART_SERIALIZER_NONE)
63 #define PRU_SUART1_CONFIG_TX_SER (PRU_SUART_SERIALIZER_0)
64 
65 #define PRU_SUART2_CONFIG_DUPLEX (PRU_SUART_HALF_TX | PRU_SUART_HALF_RX)
66 #if !(defined CONFIG_OMAPL_SUART_MCASP) || (CONFIG_OMAPL_SUART_MCASP == 0)
67 #define PRU_SUART2_CONFIG_RX_SER (PRU_SUART_SERIALIZER_7)
68 #define PRU_SUART2_CONFIG_TX_SER (PRU_SUART_SERIALIZER_8)
69 #elif (CONFIG_OMAPL_SUART_MCASP == 1)
70 #define PRU_SUART2_CONFIG_RX_SER (PRU_SUART_SERIALIZER_10)
71 #define PRU_SUART2_CONFIG_TX_SER (PRU_SUART_SERIALIZER_11)
72 #elif (CONFIG_OMAPL_SUART_MCASP == 2)
73 #define PRU_SUART2_CONFIG_RX_SER (PRU_SUART_SERIALIZER_NONE)
74 #define PRU_SUART2_CONFIG_TX_SER (PRU_SUART_SERIALIZER_NONE)
75 #endif
76 
77 #define PRU_SUART3_CONFIG_DUPLEX (PRU_SUART_HALF_TX | PRU_SUART_HALF_RX)
78 #if !(defined CONFIG_OMAPL_SUART_MCASP) || (CONFIG_OMAPL_SUART_MCASP == 0)
79 #define PRU_SUART3_CONFIG_RX_SER (PRU_SUART_SERIALIZER_9)
80 #define PRU_SUART3_CONFIG_TX_SER (PRU_SUART_SERIALIZER_10)
81 #elif (CONFIG_OMAPL_SUART_MCASP == 1)
82 #define PRU_SUART3_CONFIG_RX_SER (PRU_SUART_SERIALIZER_6)
83 #define PRU_SUART3_CONFIG_TX_SER (PRU_SUART_SERIALIZER_7)
84 #elif (CONFIG_OMAPL_SUART_MCASP == 2)
85 #define PRU_SUART3_CONFIG_RX_SER (PRU_SUART_SERIALIZER_NONE)
86 #define PRU_SUART3_CONFIG_TX_SER (PRU_SUART_SERIALIZER_NONE)
87 #endif
88 
89 #define PRU_SUART4_CONFIG_DUPLEX (PRU_SUART_HALF_TX | PRU_SUART_HALF_RX)
90 #if !(defined CONFIG_OMAPL_SUART_MCASP) || (CONFIG_OMAPL_SUART_MCASP == 0)
91 #define PRU_SUART4_CONFIG_RX_SER (PRU_SUART_SERIALIZER_13)
92 #define PRU_SUART4_CONFIG_TX_SER (PRU_SUART_SERIALIZER_14)
93 #elif (CONFIG_OMAPL_SUART_MCASP == 1)
94 #define PRU_SUART4_CONFIG_RX_SER (PRU_SUART_SERIALIZER_8)
95 #define PRU_SUART4_CONFIG_TX_SER (PRU_SUART_SERIALIZER_9)
96 #elif (CONFIG_OMAPL_SUART_MCASP == 2)
97 #define PRU_SUART4_CONFIG_RX_SER (PRU_SUART_SERIALIZER_NONE)
98 #define PRU_SUART4_CONFIG_TX_SER (PRU_SUART_SERIALIZER_NONE)
99 #endif
100 
101 #define PRU_SUART5_CONFIG_DUPLEX (PRU_SUART_HALF_TX_DISABLED | PRU_SUART_HALF_RX_DISABLED)
102 #define PRU_SUART5_CONFIG_RX_SER (PRU_SUART_SERIALIZER_NONE)
103 #define PRU_SUART5_CONFIG_TX_SER (PRU_SUART_SERIALIZER_NONE)
104 
105 #define PRU_SUART6_CONFIG_DUPLEX (PRU_SUART_HALF_TX_DISABLED | PRU_SUART_HALF_RX_DISABLED)
106 #define PRU_SUART6_CONFIG_RX_SER (PRU_SUART_SERIALIZER_NONE)
107 #define PRU_SUART6_CONFIG_TX_SER (PRU_SUART_SERIALIZER_NONE)
108 
109 #define PRU_SUART7_CONFIG_DUPLEX (PRU_SUART_HALF_TX_DISABLED | PRU_SUART_HALF_RX_DISABLED)
110 #define PRU_SUART7_CONFIG_RX_SER (PRU_SUART_SERIALIZER_NONE)
111 #define PRU_SUART7_CONFIG_TX_SER (PRU_SUART_SERIALIZER_NONE)
112 
113 #define PRU_SUART8_CONFIG_DUPLEX (PRU_SUART_HALF_TX_DISABLED | PRU_SUART_HALF_RX_DISABLED)
114 #define PRU_SUART8_CONFIG_RX_SER (PRU_SUART_SERIALIZER_NONE)
115 #define PRU_SUART8_CONFIG_TX_SER (PRU_SUART_SERIALIZER_NONE)*/
116 
117 #ifdef __cplusplus
118 } /* End of extern C */
119 #endif /* #ifdef __cplusplus */
120 #endif /* End of _<MOD>_FILENAME_API_H_ */