1 # ====================================================================
3 # hal_powerpc_mpc8xxx.cdl
5 # PowerPC/MPC8xxx variant architectural HAL package 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) 2002, 2003 Gary Thomas
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.
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####
45 # Contributors: jskov, gthomas
48 #####DESCRIPTIONEND####
50 # ====================================================================
52 cdl_package CYGPKG_HAL_POWERPC_MPC8XXX {
53 display "PowerPC MPC8xxx variant HAL"
54 parent CYGPKG_HAL_POWERPC
57 define_header hal_powerpc_mpc8xxx.h
59 The PowerPC MPC8xxx variant HAL package provides generic support
60 for this processor variant. It is also necessary to
61 select a specific target platform HAL package."
63 # Note: This should be sub-variant specific to reduce memory use.
65 puts $cdl_header "#define CYGHWR_HAL_VSR_TABLE (CYGHWR_HAL_POWERPC_VECTOR_BASE + 0x3000)"
66 puts $cdl_header "#define CYGHWR_HAL_VIRTUAL_VECTOR_TABLE (CYGHWR_HAL_VSR_TABLE + 0x200)"
69 implements CYGINT_HAL_POWERPC_VARIANT
71 cdl_option CYGHWR_HAL_POWERPC_FPU {
72 display "Variant FPU support"
76 cdl_option CYGPKG_HAL_POWERPC_MSBFIRST {
77 display "CPU Variant big-endian"
82 puts $::cdl_header "#include <pkgconf/hal_powerpc.h>"
85 cdl_interface CYGNUM_HAL_MPC8XXX_SMC1 {
86 display "SMC1 is available for serial I/O"
88 This interface indicates that SMC1 can be outfitted as
92 cdl_interface CYGNUM_HAL_MPC8XXX_SMC2 {
93 display "SMC2 is available for serial I/O"
95 This interface indicates that SMC2 can be outfitted as
99 cdl_interface CYGNUM_HAL_MPC8XXX_SCC1 {
100 display "SCC1 is available for serial I/O"
102 Port SCC1 is available for serial I/O"
105 cdl_interface CYGNUM_HAL_MPC8XXX_SCC2 {
106 display "SCC2 is available for serial I/O"
108 Port SCC2 is available for serial I/O"
111 cdl_interface CYGNUM_HAL_MPC8XXX_SCC3 {
112 display "SCC3 is available for serial I/O"
114 Port SCC3 is available for serial I/O"
117 cdl_interface CYGNUM_HAL_MPC8XXX_SCC4 {
118 display "SCC4 is available for serial I/O"
120 Port SCC4 is available for serial I/O"
123 cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_BAUD {
124 display "Baud rate for the HAL diagnostic port"
126 legal_values { 50 75 110 "134_5" 150 200 300 600 1200 1800 2400 3600
127 4800 7200 9600 14400 19200 38400 57600 115200 230400
131 This option specifies the default baud rate (speed) for the
132 HAL diagnostic port."
135 cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS {
136 display "Number of communication channels on the board"
138 calculated CYGNUM_HAL_MPC8XXX_SMC1+CYGNUM_HAL_MPC8XXX_SMC2+CYGNUM_HAL_MPC8XXX_SCC1+CYGNUM_HAL_MPC8XXX_SCC2+CYGNUM_HAL_MPC8XXX_SCC3+CYGNUM_HAL_MPC8XXX_SCC4
141 cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_DEBUG_CHANNEL {
142 display "Debug serial port"
143 active_if CYGPRI_HAL_VIRTUAL_VECTOR_DEBUG_CHANNEL_CONFIGURABLE
145 legal_values 0 to CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS-1
148 The MPC8xxx variants can have many serial ports. This option
149 chooses which port will be used to connect to a host running GDB."
152 cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL {
153 display "Diagnostic serial port"
154 active_if CYGPRI_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_CONFIGURABLE
156 legal_values 0 to CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS-1
159 This option chooses which of the serial ports
160 will be used for diagnostic output."
163 # This option is only used when USE_ROM_MONITOR is enabled - but
164 # it cannot be a sub-option to that option, since the code uses the
165 # definition in a preprocessor comparison.
166 cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_ROM_DEBUG_CHANNEL {
167 display "Debug serial port used by ROM monitor"
169 legal_values 0 to CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS-1
172 This option chooses which of the serial ports
173 will be used for GDB debugging."
176 compile var_intr.c var_misc.c variant.S quicc2_diag.c cpm.c
178 cdl_component CYGPKG_HAL_POWERPC_MPC8XXX_OPTIONS {
179 display "MPC8XXX build options"
182 Package specific build options including control over
183 compiler flags used only in building this package,
184 and details of which tests are built."
187 cdl_option CYGPKG_HAL_POWERPC_MPC8XXX_CFLAGS_ADD {
188 display "Additional compiler flags"
193 This option modifies the set of compiler flags for
194 building the MPC8XXX HAL. These flags are used in addition
195 to the set of global flags."
198 cdl_option CYGPKG_HAL_POWERPC_MPC8XXX_CFLAGS_REMOVE {
199 display "Suppressed compiler flags"
204 This option modifies the set of compiler flags for
205 building the MPC8XXX HAL. These flags are removed from
206 the set of global flags if present."
209 cdl_option CYGPKG_HAL_POWERPC_MPC8XXX_TESTS {
210 display "MPC8XXX tests"
213 calculated { "tests/mpc8xxx_timer" }
215 This option specifies the set of tests for the MPC8XXX HAL."