1 # ====================================================================
5 # eCos SH4-202 MicroDev serial configuration data
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
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 # ====================================================================
39 ######DESCRIPTIONBEGIN####
44 # Description: Based on se77x9 driver by jskov.
46 #####DESCRIPTIONEND####
48 # ====================================================================
51 cdl_package CYGPKG_IO_SERIAL_SH_SH4_202_MD {
52 display "SH4-202 MicroDev serial device driver"
54 parent CYGPKG_IO_SERIAL_DEVICES
55 active_if CYGPKG_IO_SERIAL
56 active_if CYGPKG_HAL_SH_SH4_202_MD
62 This option enables the serial device drivers for the
63 SuperH SH4-202 MicroDev board, based on the generic SH SCIF driver."
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"
72 cdl_component CYGPKG_IO_SERIAL_SH_SH4_202_MD_SERIAL1 {
73 display "SH4-202 MicroDev SCIF serial port driver"
77 This option includes the serial device driver for the SCIF
78 port on the SH4-202 MicroDev development board."
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
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 *****/"
93 cdl_option CYGDAT_IO_SERIAL_SH_SH4_202_MD_SERIAL1_NAME {
96 default_value {"\"/dev/ser1\""}
98 This option specifies the device name for the serial
102 cdl_option CYGNUM_IO_SERIAL_SH_SH4_202_MD_SERIAL1_BAUD {
105 legal_values { 4800 9600 14400 19200 38400 57600 115200 }
108 This option specifies the default baud rate (speed)
109 for the serial driver."
112 cdl_option CYGNUM_IO_SERIAL_SH_SH4_202_MD_SERIAL1_BUFSIZE {
113 display "Buffer size"
115 legal_values 0 to 8192
118 This option specifies the size of the internal buffers
119 used for the serial driver."
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
130 # Enable DMA for this port."
134 cdl_component CYGPKG_IO_SERIAL_SH_SH4_202_MD_TESTING {
135 display "Testing parameters"
139 active_if CYGPKG_IO_SERIAL_SH_SH4_202_MD_SERIAL1
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\""
148 # EOF ser_sh_sh4_202_md.cdl