1 |
786 |
skrzyp |
# ====================================================================
|
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, 2003 Free Software Foundation, Inc.
|
12 |
|
|
##
|
13 |
|
|
## eCos is free software; you can redistribute it and/or modify it under
|
14 |
|
|
## the terms of the GNU General Public License as published by the Free
|
15 |
|
|
## Software Foundation; either version 2 or (at your option) any later
|
16 |
|
|
## version.
|
17 |
|
|
##
|
18 |
|
|
## eCos is distributed in the hope that it will be useful, but WITHOUT
|
19 |
|
|
## ANY 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
|
24 |
|
|
## along with eCos; if not, write to the Free Software Foundation, Inc.,
|
25 |
|
|
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
26 |
|
|
##
|
27 |
|
|
## As a special exception, if other files instantiate templates or use
|
28 |
|
|
## macros or inline functions from this file, or you compile this file
|
29 |
|
|
## and link it with other works to produce a work based on this file,
|
30 |
|
|
## this file does not by itself cause the resulting work to be covered by
|
31 |
|
|
## the GNU General Public License. However the source code for this file
|
32 |
|
|
## must still be made available in accordance with section (3) of the GNU
|
33 |
|
|
## General Public License v2.
|
34 |
|
|
##
|
35 |
|
|
## This exception does not invalidate any other reasons why a work based
|
36 |
|
|
## on this file might be covered by the GNU General Public License.
|
37 |
|
|
## -------------------------------------------
|
38 |
|
|
## ####ECOSGPLCOPYRIGHTEND####
|
39 |
|
|
# ====================================================================
|
40 |
|
|
######DESCRIPTIONBEGIN####
|
41 |
|
|
#
|
42 |
|
|
# Author(s): jskov
|
43 |
|
|
# Original data: hmt
|
44 |
|
|
# Contributors:
|
45 |
|
|
# Date: 1999-11-02
|
46 |
|
|
#
|
47 |
|
|
#####DESCRIPTIONEND####
|
48 |
|
|
#
|
49 |
|
|
# ====================================================================
|
50 |
|
|
|
51 |
|
|
cdl_package CYGPKG_HAL_QUICC {
|
52 |
|
|
display "Motorola MPC8xx PowerQUICC support"
|
53 |
|
|
parent CYGPKG_HAL_POWERPC
|
54 |
|
|
define_header hal_powerpc_quicc.h
|
55 |
|
|
include_dir cyg/hal/quicc
|
56 |
|
|
description "
|
57 |
|
|
The QUICC package provides some of the support needed
|
58 |
|
|
to run eCos on a Motorola MPC8xx (MBX) board, using the QUICC
|
59 |
|
|
feature of the MPC860 and MPC821 CPUs.
|
60 |
|
|
Currently only serial IO via SMC1/2 and SCC1 is provided by
|
61 |
|
|
this package."
|
62 |
|
|
|
63 |
|
|
define_proc {
|
64 |
|
|
puts $::cdl_system_header "#define CYGBLD_HAL_VARIANT_H "
|
65 |
|
|
}
|
66 |
|
|
|
67 |
|
|
cdl_interface CYGNUM_HAL_QUICC_SMC1 {
|
68 |
|
|
display "SMC1 is available for serial I/O"
|
69 |
|
|
description "
|
70 |
|
|
This interface indicates that SMC1 can be outfitted as
|
71 |
|
|
a serial device."
|
72 |
|
|
}
|
73 |
|
|
|
74 |
|
|
cdl_interface CYGNUM_HAL_QUICC_SMC2 {
|
75 |
|
|
display "SMC2 is available for serial I/O"
|
76 |
|
|
description "
|
77 |
|
|
This interface indicates that SMC2 can be outfitted as
|
78 |
|
|
a serial device."
|
79 |
|
|
}
|
80 |
|
|
|
81 |
|
|
cdl_interface CYGNUM_HAL_QUICC_SCC1 {
|
82 |
|
|
display "SCC1 is available for serial I/O"
|
83 |
|
|
description "
|
84 |
|
|
Most MPC8xx chipsets use SCC1 to drive the ethernet controller.
|
85 |
|
|
On some newer (e.g. 860T) chips, SCC1 can be used for general
|
86 |
|
|
serial since there is a separate ethernet machine."
|
87 |
|
|
}
|
88 |
|
|
|
89 |
|
|
cdl_interface CYGNUM_HAL_QUICC_SCC2 {
|
90 |
|
|
display "SCC2 is available for serial I/O"
|
91 |
|
|
description "
|
92 |
|
|
Port SCC2 is available for serial I/O"
|
93 |
|
|
}
|
94 |
|
|
|
95 |
|
|
cdl_interface CYGNUM_HAL_QUICC_SCC3 {
|
96 |
|
|
display "SCC3 is available for serial I/O"
|
97 |
|
|
description "
|
98 |
|
|
Port SCC3 is available for serial I/O"
|
99 |
|
|
}
|
100 |
|
|
|
101 |
|
|
cdl_interface CYGNUM_HAL_QUICC_SCC4 {
|
102 |
|
|
display "SCC4 is available for serial I/O"
|
103 |
|
|
description "
|
104 |
|
|
Port SCC4 is available for serial I/O"
|
105 |
|
|
}
|
106 |
|
|
|
107 |
|
|
compile quicc_smc1.c cpm.c
|
108 |
|
|
|
109 |
|
|
cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS {
|
110 |
|
|
display "Number of communication channels on the board"
|
111 |
|
|
flavor data
|
112 |
|
|
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
|
113 |
|
|
}
|
114 |
|
|
|
115 |
|
|
cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_DEBUG_CHANNEL {
|
116 |
|
|
display "Debug serial port"
|
117 |
|
|
active_if CYGPRI_HAL_VIRTUAL_VECTOR_DEBUG_CHANNEL_CONFIGURABLE
|
118 |
|
|
flavor data
|
119 |
|
|
legal_values 0 to CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS-1
|
120 |
|
|
default_value 0
|
121 |
|
|
description "
|
122 |
|
|
This option chooses which port will be used to connect to a host
|
123 |
|
|
via the GDB remote protocol."
|
124 |
|
|
}
|
125 |
|
|
|
126 |
|
|
cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL {
|
127 |
|
|
display "Diagnostic serial port"
|
128 |
|
|
active_if CYGPRI_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_CONFIGURABLE
|
129 |
|
|
flavor data
|
130 |
|
|
legal_values 0 to CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS-1
|
131 |
|
|
default_value 0
|
132 |
|
|
description "
|
133 |
|
|
This option chooses which port will be used for diagnostic output."
|
134 |
|
|
}
|
135 |
|
|
|
136 |
|
|
# This option is only used when USE_ROM_MONITOR is enabled - but
|
137 |
|
|
# it cannot be a sub-option to that option, since the code uses the
|
138 |
|
|
# definition in a preprocessor comparison.
|
139 |
|
|
cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_ROM_DEBUG_CHANNEL {
|
140 |
|
|
display "Debug serial port used by ROM monitor"
|
141 |
|
|
flavor data
|
142 |
|
|
legal_values 0 to CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS-1
|
143 |
|
|
default_value 0
|
144 |
|
|
description "
|
145 |
|
|
If a platform has multiple serial ports, then this
|
146 |
|
|
option tells the code which port is in use by the ROM
|
147 |
|
|
monitor. It should only be necessary to change this
|
148 |
|
|
option if a non-standard configurated eCos GDB stub is
|
149 |
|
|
used."
|
150 |
|
|
}
|
151 |
|
|
|
152 |
|
|
cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_BAUD {
|
153 |
|
|
display "Baud rate for the HAL diagnostic port"
|
154 |
|
|
flavor data
|
155 |
|
|
legal_values { 50 75 110 "134_5" 150 200 300 600 1200 1800 2400 3600
|
156 |
|
|
4800 7200 9600 14400 19200 38400 57600 115200 230400
|
157 |
|
|
}
|
158 |
|
|
default_value 38400
|
159 |
|
|
description "
|
160 |
|
|
This option specifies the default baud rate (speed) for the
|
161 |
|
|
HAL diagnostic port."
|
162 |
|
|
}
|
163 |
|
|
|
164 |
|
|
}
|