1 |
27 |
unneback |
# ====================================================================
|
2 |
|
|
#
|
3 |
|
|
# hal_mn10300_am33.cdl
|
4 |
|
|
#
|
5 |
|
|
# MN10300/AM33 variant architectural 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 |
|
|
##
|
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 version.
|
16 |
|
|
##
|
17 |
|
|
## eCos is distributed in the hope that it will be useful, but WITHOUT ANY
|
18 |
|
|
## WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
19 |
|
|
## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
20 |
|
|
## for more details.
|
21 |
|
|
##
|
22 |
|
|
## You should have received a copy of the GNU General Public License along
|
23 |
|
|
## with eCos; if not, write to the Free Software Foundation, Inc.,
|
24 |
|
|
## 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
|
25 |
|
|
##
|
26 |
|
|
## As a special exception, if other files instantiate templates or use macros
|
27 |
|
|
## or inline functions from this file, or you compile this file and link it
|
28 |
|
|
## with other works to produce a work based on this file, this file does not
|
29 |
|
|
## by itself cause the resulting work to be covered by the GNU General Public
|
30 |
|
|
## License. However the source code for this file must still be made available
|
31 |
|
|
## in accordance with section (3) of the GNU General Public License.
|
32 |
|
|
##
|
33 |
|
|
## This exception does not invalidate any other reasons why a work based on
|
34 |
|
|
## this file might be covered by the GNU General Public License.
|
35 |
|
|
##
|
36 |
|
|
## Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
|
37 |
|
|
## at http://sources.redhat.com/ecos/ecos-license/
|
38 |
|
|
## -------------------------------------------
|
39 |
|
|
#####ECOSGPLCOPYRIGHTEND####
|
40 |
|
|
# ====================================================================
|
41 |
|
|
######DESCRIPTIONBEGIN####
|
42 |
|
|
#
|
43 |
|
|
# Author(s): jskov
|
44 |
|
|
# Original data: nickg
|
45 |
|
|
# Contributors: dmoseley
|
46 |
|
|
# Date: 1999-11-02
|
47 |
|
|
#
|
48 |
|
|
#####DESCRIPTIONEND####
|
49 |
|
|
#
|
50 |
|
|
# ====================================================================
|
51 |
|
|
|
52 |
|
|
cdl_package CYGPKG_HAL_MN10300_AM33 {
|
53 |
|
|
display "MN10300 AM33 variant"
|
54 |
|
|
parent CYGPKG_HAL_MN10300
|
55 |
|
|
implements CYGINT_HAL_MN10300_VARIANT
|
56 |
|
|
implements CYGINT_HAL_VIRTUAL_VECTOR_SUPPORT
|
57 |
|
|
implements CYGINT_HAL_VIRTUAL_VECTOR_COMM_BAUD_SUPPORT
|
58 |
|
|
hardware
|
59 |
|
|
include_dir cyg/hal
|
60 |
|
|
define_header hal_mn10300_am33.h
|
61 |
|
|
description "
|
62 |
|
|
The MN10300 AM33 variant HAL package provides generic
|
63 |
|
|
support for this processor architecture. It is also
|
64 |
|
|
necessary to select a specific target platform HAL
|
65 |
|
|
package."
|
66 |
|
|
|
67 |
|
|
cdl_option CYGHWR_HAL_MN10300_AM33_REVISION {
|
68 |
|
|
display "AM33 architecture revision"
|
69 |
|
|
flavor data
|
70 |
|
|
if {1} {
|
71 |
|
|
legal_values {1 2}
|
72 |
|
|
default_value {1}
|
73 |
|
|
} else {
|
74 |
|
|
calculated {1}
|
75 |
|
|
}
|
76 |
|
|
description "
|
77 |
|
|
The AM33 architecture revision."
|
78 |
|
|
}
|
79 |
|
|
|
80 |
|
|
define_proc {
|
81 |
|
|
puts $::cdl_header "#include "
|
82 |
|
|
}
|
83 |
|
|
|
84 |
|
|
compile var_misc.c variant.S am33_serial.c
|
85 |
|
|
|
86 |
|
|
cdl_option CYGHWR_HAL_MN10300_PROCESSOR_OSC {
|
87 |
|
|
display "Processor Oscillator input"
|
88 |
|
|
flavor data
|
89 |
|
|
legal_values 16666667 to 33333333
|
90 |
|
|
default_value { CYGHWR_HAL_MN10300_PROCESSOR_OSC_DEFAULT ?
|
91 |
|
|
CYGHWR_HAL_MN10300_PROCESSOR_OSC_DEFAULT : 25000000}
|
92 |
|
|
description "
|
93 |
|
|
The MN10300 processor can run at various frequencies. These
|
94 |
|
|
values are expressed in Hz. Note that there are several
|
95 |
|
|
steppings of the MN10300 rated to run at different maximum
|
96 |
|
|
frequencies. Check the specs to make sure that your
|
97 |
|
|
particular processor can run at the rate you select here."
|
98 |
|
|
}
|
99 |
|
|
|
100 |
|
|
# Real-time clock/counter specifics
|
101 |
|
|
cdl_component CYGNUM_HAL_RTC_CONSTANTS {
|
102 |
|
|
display "Real-time clock constants."
|
103 |
|
|
description "
|
104 |
|
|
The NUMERATOR divided by the DENOMINATOR gives the number of
|
105 |
|
|
nanoseconds per tick. The PERIOD is the divider to be programmed
|
106 |
|
|
into a hardware timer that is driven from an appropriate hardware
|
107 |
|
|
clock, such that the timer overflows once per tick (normally
|
108 |
|
|
generating a CPU interrupt to mark the end of a tick). The tick
|
109 |
|
|
rate is typically 100Hz.
|
110 |
|
|
The clock is generated with onboard 16-bit timers TM4 and TM5
|
111 |
|
|
cascaded together to form a 32-bit timer."
|
112 |
|
|
flavor none
|
113 |
|
|
|
114 |
|
|
cdl_option CYGHWR_HAL_MN10300_IOCLK_SPEED {
|
115 |
|
|
display "Processor I/O clock speed (Hz)"
|
116 |
|
|
flavor data
|
117 |
|
|
calculated CYGHWR_HAL_MN10300_PROCESSOR_OSC
|
118 |
|
|
description "
|
119 |
|
|
The processor I/O clock speed, from which onboard timers can
|
120 |
|
|
draw their sources."
|
121 |
|
|
}
|
122 |
|
|
|
123 |
|
|
cdl_option CYGNUM_HAL_RTC_NUMERATOR {
|
124 |
|
|
display "Real-time clock numerator"
|
125 |
|
|
flavor data
|
126 |
|
|
calculated (1000 * 1000 * 1000)
|
127 |
|
|
}
|
128 |
|
|
|
129 |
|
|
cdl_option CYGNUM_HAL_RTC_DENOMINATOR {
|
130 |
|
|
display "Real-time clock denominator"
|
131 |
|
|
flavor data
|
132 |
|
|
calculated 100
|
133 |
|
|
description "
|
134 |
|
|
This option selects the heartbeat rate for the real-time clock.
|
135 |
|
|
The rate is specified in ticks per second. Change this value
|
136 |
|
|
with caution - too high and your system will become saturated
|
137 |
|
|
just handling clock interrupts, too low and some operations
|
138 |
|
|
such as thread scheduling may become sluggish."
|
139 |
|
|
}
|
140 |
|
|
|
141 |
|
|
cdl_option CYGNUM_HAL_RTC_PERIOD {
|
142 |
|
|
display "Real-time clock divisor"
|
143 |
|
|
flavor data
|
144 |
|
|
calculated (CYGHWR_HAL_MN10300_IOCLK_SPEED / CYGNUM_HAL_RTC_DENOMINATOR)
|
145 |
|
|
}
|
146 |
|
|
}
|
147 |
|
|
|
148 |
|
|
cdl_option CYGHWR_HAL_MN10300_VSR_TABLE_BASE {
|
149 |
|
|
display "AM33 VSR table base address"
|
150 |
|
|
flavor data
|
151 |
|
|
calculated { CYGHWR_HAL_MN10300_PLATFORM_VSR_TABLE_BASE ?
|
152 |
|
|
CYGHWR_HAL_MN10300_PLATFORM_VSR_TABLE_BASE : \
|
153 |
|
|
(CYGHWR_HAL_MN10300_AM33_REVISION > 1) ? 0x90000000 : 0x50000100 }
|
154 |
|
|
description "
|
155 |
|
|
Base address of the VSR table."
|
156 |
|
|
}
|
157 |
|
|
|
158 |
|
|
cdl_option CYGHWR_HAL_MN10300_VV_TABLE_BASE {
|
159 |
|
|
display "AM33 Virtual Vectors table base address"
|
160 |
|
|
flavor data
|
161 |
|
|
calculated { CYGHWR_HAL_MN10300_PLATFORM_VV_TABLE_BASE ?
|
162 |
|
|
CYGHWR_HAL_MN10300_PLATFORM_VV_TABLE_BASE : \
|
163 |
|
|
CYGHWR_HAL_MN10300_PLATFORM_VSR_TABLE_BASE + 0x100 }
|
164 |
|
|
description "
|
165 |
|
|
Base address of the virtual vectors table."
|
166 |
|
|
}
|
167 |
|
|
|
168 |
|
|
cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_DEFAULT {
|
169 |
|
|
display "Default console channel."
|
170 |
|
|
flavor data
|
171 |
|
|
legal_values 0 to CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS-1
|
172 |
|
|
calculated 0
|
173 |
|
|
}
|
174 |
|
|
|
175 |
|
|
cdl_option CYGNUM_HAL_AM33_SERIAL_CHANNELS {
|
176 |
|
|
display "Number of AM33 serial ports used on the board"
|
177 |
|
|
flavor data
|
178 |
|
|
calculated { (CYGSEM_HAL_AM33_PLF_USES_SERIAL0 && CYGSEM_HAL_AM33_PLF_USES_SERIAL1) ? 2 : \
|
179 |
|
|
(CYGSEM_HAL_AM33_PLF_USES_SERIAL0 || CYGSEM_HAL_AM33_PLF_USES_SERIAL1) ? 1 : \
|
180 |
|
|
|
181 |
|
|
}
|
182 |
|
|
|
183 |
|
|
cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS {
|
184 |
|
|
display "Number of communication channels on the board"
|
185 |
|
|
flavor data
|
186 |
|
|
calculated { CYGNUM_HAL_AM33_SERIAL_CHANNELS + \
|
187 |
|
|
CYGNUM_HAL_AM33_PLF_SERIAL_CHANNELS }
|
188 |
|
|
}
|
189 |
|
|
|
190 |
|
|
cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_DEBUG_CHANNEL {
|
191 |
|
|
display "Debug serial port"
|
192 |
|
|
active_if CYGPRI_HAL_VIRTUAL_VECTOR_DEBUG_CHANNEL_CONFIGURABLE
|
193 |
|
|
flavor data
|
194 |
|
|
legal_values 0 to CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS-1
|
195 |
|
|
default_value 0
|
196 |
|
|
description "
|
197 |
|
|
This option chooses which port will be used to connect to a host
|
198 |
|
|
running GDB."
|
199 |
|
|
}
|
200 |
|
|
|
201 |
|
|
cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL {
|
202 |
|
|
display "Diagnostic serial port"
|
203 |
|
|
active_if CYGPRI_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_CONFIGURABLE
|
204 |
|
|
flavor data
|
205 |
|
|
legal_values 0 to CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS-1
|
206 |
|
|
default_value CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_DEFAULT
|
207 |
|
|
description "
|
208 |
|
|
The AM33 board has two serial ports. This option
|
209 |
|
|
chooses which port will be used for diagnostic output."
|
210 |
|
|
}
|
211 |
|
|
|
212 |
|
|
cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_BAUD {
|
213 |
|
|
display "Diagnostic serial port baud rate"
|
214 |
|
|
flavor data
|
215 |
|
|
legal_values 9600 19200 38400 57600 115200
|
216 |
|
|
default_value 115200
|
217 |
|
|
description "
|
218 |
|
|
This option selects the baud rate used for the diagnostic port.
|
219 |
|
|
Note: this should match the value chosen for the GDB port if the
|
220 |
|
|
diagnostic and GDB port are the same."
|
221 |
|
|
}
|
222 |
|
|
|
223 |
|
|
cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_DEBUG_CHANNEL_BAUD {
|
224 |
|
|
display "Debug serial port baud rate"
|
225 |
|
|
flavor data
|
226 |
|
|
legal_values 9600 19200 38400 57600 115200
|
227 |
|
|
default_value 115200
|
228 |
|
|
description "
|
229 |
|
|
This option selects the baud rate used for the GDB port."
|
230 |
|
|
}
|
231 |
|
|
|
232 |
|
|
make {
|
233 |
|
|
/lib/target.ld: /src/mn10300_am33.ld
|
234 |
|
|
$(CC) -E -P -Wp,-MD,target.tmp -DEXTRAS=1 -xc $(INCLUDE_PATH) $(CFLAGS) -o $@ $<
|
235 |
|
|
@echo $@ ": \\" > $(notdir $@).deps
|
236 |
|
|
@tail +2 target.tmp >> $(notdir $@).deps
|
237 |
|
|
@echo >> $(notdir $@).deps
|
238 |
|
|
@rm target.tmp
|
239 |
|
|
}
|
240 |
|
|
|
241 |
|
|
cdl_option CYGBLD_LINKER_SCRIPT {
|
242 |
|
|
display "Linker script"
|
243 |
|
|
flavor data
|
244 |
|
|
no_define
|
245 |
|
|
calculated { "src/mn10300_am33.ld" }
|
246 |
|
|
}
|
247 |
|
|
|
248 |
|
|
cdl_option CYGSEM_HAL_UNCACHED_FLASH_ACCESS {
|
249 |
|
|
display "Caching needn't be disabled to access flash"
|
250 |
|
|
flavor bool
|
251 |
|
|
default_value 0
|
252 |
|
|
description "
|
253 |
|
|
Enable this option if the hardware is able to program the flash
|
254 |
|
|
without turning off CPU data caching."
|
255 |
|
|
}
|
256 |
|
|
|
257 |
|
|
cdl_component CYGPKG_REDBOOT_MN10300_AM33_OPTIONS {
|
258 |
|
|
display "Redboot for AM33 options"
|
259 |
|
|
flavor none
|
260 |
|
|
no_define
|
261 |
|
|
parent CYGPKG_REDBOOT
|
262 |
|
|
active_if CYGPKG_REDBOOT
|
263 |
|
|
description "
|
264 |
|
|
This option lists the target's requirements for a valid Redboot
|
265 |
|
|
configuration."
|
266 |
|
|
|
267 |
|
|
cdl_component CYGPKG_REDBOOT_AM33_LINUX_EXEC {
|
268 |
|
|
display "Provide the exec command in RedBoot"
|
269 |
|
|
flavor none
|
270 |
|
|
parent CYGPKG_REDBOOT_MN10300_AM33_OPTIONS
|
271 |
|
|
active_if CYGBLD_BUILD_REDBOOT_WITH_EXEC
|
272 |
|
|
description "
|
273 |
|
|
This option contains requirements for booting linux
|
274 |
|
|
from RedBoot. The component is enabled/disabled from
|
275 |
|
|
RedBoots CDL."
|
276 |
|
|
compile -library=libextras.a redboot_linux_exec.c
|
277 |
|
|
|
278 |
|
|
cdl_option CYGHWR_REDBOOT_AM33_LINUX_CMD_ADDRESS {
|
279 |
|
|
display "Base address of linux kernel command line"
|
280 |
|
|
flavor data
|
281 |
|
|
default_value 0x8C001000
|
282 |
|
|
description "
|
283 |
|
|
This is the base address of the area of memory used to
|
284 |
|
|
pass a command line to the Linux kernel. This should be
|
285 |
|
|
chosen to avoid overlap with the kernel and any ramdisk
|
286 |
|
|
image."
|
287 |
|
|
}
|
288 |
|
|
}
|
289 |
|
|
}
|
290 |
|
|
}
|