1 |
27 |
unneback |
# ====================================================================
|
2 |
|
|
#
|
3 |
|
|
# hal_mn10300_am33_asb2305.cdl
|
4 |
|
|
#
|
5 |
|
|
# AM33-2/ASB2305 board 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): dhowells
|
44 |
|
|
# Original data: dmoseley. nick, bartv
|
45 |
|
|
# Contributors:
|
46 |
|
|
# Date: 2001-05-17
|
47 |
|
|
#
|
48 |
|
|
#####DESCRIPTIONEND####
|
49 |
|
|
#
|
50 |
|
|
# ====================================================================
|
51 |
|
|
|
52 |
|
|
cdl_package CYGPKG_HAL_MN10300_AM33_ASB2305 {
|
53 |
|
|
display "Panasonic ASB2305 Evaluation Board"
|
54 |
|
|
parent CYGPKG_HAL_MN10300
|
55 |
|
|
requires CYGPKG_HAL_MN10300_AM33
|
56 |
|
|
requires { CYGHWR_HAL_MN10300_AM33_REVISION == 2 }
|
57 |
|
|
define_header hal_mn10300_am33_asb2305.h
|
58 |
|
|
include_dir cyg/hal
|
59 |
|
|
description "
|
60 |
|
|
The ASB2305 HAL package should be used when targetting the
|
61 |
|
|
actual hardware for the Panasonic ASB2305 Evaluation Board
|
62 |
|
|
with the MN103E010 microcontroller."
|
63 |
|
|
|
64 |
|
|
compile hal_diag.c plf_stub.c plf_misc.c ser_asb.c
|
65 |
|
|
|
66 |
|
|
implements CYGINT_HAL_DEBUG_GDB_STUBS
|
67 |
|
|
implements CYGINT_HAL_DEBUG_GDB_STUBS_BREAK
|
68 |
|
|
implements CYGINT_HAL_MN10300_MEM_REAL_REGION_TOP
|
69 |
|
|
|
70 |
|
|
requires CYGSEM_HAL_UNCACHED_FLASH_ACCESS == 1;
|
71 |
|
|
|
72 |
|
|
define_proc {
|
73 |
|
|
puts $::cdl_system_header "#define CYGBLD_HAL_TARGET_H "
|
74 |
|
|
puts $::cdl_system_header "#define CYGBLD_HAL_PLATFORM_H "
|
75 |
|
|
puts $::cdl_system_header "#define HAL_PLATFORM_BOARD \"Panasonic ASB2305\""
|
76 |
|
|
puts $::cdl_system_header "#define HAL_PLATFORM_EXTRA \"\""
|
77 |
|
|
puts $::cdl_system_header "#define HAL_PLATFORM_CPU \"MN103E010 AM33/2.0\""
|
78 |
|
|
}
|
79 |
|
|
|
80 |
|
|
cdl_component CYG_HAL_STARTUP {
|
81 |
|
|
display "Startup type"
|
82 |
|
|
flavor data
|
83 |
|
|
legal_values {"RAM" "ROM"}
|
84 |
|
|
default_value {"ROM"}
|
85 |
|
|
no_define
|
86 |
|
|
define -file system.h CYG_HAL_STARTUP
|
87 |
|
|
description "
|
88 |
|
|
This determines whether the stored .data section will need copying
|
89 |
|
|
to RAM before it can be used."
|
90 |
|
|
}
|
91 |
|
|
|
92 |
|
|
cdl_component CYG_HAL_ROM_SLOT {
|
93 |
|
|
display "ROM slot in which residing"
|
94 |
|
|
flavor data
|
95 |
|
|
legal_values {"BootPROM" "SysFlash"}
|
96 |
|
|
default_value {"BootPROM"}
|
97 |
|
|
no_define
|
98 |
|
|
define -file system.h CYG_HAL_ROM_SLOT
|
99 |
|
|
description "
|
100 |
|
|
This specifies which ROM slot the program resides in (and is booted
|
101 |
|
|
from."
|
102 |
|
|
}
|
103 |
|
|
|
104 |
|
|
cdl_option CYG_HAL_FULL_RAM {
|
105 |
|
|
display "Use all of RAM for RAM startup"
|
106 |
|
|
flavor bool
|
107 |
|
|
default_value 0
|
108 |
|
|
description "
|
109 |
|
|
This specifies whether or not RAM startup configurations use all of
|
110 |
|
|
RAM. This should be true when using the MEI debugger to load the RAM
|
111 |
|
|
startup program when no monitor is installed on the board."
|
112 |
|
|
}
|
113 |
|
|
|
114 |
|
|
cdl_option CYGHWR_HAL_MN10300_PROCESSOR_OSC_DEFAULT {
|
115 |
|
|
display "Processor clock rate"
|
116 |
|
|
calculated 33333333
|
117 |
|
|
flavor data
|
118 |
|
|
}
|
119 |
|
|
|
120 |
|
|
cdl_option CYGHWR_HAL_MN10300_PLATFORM_VSR_TABLE_BASE {
|
121 |
|
|
display "ASB2305 VSR table base address"
|
122 |
|
|
flavor data
|
123 |
|
|
default_value 0x8C000000
|
124 |
|
|
description "
|
125 |
|
|
Base address of the VSR table on ASB2305 board."
|
126 |
|
|
}
|
127 |
|
|
|
128 |
|
|
cdl_component CYGBLD_GLOBAL_OPTIONS {
|
129 |
|
|
display "Global build options"
|
130 |
|
|
flavor none
|
131 |
|
|
parent CYGPKG_NONE
|
132 |
|
|
description "
|
133 |
|
|
Global build options including control over
|
134 |
|
|
compiler flags, linker flags and choice of toolchain."
|
135 |
|
|
|
136 |
|
|
|
137 |
|
|
cdl_option CYGBLD_GLOBAL_COMMAND_PREFIX {
|
138 |
|
|
display "Global command prefix"
|
139 |
|
|
flavor data
|
140 |
|
|
no_define
|
141 |
|
|
default_value { "mn10300-elf" }
|
142 |
|
|
description "
|
143 |
|
|
This option specifies the command prefix used when
|
144 |
|
|
invoking the build tools."
|
145 |
|
|
}
|
146 |
|
|
|
147 |
|
|
cdl_option CYGBLD_GLOBAL_CFLAGS {
|
148 |
|
|
display "Global compiler flags"
|
149 |
|
|
flavor data
|
150 |
|
|
no_define
|
151 |
|
|
default_value { "-mam33-2 -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -Wp,-Wno-paste -g -O2 -fno-builtin -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority" }
|
152 |
|
|
description "
|
153 |
|
|
This option controls the global compiler flags which
|
154 |
|
|
are used to compile all packages by
|
155 |
|
|
default. Individual packages may define
|
156 |
|
|
options which override these global flags."
|
157 |
|
|
}
|
158 |
|
|
|
159 |
|
|
cdl_option CYGBLD_GLOBAL_LDFLAGS {
|
160 |
|
|
display "Global linker flags"
|
161 |
|
|
flavor data
|
162 |
|
|
no_define
|
163 |
|
|
default_value { "-mam33 -g -nostdlib -Wl,--gc-sections -Wl,-static" }
|
164 |
|
|
description "
|
165 |
|
|
This option controls the global linker flags. Individual
|
166 |
|
|
packages may define options which override these global flags."
|
167 |
|
|
}
|
168 |
|
|
|
169 |
|
|
cdl_option CYGBLD_BUILD_GDB_STUBS {
|
170 |
|
|
display "Build GDB stub ROM image"
|
171 |
|
|
default_value 0
|
172 |
|
|
requires { CYG_HAL_STARTUP == "ROM" }
|
173 |
|
|
requires CYGSEM_HAL_ROM_MONITOR
|
174 |
|
|
requires CYGBLD_BUILD_COMMON_GDB_STUBS
|
175 |
|
|
requires CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS
|
176 |
|
|
requires ! CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT
|
177 |
|
|
requires ! CYGDBG_HAL_DEBUG_GDB_THREAD_SUPPORT
|
178 |
|
|
requires ! CYGDBG_HAL_COMMON_INTERRUPTS_SAVE_MINIMUM_CONTEXT
|
179 |
|
|
requires ! CYGDBG_HAL_COMMON_CONTEXT_SAVE_MINIMUM
|
180 |
|
|
no_define
|
181 |
|
|
description "
|
182 |
|
|
This option enables the building of the GDB stubs for the
|
183 |
|
|
board. The common HAL controls takes care of most of the
|
184 |
|
|
build process, but the final conversion from ELF image to
|
185 |
|
|
binary data is handled by the platform CDL, allowing
|
186 |
|
|
relocation of the data if necessary."
|
187 |
|
|
|
188 |
|
|
make -priority 320 {
|
189 |
|
|
/bin/gdb_module.bin : /bin/gdb_module.img
|
190 |
|
|
$(OBJCOPY) -O binary $< $@
|
191 |
|
|
}
|
192 |
|
|
}
|
193 |
|
|
}
|
194 |
|
|
|
195 |
|
|
cdl_option CYGNUM_HAL_BREAKPOINT_LIST_SIZE {
|
196 |
|
|
display "Number of breakpoints supported by the HAL."
|
197 |
|
|
flavor data
|
198 |
|
|
default_value 25
|
199 |
|
|
description "
|
200 |
|
|
This option determines the number of breakpoints supported by the HAL."
|
201 |
|
|
}
|
202 |
|
|
|
203 |
|
|
cdl_option CYGSEM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_RTSCTS {
|
204 |
|
|
display "Diagnostic serial port RTS/CTS flow control"
|
205 |
|
|
flavor bool
|
206 |
|
|
default_value 0
|
207 |
|
|
description "
|
208 |
|
|
The ASB2305 debug serial port RTS/CTS flow control setting."
|
209 |
|
|
}
|
210 |
|
|
|
211 |
|
|
cdl_option CYGSEM_HAL_AM33_PLF_USES_SERIAL0 {
|
212 |
|
|
display "ASB2305 uses AM33 SERIAL0"
|
213 |
|
|
flavor bool
|
214 |
|
|
default_value 1
|
215 |
|
|
description "
|
216 |
|
|
Enable this option if AM33 SERIAL0 is to be used as a virtual vector
|
217 |
|
|
communications channel."
|
218 |
|
|
}
|
219 |
|
|
|
220 |
|
|
cdl_option CYGSEM_HAL_AM33_PLF_USES_SERIAL1 {
|
221 |
|
|
display "ASB2305 uses AM33 SERIAL1"
|
222 |
|
|
flavor bool
|
223 |
|
|
default_value 0
|
224 |
|
|
description "
|
225 |
|
|
Enable this option if AM33 SERIAL1 is to be used as a virtual vector
|
226 |
|
|
communications channel."
|
227 |
|
|
}
|
228 |
|
|
|
229 |
|
|
cdl_option CYGNUM_HAL_AM33_PLF_SERIAL_CHANNELS {
|
230 |
|
|
display "ASB2305 has one comm channels."
|
231 |
|
|
flavor data
|
232 |
|
|
default_value 1
|
233 |
|
|
}
|
234 |
|
|
|
235 |
|
|
cdl_component CYGHWR_MEMORY_LAYOUT {
|
236 |
|
|
display "Memory layout"
|
237 |
|
|
flavor data
|
238 |
|
|
no_define
|
239 |
|
|
calculated { CYG_HAL_STARTUP == "RAM" ? \
|
240 |
|
|
CYG_HAL_FULL_RAM ? "mn10300_am33_asb2305_fullram" : \
|
241 |
|
|
"mn10300_am33_asb2305_ram" : \
|
242 |
|
|
CYG_HAL_ROM_SLOT == "BootPROM" ? "mn10300_am33_asb2305_rom" : \
|
243 |
|
|
"mn10300_am33_asb2305_flash" }
|
244 |
|
|
|
245 |
|
|
cdl_option CYGHWR_MEMORY_LAYOUT_LDI {
|
246 |
|
|
display "Memory layout linker script fragment"
|
247 |
|
|
flavor data
|
248 |
|
|
no_define
|
249 |
|
|
define -file system.h CYGHWR_MEMORY_LAYOUT_LDI
|
250 |
|
|
calculated { CYG_HAL_STARTUP == "RAM" ? \
|
251 |
|
|
CYG_HAL_FULL_RAM ? "" : \
|
252 |
|
|
"" : \
|
253 |
|
|
CYG_HAL_ROM_SLOT == "BootPROM" ? "" : \
|
254 |
|
|
"" }
|
255 |
|
|
}
|
256 |
|
|
|
257 |
|
|
cdl_option CYGHWR_MEMORY_LAYOUT_H {
|
258 |
|
|
display "Memory layout header file"
|
259 |
|
|
flavor data
|
260 |
|
|
no_define
|
261 |
|
|
define -file system.h CYGHWR_MEMORY_LAYOUT_H
|
262 |
|
|
calculated { CYG_HAL_STARTUP == "RAM" ? \
|
263 |
|
|
CYG_HAL_FULL_RAM ? "" : \
|
264 |
|
|
"" : \
|
265 |
|
|
CYG_HAL_ROM_SLOT == "BootPROM" ? "" : \
|
266 |
|
|
"" }
|
267 |
|
|
}
|
268 |
|
|
}
|
269 |
|
|
|
270 |
|
|
cdl_option CYGSEM_HAL_USE_ROM_MONITOR {
|
271 |
|
|
display "Work with a ROM monitor"
|
272 |
|
|
flavor booldata
|
273 |
|
|
legal_values { "GDB_stubs" }
|
274 |
|
|
default_value { CYG_HAL_STARTUP == "RAM" ? "GDB_stubs" : 0 }
|
275 |
|
|
parent CYGPKG_HAL_ROM_MONITOR
|
276 |
|
|
requires { CYG_HAL_STARTUP == "RAM" }
|
277 |
|
|
description "
|
278 |
|
|
Support can be enabled for boot ROMs or ROM monitors which contain
|
279 |
|
|
GDB stubs. This support changes various eCos semantics such as
|
280 |
|
|
the encoding of diagnostic output, and the overriding of hardware
|
281 |
|
|
interrupt vectors."
|
282 |
|
|
}
|
283 |
|
|
|
284 |
|
|
cdl_option CYGSEM_HAL_ROM_MONITOR {
|
285 |
|
|
display "Behave as a ROM monitor"
|
286 |
|
|
flavor bool
|
287 |
|
|
default_value 1
|
288 |
|
|
parent CYGPKG_HAL_ROM_MONITOR
|
289 |
|
|
requires { CYG_HAL_STARTUP == "ROM" }
|
290 |
|
|
description "
|
291 |
|
|
Enable this option if this program is to be used as a ROM monitor,
|
292 |
|
|
i.e. applications will be loaded into RAM on the board, and this
|
293 |
|
|
ROM monitor may process exceptions or interrupts generated from the
|
294 |
|
|
application. This enables features such as utilizing a separate
|
295 |
|
|
interrupt stack when exceptions are generated."
|
296 |
|
|
}
|
297 |
|
|
|
298 |
|
|
cdl_component CYGPKG_REDBOOT_HAL_OPTIONS {
|
299 |
|
|
display "Redboot HAL options"
|
300 |
|
|
flavor none
|
301 |
|
|
no_define
|
302 |
|
|
parent CYGPKG_REDBOOT
|
303 |
|
|
active_if CYGPKG_REDBOOT
|
304 |
|
|
description "
|
305 |
|
|
This option lists the target's requirements for a valid Redboot
|
306 |
|
|
configuration."
|
307 |
|
|
|
308 |
|
|
cdl_option CYGBLD_BUILD_REDBOOT_BIN {
|
309 |
|
|
display "Build Redboot ROM binary image"
|
310 |
|
|
active_if CYGBLD_BUILD_REDBOOT
|
311 |
|
|
default_value 1
|
312 |
|
|
no_define
|
313 |
|
|
description "This option enables the conversion of the Redboot ELF
|
314 |
|
|
image to a binary image suitable for ROM programming."
|
315 |
|
|
|
316 |
|
|
make -priority 325 {
|
317 |
|
|
/bin/redboot.bin : /bin/redboot.elf
|
318 |
|
|
$(OBJCOPY) --strip-debug $< $(@:.bin=.img)
|
319 |
|
|
$(OBJCOPY) -O srec $< $(@:.bin=.srec)
|
320 |
|
|
$(OBJCOPY) -O binary $< $@
|
321 |
|
|
}
|
322 |
|
|
}
|
323 |
|
|
}
|
324 |
|
|
}
|