]> git.karo-electronics.de Git - karo-tx-redboot.git/blob - packages/hal/powerpc/quicc/v2_0/cdl/hal_powerpc_quicc.cdl
Initial revision
[karo-tx-redboot.git] / packages / hal / powerpc / quicc / v2_0 / cdl / hal_powerpc_quicc.cdl
1 # ====================================================================
2 #
3 #      hal_powerpc_quicc.cdl
4 #
5 #      PowerPC/QUICC HAL package 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) 2002, 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):      jskov
45 # Original data:  hmt
46 # Contributors:
47 # Date:           1999-11-02
48 #
49 #####DESCRIPTIONEND####
50 #
51 # ====================================================================
52
53 cdl_package CYGPKG_HAL_QUICC {
54     display  "Motorola MPC8xx PowerQUICC support"
55     parent        CYGPKG_HAL_POWERPC
56     define_header hal_powerpc_quicc.h
57     include_dir   cyg/hal/quicc
58     description   "
59            The QUICC package provides some of the support needed
60            to run eCos on a Motorola MPC8xx (MBX) board, using the QUICC
61            feature of the MPC860 and MPC821 CPUs.
62            Currently only serial IO via SMC1/2 and SCC1 is provided by
63            this package."
64
65     define_proc {
66         puts $::cdl_system_header "#define CYGBLD_HAL_VARIANT_H  <pkgconf/hal_powerpc_quicc.h>"
67     }
68
69     cdl_interface CYGNUM_HAL_QUICC_SMC1 {
70         display    "SMC1 is available for serial I/O"
71         description "
72           This interface indicates that SMC1 can be outfitted as
73           a serial device."
74     }
75
76     cdl_interface CYGNUM_HAL_QUICC_SMC2 {
77         display    "SMC2 is available for serial I/O"
78         description "
79           This interface indicates that SMC2 can be outfitted as
80           a serial device."
81     }
82
83     cdl_interface CYGNUM_HAL_QUICC_SCC1 {
84         display    "SCC1 is available for serial I/O"
85         description "
86           Most MPC8xx chipsets use SCC1 to drive the ethernet controller.
87         On some newer (e.g. 860T) chips, SCC1 can be used for general
88         serial since there is a separate ethernet machine."
89     }
90
91     cdl_interface CYGNUM_HAL_QUICC_SCC2 {
92         display    "SCC2 is available for serial I/O"
93         description "
94           Port SCC2 is available for serial I/O"
95     }
96
97     cdl_interface CYGNUM_HAL_QUICC_SCC3 {
98         display    "SCC3 is available for serial I/O"
99         description "
100           Port SCC3 is available for serial I/O"
101     }
102
103     cdl_interface CYGNUM_HAL_QUICC_SCC4 {
104         display    "SCC4 is available for serial I/O"
105         description "
106           Port SCC4 is available for serial I/O"
107     }
108
109     compile       quicc_smc1.c cpm.c
110
111    cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS {
112        display      "Number of communication channels on the board"
113        flavor       data
114        calculated   CYGNUM_HAL_QUICC_SMC1+CYGNUM_HAL_QUICC_SMC2+CYGNUM_HAL_QUICC_SCC1+CYGNUM_HAL_QUICC_SCC2+CYGNUM_HAL_QUICC_SCC3+CYGNUM_HAL_QUICC_SCC4
115    }
116
117    cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_DEBUG_CHANNEL {
118        display          "Debug serial port"
119        active_if        CYGPRI_HAL_VIRTUAL_VECTOR_DEBUG_CHANNEL_CONFIGURABLE
120        flavor data
121        legal_values     0 to CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS-1
122        default_value    0
123        description      "
124            This option chooses which port will be used to connect to a host
125            via the GDB remote protocol."
126     }
127
128     cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL {
129         display          "Diagnostic serial port"
130         active_if        CYGPRI_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_CONFIGURABLE
131         flavor data
132         legal_values     0 to CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS-1
133         default_value    0
134         description      "
135            This option chooses which port will be used for diagnostic output."
136     }
137
138     # This option is only used when USE_ROM_MONITOR is enabled - but
139     # it cannot be a sub-option to that option, since the code uses the
140     # definition in a preprocessor comparison.
141     cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_ROM_DEBUG_CHANNEL {
142         display          "Debug serial port used by ROM monitor"
143         flavor data
144         legal_values     0 to CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS-1
145         default_value    0
146         description      "
147             If a platform has multiple serial ports, then this
148             option tells the code which port is in use by the ROM
149             monitor. It should only be necessary to change this
150             option if a non-standard configurated eCos GDB stub is
151             used."
152     }
153
154     cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_BAUD {
155         display       "Baud rate for the HAL diagnostic port"
156         flavor        data
157         legal_values  { 50 75 110 "134_5" 150 200 300 600 1200 1800 2400 3600
158                       4800 7200 9600 14400 19200 38400 57600 115200 230400
159         }
160         default_value 38400
161         description   "
162             This option specifies the default baud rate (speed) for the 
163             HAL diagnostic port."
164     }
165
166 }