]> git.kernelconcepts.de Git - karo-tx-redboot.git/blob - packages/devs/serial/coldfire/mcf5272/v2_0/cdl/mcf5272_serial.cdl
Initial revision
[karo-tx-redboot.git] / packages / devs / serial / coldfire / mcf5272 / v2_0 / cdl / mcf5272_serial.cdl
1 # ====================================================================
2 #
3 #      ser_MCF5272_uart.cdl
4 #
5 #      eCos serial driver for MCF5272 UART
6 #
7 # ====================================================================
8 #####ECOSGPLCOPYRIGHTBEGIN####
9 ## -------------------------------------------
10 ## This file is part of eCos, the Embedded Configurable Operating System.
11 ## Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
12 ## Copyright (C) 2006 eCosCentric Ltd.
13 ##
14 ## eCos is free software; you can redistribute it and/or modify it under
15 ## the terms of the GNU General Public License as published by the Free
16 ## Software Foundation; either version 2 or (at your option) any later version.
17 ##
18 ## eCos is distributed in the hope that it will be useful, but WITHOUT ANY
19 ## WARRANTY; without even the implied warranty of MERCHANTABILITY or
20 ## FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
21 ## for more details.
22 ##
23 ## You should have received a copy of the GNU General Public License along
24 ## with eCos; if not, write to the Free Software Foundation, Inc.,
25 ## 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
26 ##
27 ## As a special exception, if other files instantiate templates or use macros
28 ## or inline functions from this file, or you compile this file and link it
29 ## with other works to produce a work based on this file, this file does not
30 ## by itself cause the resulting work to be covered by the GNU General Public
31 ## License. However the source code for this file must still be made available
32 ## in accordance with section (3) of the GNU General Public License.
33 ##
34 ## This exception does not invalidate any other reasons why a work based on
35 ## this file might be covered by the GNU General Public License.
36 ## -------------------------------------------
37 #####ECOSGPLCOPYRIGHTEND####
38 # ====================================================================
39
40 cdl_package CYGPKG_IO_SERIAL_COLDFIRE_MCF5272 {
41     display       "Serial driver for MCF5272 UART"
42
43     parent        CYGPKG_IO_SERIAL_DEVICES
44     active_if     CYGPKG_IO_SERIAL
45     requires      CYGPKG_ERROR
46     include_dir   cyg/io
47     description   "
48            This option enables the serial device drivers for the
49            ColdFire MCF5272."
50
51     compile       -library=libextras.a mcf5272_serial.c
52
53     cdl_component CYGPKG_IO_SERIAL_COLDFIRE_MCF5272_CHANNEL0 {
54         display       "MCF5272 UART serial port 0 driver"
55         flavor        bool
56         default_value 1
57
58         implements    CYGINT_IO_SERIAL_FLOW_CONTROL_HW
59         implements    CYGINT_IO_SERIAL_LINE_STATUS_HW
60
61         description   "This option includes the serial device driver
62             for the MCF5272 UART port 0."
63
64         cdl_option CYGDAT_IO_SERIAL_COLDFIRE_MCF5272_CHANNEL0_NAME {
65             display       "Device name for the MCF5272 UART serial port 0"
66             flavor        data
67             default_value {"\"/dev/ser0\""}
68             description   "
69                 This option specifies the name of serial device for the
70                 MCF5272 UART port 0."
71          }
72
73         cdl_option CYGNUM_IO_SERIAL_COLDFIRE_MCF5272_CHANNEL0_BAUD {
74             display       "Baud rate for the MCF5272 UART serial port 0"
75             flavor        data
76             legal_values  { 50 75 110 "134_5" 150 200 300 600 1200 1800 2400 3600
77                           4800 7200 9600 14400 19200 38400 57600 115200 230400
78             }
79             default_value 19200
80             description   "
81                 This option specifies the default baud rate (speed) for the
82                 MCF5272 UART port 0."
83         }
84
85         cdl_option CYGOPT_IO_SERIAL_COLDFIRE_MCF5272_CHANNEL0_AUTOBAUD {
86             display       "Enable automatic baud rate detection for the MCF5272 UART serial port 0."
87             flavor        bool
88             default_value 0
89             active_if     CYGNUM_IO_SERIAL_COLDFIRE_MCF5272_CHANNEL0_BUFSIZE > 0
90             description   "
91                 This option enables automatic baud rate detection for
92                 MCF5272 UART port 0. Sending a BREAK character on the
93                 line will start the detection. The first character following
94                 the BREAK should occupy an odd position in the character table
95                 (like \'a\'). This option requires interrupts to be enabled
96                 for the port."
97         }
98
99         cdl_option CYGNUM_IO_SERIAL_COLDFIRE_MCF5272_CHANNEL0_BUFSIZE {
100             display       "Buffer size for the MCF5272 UART serial port 0"
101             flavor        data
102             legal_values  0 to 8192
103             default_value 128
104             description   "
105                 This option specifies the size of the internal buffers used
106                 for the MCF5272 UART port 0. If the size specified is 0, the
107                 driver will not use interrupts."
108         }
109
110         cdl_option CYGNUM_IO_SERIAL_COLDFIRE_MCF5272_CHANNEL0_PRIORITY {
111             display       "Interrupt priority level for MCF5272 UART serial port 0"
112             flavor        data
113             legal_values  1 to 6
114             default_value 2
115             active_if     CYGNUM_IO_SERIAL_COLDFIRE_MCF5272_CHANNEL0_BUFSIZE > 0
116             description   "
117                 This option specifies the priority associated to interrupts
118                 coming from the MCF5272 UART port 0."
119         }
120     }
121
122     cdl_component CYGPKG_IO_SERIAL_COLDFIRE_MCF5272_CHANNEL1 {
123         display       "MCF5272 UART serial port 1 driver"
124         flavor        bool
125         default_value 0
126
127         implements    CYGINT_IO_SERIAL_FLOW_CONTROL_HW
128         implements    CYGINT_IO_SERIAL_LINE_STATUS_HW
129
130         description   "This option includes the serial device driver for the
131             MCF5272 UART port 1."
132
133         cdl_option CYGDAT_IO_SERIAL_COLDFIRE_MCF5272_CHANNEL1_NAME {
134             display       "Device name for the MCF5272 UART serial port 1"
135             flavor        data
136             default_value {"\"/dev/ser1\""}
137             description   "
138                 This option specifies the name of serial device for the
139                 MCF5272 UART port 1."
140          }
141
142         cdl_option CYGNUM_IO_SERIAL_COLDFIRE_MCF5272_CHANNEL1_BAUD {
143             display       "Baud rate for the MCF5272 UART serial port 1"
144             flavor        data
145             legal_values  { 50 75 110 "134_5" 150 200 300 600 1200 1800 2400 3600
146                           4800 7200 9600 14400 19200 38400 57600 115200 230400
147             }
148             default_value 19200
149             description   "
150                 This option specifies the default baud rate (speed) for the
151                 MCF5272 UART port 1."
152         }
153
154         cdl_option CYGOPT_IO_SERIAL_COLDFIRE_MCF5272_CHANNEL1_AUTOBAUD {
155             display       "Enable automatic baud rate detection for the MCF5272 UART serial port 1."
156             flavor        bool
157             default_value 0
158             active_if     CYGNUM_IO_SERIAL_COLDFIRE_MCF5272_CHANNEL1_BUFSIZE > 0
159             description   "
160                 This option enables automatic baud rate detection for
161                 MCF5272 UART port 1. Sending a BREAK character on the
162                 line will start the detection. The first character following
163                 the BREAK should occupy an odd position in the character table
164                 (like \'a\'). This option requires interrupts to be enabled
165                 for the port."
166         }
167
168         cdl_option CYGNUM_IO_SERIAL_COLDFIRE_MCF5272_CHANNEL1_BUFSIZE {
169             display       "Buffer size for the MCF5272 UART serial port 1"
170             flavor        data
171             legal_values  0 to 8192
172             default_value 128
173             description   "
174                 This option specifies the size of the internal buffers used
175                 for the MCF5272 UART port 1. If the size specified is 0, the
176                 driver will not use interrupts."
177         }
178
179         cdl_option CYGNUM_IO_SERIAL_COLDFIRE_MCF5272_CHANNEL1_PRIORITY {
180             display       "Interrupt priority level for MCF5272 UART serial port 1"
181             flavor        data
182             legal_values  1 to 6
183             default_value 2
184             active_if     CYGNUM_IO_SERIAL_COLDFIRE_MCF5272_CHANNEL1_BUFSIZE > 0
185             description   "
186                 This option specifies the priority associated to interrupts
187                 coming from the MCF5272 UART port 1."
188         }
189     }
190 }
191