1 # ====================================================================
5 # eCos serial driver for MCF5272 UART
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.
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.
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
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.
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.
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 # ====================================================================
40 cdl_package CYGPKG_IO_SERIAL_COLDFIRE_MCF5272 {
41 display "Serial driver for MCF5272 UART"
43 parent CYGPKG_IO_SERIAL_DEVICES
44 active_if CYGPKG_IO_SERIAL
48 This option enables the serial device drivers for the
51 compile -library=libextras.a mcf5272_serial.c
53 cdl_component CYGPKG_IO_SERIAL_COLDFIRE_MCF5272_CHANNEL0 {
54 display "MCF5272 UART serial port 0 driver"
58 implements CYGINT_IO_SERIAL_FLOW_CONTROL_HW
59 implements CYGINT_IO_SERIAL_LINE_STATUS_HW
61 description "This option includes the serial device driver
62 for the MCF5272 UART port 0."
64 cdl_option CYGDAT_IO_SERIAL_COLDFIRE_MCF5272_CHANNEL0_NAME {
65 display "Device name for the MCF5272 UART serial port 0"
67 default_value {"\"/dev/ser0\""}
69 This option specifies the name of serial device for the
73 cdl_option CYGNUM_IO_SERIAL_COLDFIRE_MCF5272_CHANNEL0_BAUD {
74 display "Baud rate for the MCF5272 UART serial port 0"
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
81 This option specifies the default baud rate (speed) for the
85 cdl_option CYGOPT_IO_SERIAL_COLDFIRE_MCF5272_CHANNEL0_AUTOBAUD {
86 display "Enable automatic baud rate detection for the MCF5272 UART serial port 0."
89 active_if CYGNUM_IO_SERIAL_COLDFIRE_MCF5272_CHANNEL0_BUFSIZE > 0
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
99 cdl_option CYGNUM_IO_SERIAL_COLDFIRE_MCF5272_CHANNEL0_BUFSIZE {
100 display "Buffer size for the MCF5272 UART serial port 0"
102 legal_values 0 to 8192
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."
110 cdl_option CYGNUM_IO_SERIAL_COLDFIRE_MCF5272_CHANNEL0_PRIORITY {
111 display "Interrupt priority level for MCF5272 UART serial port 0"
115 active_if CYGNUM_IO_SERIAL_COLDFIRE_MCF5272_CHANNEL0_BUFSIZE > 0
117 This option specifies the priority associated to interrupts
118 coming from the MCF5272 UART port 0."
122 cdl_component CYGPKG_IO_SERIAL_COLDFIRE_MCF5272_CHANNEL1 {
123 display "MCF5272 UART serial port 1 driver"
127 implements CYGINT_IO_SERIAL_FLOW_CONTROL_HW
128 implements CYGINT_IO_SERIAL_LINE_STATUS_HW
130 description "This option includes the serial device driver for the
131 MCF5272 UART port 1."
133 cdl_option CYGDAT_IO_SERIAL_COLDFIRE_MCF5272_CHANNEL1_NAME {
134 display "Device name for the MCF5272 UART serial port 1"
136 default_value {"\"/dev/ser1\""}
138 This option specifies the name of serial device for the
139 MCF5272 UART port 1."
142 cdl_option CYGNUM_IO_SERIAL_COLDFIRE_MCF5272_CHANNEL1_BAUD {
143 display "Baud rate for the MCF5272 UART serial port 1"
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
150 This option specifies the default baud rate (speed) for the
151 MCF5272 UART port 1."
154 cdl_option CYGOPT_IO_SERIAL_COLDFIRE_MCF5272_CHANNEL1_AUTOBAUD {
155 display "Enable automatic baud rate detection for the MCF5272 UART serial port 1."
158 active_if CYGNUM_IO_SERIAL_COLDFIRE_MCF5272_CHANNEL1_BUFSIZE > 0
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
168 cdl_option CYGNUM_IO_SERIAL_COLDFIRE_MCF5272_CHANNEL1_BUFSIZE {
169 display "Buffer size for the MCF5272 UART serial port 1"
171 legal_values 0 to 8192
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."
179 cdl_option CYGNUM_IO_SERIAL_COLDFIRE_MCF5272_CHANNEL1_PRIORITY {
180 display "Interrupt priority level for MCF5272 UART serial port 1"
184 active_if CYGNUM_IO_SERIAL_COLDFIRE_MCF5272_CHANNEL1_BUFSIZE > 0
186 This option specifies the priority associated to interrupts
187 coming from the MCF5272 UART port 1."