]> git.karo-electronics.de Git - karo-tx-redboot.git/blob - packages/devs/serial/powerpc/ppc405/v2_0/cdl/ser_powerpc_ppc405.cdl
Initial revision
[karo-tx-redboot.git] / packages / devs / serial / powerpc / ppc405 / v2_0 / cdl / ser_powerpc_ppc405.cdl
1 # ====================================================================
2 #
3 #      ser_powerpc_ppc405.cdl
4 #
5 #      eCos serial configuration data
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) 2003 Gary Thomas
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 ## Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
38 ## at http://sources.redhat.com/ecos/ecos-license/
39 ## -------------------------------------------
40 #####ECOSGPLCOPYRIGHTEND####
41 # ====================================================================
42 ######DESCRIPTIONBEGIN####
43 #
44 # Author(s):      gthomas
45 # Original data:  
46 # Contributors:
47 # Date:           2003-09-16
48 #
49 #####DESCRIPTIONEND####
50 #
51 # ====================================================================
52
53
54 cdl_package CYGPKG_IO_SERIAL_POWERPC_PPC405 {
55     display       "PowerPC PPC405 (16x5x) serial device driver"
56
57     parent        CYGPKG_IO_SERIAL_DEVICES
58     active_if     CYGPKG_IO_SERIAL
59     active_if     CYGPKG_HAL_POWERPC_PPC40x  
60 # Only the 405GP has these ports
61     active_if     { CYGHWR_HAL_POWERPC_PPC4XX == "405GP" || CYGHWR_HAL_POWERPC_PPC4XX == "405EP" }
62
63     requires      CYGPKG_ERROR
64     include_dir   cyg/io
65
66     description   "
67            This option enables the serial 16x5x device drivers for the
68            PowerPC PPC405GP/EP based platforms."
69
70     # FIXME: This really belongs in the GENERIC_16X5X package
71     cdl_interface CYGINT_IO_SERIAL_GENERIC_16X5X_REQUIRED {
72         display   "Generic 16x5x serial driver required"
73     }
74
75     define_proc {
76         puts $::cdl_header "#define CYGPRI_IO_SERIAL_GENERIC_16X5X_STEP 1"
77     }
78
79     define_proc {
80         puts $::cdl_system_header "/***** serial driver proc output start *****/"
81         puts $::cdl_system_header "#define CYGDAT_IO_SERIAL_GENERIC_16X5X_INL <cyg/io/powerpc_ppc405_ser.inl>"
82         puts $::cdl_system_header "#define CYGDAT_IO_SERIAL_GENERIC_16X5X_CFG <pkgconf/io_serial_powerpc_ppc405.h>"
83         puts $::cdl_system_header "/*****  serial driver proc output end  *****/"
84     }
85
86     cdl_component CYGPKG_IO_SERIAL_POWERPC_PPC405_SERIAL0 {
87         display       "PowerPC PPC405GP/EP serial port 0 driver"
88         flavor        bool
89         default_value 1
90
91         implements CYGINT_IO_SERIAL_GENERIC_16X5X_REQUIRED
92         implements CYGINT_IO_SERIAL_FLOW_CONTROL_HW
93         implements CYGINT_IO_SERIAL_LINE_STATUS_HW
94
95         description   "
96             This option includes the serial device driver for the 
97             PowerPC PPC405GP port 0."
98
99         cdl_option CYGDAT_IO_SERIAL_POWERPC_PPC405_SERIAL0_NAME {
100             display       "Device name for PowerPC PPC405GP/EP serial port 0 driver"
101             flavor        data
102             default_value {"\"/dev/ser0\""}
103             description   "
104                 This option specifies the name of the serial device
105                 for the PowerPC PPC405GP port 0."
106         }
107
108         cdl_option CYGNUM_IO_SERIAL_POWERPC_PPC405_SERIAL0_BAUD {
109             display       "Baud rate for the PowerPC PPC405GP serial port 0 driver"
110             flavor        data
111             legal_values  { 50 75 110 "134_5" 150 200 300 600 1200 1800 2400
112                             3600 4800 7200 9600 14400 19200 38400
113                             57600 115200 230400 }
114             default_value 115200
115             description   "
116                 This option specifies the default baud rate (speed)
117                 for the PowerPC PPC405GP port 0."
118          }
119
120          cdl_option CYGNUM_IO_SERIAL_POWERPC_PPC405_SERIAL0_BUFSIZE {
121              display       "Buffer size for the PowerPC PPC405GP serial port 0 driver"
122              flavor        data
123              legal_values  0 to 8192
124              default_value 128
125              description   "
126                  This option specifies the size of the internal
127                  buffers used for the PowerPC PPC405GP port 0."
128          }
129     }
130
131     cdl_component CYGPKG_IO_SERIAL_POWERPC_PPC405_SERIAL1 {
132         display       "PowerPC PPC405GP serial port 1 driver"
133         flavor        bool
134         default_value 1
135
136         implements CYGINT_IO_SERIAL_GENERIC_16X5X_REQUIRED
137         implements CYGINT_IO_SERIAL_FLOW_CONTROL_HW
138         implements CYGINT_IO_SERIAL_LINE_STATUS_HW
139
140         description   "
141             This option includes the serial device driver for the 
142             PowerPC PPC405GP port 1."
143
144         cdl_option CYGDAT_IO_SERIAL_POWERPC_PPC405_SERIAL1_NAME {
145             display       "Device name for PowerPC PPC405GP serial port 1 driver"
146             flavor        data
147             default_value {"\"/dev/ser1\""}
148             description   "
149                 This option specifies the name of the serial device
150                 for the PowerPC PPC405GP port 1."
151         }
152
153         cdl_option CYGNUM_IO_SERIAL_POWERPC_PPC405_SERIAL1_BAUD {
154             display       "Baud rate for the PowerPC PPC405GP serial port 1 driver"
155             flavor        data
156             legal_values  { 50 75 110 "134_5" 150 200 300 600 1200 1800 2400
157                             3600 4800 7200 9600 14400 19200 38400
158                             57600 115200 230400 }
159             default_value 115200
160             description   "
161                 This option specifies the default baud rate (speed)
162                 for the PowerPC PPC405GP port 1."
163          }
164
165          cdl_option CYGNUM_IO_SERIAL_POWERPC_PPC405_SERIAL1_BUFSIZE {
166              display       "Buffer size for the PowerPC PPC405GP serial port 1 driver"
167              flavor        data
168              legal_values  0 to 8192
169              default_value 128
170              description   "
171                  This option specifies the size of the internal
172                  buffers used for the PowerPC PPC405GP/EP port 1."
173          }
174     }
175
176     cdl_component CYGPKG_IO_SERIAL_POWERPC_PPC405_TESTING {
177         display    "Testing parameters"
178         flavor     bool
179         default_value 1
180         no_define
181         active_if  { CYGPKG_IO_SERIAL_POWERPC_PPC405_SERIAL1 }
182
183         cdl_option CYGPRI_SER_TEST_SER_DEV {
184             display       "Serial device used for testing"
185             flavor        data
186             default_value { CYGDAT_IO_SERIAL_POWERPC_PPC405_SERIAL1_NAME }
187         }
188
189         define_proc {
190             puts $::cdl_header "#define CYGPRI_SER_TEST_CRASH_ID \"PPC405GP\""
191             puts $::cdl_header "#define CYGPRI_SER_TEST_TTY_DEV  \"/dev/tty1\""
192         }
193     }
194
195 }
196
197 # EOF ser_powerpc_ppc405.cdl