]> git.kernelconcepts.de Git - karo-tx-redboot.git/blob - packages/devs/serial/sh/sh4_202_md/v2_0/cdl/ser_sh4_202_md.cdl
Initial revision
[karo-tx-redboot.git] / packages / devs / serial / sh / sh4_202_md / v2_0 / cdl / ser_sh4_202_md.cdl
1 # ====================================================================
2 #
3 #      ser_sh4_202_md.cdl
4 #
5 #      eCos SH4-202 MicroDev 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 Nick Garnett
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 ######DESCRIPTIONBEGIN####
40 #
41 # Author(s):      jlarmour
42 # Contributors:   
43 # Date:           2003-09-18
44 # Description:    Based on se77x9 driver by jskov.
45 #
46 #####DESCRIPTIONEND####
47 #
48 # ====================================================================
49
50
51 cdl_package CYGPKG_IO_SERIAL_SH_SH4_202_MD {
52     display       "SH4-202 MicroDev serial device driver"
53
54     parent        CYGPKG_IO_SERIAL_DEVICES
55     active_if     CYGPKG_IO_SERIAL
56     active_if     CYGPKG_HAL_SH_SH4_202_MD
57
58     requires      CYGPKG_ERROR
59     include_dir   cyg/io
60
61     description   "
62         This option enables the serial device drivers for the
63         SuperH SH4-202 MicroDev board, based on the generic SH SCIF driver."
64
65
66     # FIXME: This really belongs in the SH_SCIF package
67     cdl_interface CYGINT_IO_SERIAL_SH_SCIF_REQUIRED {
68         display   "SH SCIF driver required"
69     }
70
71     # SCIF port
72     cdl_component CYGPKG_IO_SERIAL_SH_SH4_202_MD_SERIAL1 {
73         display       "SH4-202 MicroDev SCIF serial port driver"
74         flavor        bool
75         default_value 1
76         description   "
77             This option includes the serial device driver for the SCIF
78             port on the SH4-202 MicroDev development board."
79
80         implements CYGINT_IO_SERIAL_SH_SCIF_REQUIRED
81         implements CYGINT_IO_SERIAL_FLOW_CONTROL_HW
82         implements CYGINT_IO_SERIAL_LINE_STATUS_HW
83         implements CYGINT_IO_SERIAL_SH_SCIF_ASYNC_RXTX
84         implements CYGINT_IO_SERIAL_SH_SCIF_BR_INTERRUPT
85
86         define_proc {
87             puts $::cdl_system_header "/***** serial driver proc output start *****/"
88             puts $::cdl_system_header "#define CYGDAT_IO_SERIAL_SH_SCIF_INL <cyg/io/sh4_202_md_scif.inl>"
89             puts $::cdl_system_header "#define CYGDAT_IO_SERIAL_SH_SCIF_CFG <pkgconf/io_serial_sh_sh4_202_md.h>"
90             puts $::cdl_system_header "/*****  serial driver proc output end  *****/"
91         }
92     
93         cdl_option CYGDAT_IO_SERIAL_SH_SH4_202_MD_SERIAL1_NAME {
94             display       "Device name"
95             flavor        data
96             default_value {"\"/dev/ser1\""}
97             description   "
98                 This option specifies the device name for the serial
99                 port."
100         }
101
102         cdl_option CYGNUM_IO_SERIAL_SH_SH4_202_MD_SERIAL1_BAUD {
103             display       "Baud rate"
104             flavor        data
105             legal_values  { 4800 9600 14400 19200 38400 57600 115200 }
106             default_value 38400
107             description   "
108                 This option specifies the default baud rate (speed)
109                 for the serial driver."
110         }
111
112         cdl_option CYGNUM_IO_SERIAL_SH_SH4_202_MD_SERIAL1_BUFSIZE {
113             display       "Buffer size"
114             flavor        data
115             legal_values  0 to 8192
116             default_value 128
117             description   "
118                 This option specifies the size of the internal buffers
119                 used for the serial driver."
120         }
121
122 # DMA not yet implemented
123 #        cdl_option CYGSEM_IO_SERIAL_SH_SH4_202_MD_SERIAL1_DMA {
124 #            display       "Enable SCIF serial driver DMA"
125 #            active_if     CYGINT_HAL_SH_DMA_CHANNELS
126 #            implements    CYGINT_HAL_SH_DMA_CHANNELS_USED
127 #            implements    CYGINT_IO_SERIAL_SH_SCIF_DMA
128 #            default_value 1
129 #            description   "
130 #                Enable DMA for this port."
131 #        }
132 #    }
133
134     cdl_component CYGPKG_IO_SERIAL_SH_SH4_202_MD_TESTING {
135         display    "Testing parameters"
136         flavor     bool
137         calculated 1
138         no_define
139         active_if  CYGPKG_IO_SERIAL_SH_SH4_202_MD_SERIAL1
140
141         define_proc {
142             puts $::cdl_header "#define CYGPRI_SER_TEST_CRASH_ID \"sh-sh4_202_md\""
143             puts $::cdl_header "#define CYGPRI_SER_TEST_SER_DEV  CYGDAT_IO_SERIAL_SH_SH4_202_MD_SERIAL1_NAME"
144             puts $::cdl_header "#define CYGPRI_SER_TEST_TTY_DEV  \"/dev/tty1\""
145         }
146     }
147 }
148 # EOF ser_sh_sh4_202_md.cdl