OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [packages/] [hal/] [coldfire/] [m5272c3/] [current/] [cdl/] [hal_coldfire_m5272c3.cdl] - Blame information for rev 786

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 786 skrzyp
# ====================================================================
2
#
3
#      hal_coldfire_m5272c3.cdl
4
#
5
#      Freescale M5272C3 evaluation 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, 2006 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):     Enrico Piria
43
## Contributors:  Wade Jensen
44
## Date:          2005-25-06
45
##
46
######DESCRIPTIONEND####
47
##========================================================================
48
 
49
cdl_package CYGPKG_HAL_COLDFIRE_M5272C3 {
50
    display         "Freescale M5272C3 evaluation board"
51
    parent          CYGPKG_HAL_COLDFIRE_MCF5272
52
    define_header   hal_coldfire_m5272c3.h
53
    include_dir     cyg/hal
54
 
55
    description   "The Freescale M5272C3 evaluation board platform HAL
56
                package should be used when targeting the actual hardware for
57
                the Freescale M5272C3 evaluation board platform."
58
 
59
    compile     plf_startup.c
60
 
61
    implements      CYGINT_HAL_DEBUG_GDB_STUBS
62
    implements      CYGINT_HAL_DEBUG_GDB_STUBS_BREAK
63
    implements      CYGINT_HAL_VIRTUAL_VECTOR_SUPPORT
64
 
65
 
66
    define_proc {
67
        puts $::cdl_system_header "#define CYGBLD_HAL_TARGET_H   "
68
        puts $::cdl_system_header "#define CYGBLD_HAL_VARIANT_H  "
69
        puts $::cdl_system_header "#define CYGBLD_HAL_PLATFORM_H "
70
        puts $::cdl_system_header "#define HAL_PLATFORM_BOARD    \"Freescale M5272C3\""
71
        puts $::cdl_system_header "#define HAL_PLATFORM_EXTRA    \"\""
72
    }
73
 
74
    # The "-o file" is a workaround for CR100958 - without it the
75
    # output file would end up in the source directory under CygWin.
76
    # n.b. grep does not behave itself under win32
77
    make -priority 1 {
78
        /include/cyg/hal/plf_offsets.inc : /src/plf_mk_defs.c
79
        $(CC) $(ACTUAL_CFLAGS) $(INCLUDE_PATH) -Wp,-MD,plf_offsets.tmp -o plf_mk_defs.tmp -S $<
80
        fgrep .equ plf_mk_defs.tmp | sed s/#// > $@
81
        @echo $@ ": \\" > $(notdir $@).deps
82
        @tail -n +2 plf_offsets.tmp >> $(notdir $@).deps
83
        @echo >> $(notdir $@).deps
84
        @rm plf_offsets.tmp plf_mk_defs.tmp
85
    }
86
 
87
    cdl_component CYG_HAL_STARTUP {
88
        display         "Startup type"
89
        flavor          data
90
        legal_values    {"RAM" "ROM" "ROMRAM"}
91
        default_value   {"RAM"}
92
        no_define
93
        define -file system.h CYG_HAL_STARTUP
94
 
95
        description "
96
           This option is used to control where the application program will
97
           run, either from RAM or ROM (flash) memory. ROM based applications
98
           must be self contained, while RAM applications will typically assume
99
           the existence of a debug environment, such as GDB stubs.
100
           ROMRAM bootstrap is similar to ROM bootstrap, but everything
101
           is copied to RAM before execution starts, thus improving performace,
102
           but at the cost of an increased RAM footprint."
103
    }
104
 
105
    cdl_option CYGHWR_HAL_ROM_LMA {
106
       display          "Load address for ROM image"
107
       active_if        { CYG_HAL_STARTUP == "ROM" || CYG_HAL_STARTUP == "ROMRAM" }
108
       flavor           data
109
       legal_values     0xFFE00000 0xFFF00000
110
       default_value    0xFFF00000
111
 
112
       description    "This option lets you decide in which half of flash
113
                    memory to download the ROM image. As a safety measure,
114
                    the default is to use the upper half (starting at
115
                    0xFFF00000), thus preserving the ROM monitor shipped with
116
                    the board. This option is meaningful only when ROM or
117
                    ROMRAM startup is choosed."
118
    }
119
 
120
    cdl_option CYGHWR_HAL_SYSTEM_CLOCK_MHZ {
121
       display          "System clock speed in MHz"
122
       flavor           data
123
       legal_values     66 48
124
       default_value    66
125
 
126
       description    "This option identifies the system clock that the
127
                    processor uses. This value is used to set clock dividers
128
                    for some devices."
129
    }
130
 
131
    cdl_option CYGHWR_EXT_SRAM_INSTALLED {
132
       display          "External 512Kb SRAM module"
133
       flavor           bool
134
       default_value    0
135
 
136
       description    "If this option is enabled, chip-select module 2 is
137
           configured to access the optional external 512Kb SRAM module."
138
    }
139
 
140
    cdl_option CYGHWR_INSTALLED_SDRAM_SIZE {
141
       display          "Megabytes of SDRAM installed"
142
       flavor           data
143
       legal_values     16 4
144
       default_value    16
145
 
146
       description    "This option selects the size of the SDRAM installed.
147
            Note that the linker scripts have been written for a board with
148
            16 Mb of RAM. If you modify this option, you will have to change
149
            them by hand."
150
    }
151
 
152
    cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS {
153
       display          "Number of communication channels on the board"
154
       flavor           data
155
       calculated       2
156
       description      "
157
            Port 0 is the terminal serial port; port 1 is the auxiliary
158
            serial port."
159
    }
160
 
161
    cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_DEBUG_CHANNEL {
162
       display          "Debug serial port"
163
       active_if        CYGPRI_HAL_VIRTUAL_VECTOR_DEBUG_CHANNEL_CONFIGURABLE
164
       flavor data
165
       legal_values     0 to CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS-1
166
       default_value    0
167
       description      "
168
           This option chooses which port will be used to connect to a host
169
           via the GDB remote protocol."
170
    }
171
 
172
    cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_DEBUG_CHANNEL_BAUD {
173
        display       "Debug serial port baud rate"
174
        active_if     CYGPRI_HAL_VIRTUAL_VECTOR_DEBUG_CHANNEL_CONFIGURABLE
175
        flavor        data
176
        legal_values  9600 19200 38400 57600 115200
177
        default_value 19200
178
        description   "
179
            This option controls the baud rate used for the GDB connection."
180
    }
181
 
182
    cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL {
183
        display          "Diagnostic serial port"
184
        active_if        CYGPRI_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_CONFIGURABLE
185
        flavor data
186
        legal_values     0 to CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS-1
187
        default_value    0
188
        description      "
189
           This option chooses which port will be used for diagnostic output."
190
    }
191
 
192
    cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_BAUD {
193
       display          "Diagnostic serial port baud rate"
194
       active_if        CYGPRI_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_CONFIGURABLE
195
       flavor           data
196
       legal_values     9600 19200 38400 57600 115200
197
       default_value    19200
198
 
199
       description    "This option selects the baud rate used for the
200
                    diagnostic port. Note: this should match the value chosen
201
                    for the GDB port if the diagnostic and GDB port are the
202
                    same."
203
    }
204
 
205
    # Real-time clock/counter specifics
206
    cdl_component CYGNUM_HAL_RTC_CONSTANTS {
207
        display       "Real-time clock constants."
208
        flavor        none
209
 
210
        description   "Set the periodic timer on the MCF5272 to 10 ms or
211
                    10000000 ns."
212
 
213
        cdl_option CYGNUM_HAL_RTC_NUMERATOR {
214
            display       "Real-time clock numerator"
215
            flavor        data
216
            default_value 1000000000
217
        }
218
        cdl_option CYGNUM_HAL_RTC_DENOMINATOR {
219
            display       "Real-time clock denominator"
220
            flavor        data
221
            default_value 100
222
        }
223
        cdl_option CYGNUM_HAL_RTC_PERIOD {
224
            display       "Real-time clock period"
225
            flavor        data
226
            default_value 4125
227
            description   "
228
                The default value is calculated as:
229
                10 ms / ((1 / (66 MHz)) * 16 * 10)."
230
        }
231
    }
232
 
233
    cdl_component CYGBLD_GLOBAL_OPTIONS {
234
        display "Global build options"
235
        flavor  none
236
        parent  CYGPKG_NONE
237
 
238
        description   "Global build options including control over compiler
239
                    flags, linker flags and choice of toolchain."
240
 
241
        cdl_option CYGBLD_GLOBAL_COMMAND_PREFIX {
242
            display "Global command prefix"
243
            flavor  data
244
            no_define
245
            default_value { "m68k-elf" }
246
 
247
            description       "This option specifies the command prefix used
248
                            when invoking the build tools."
249
        }
250
 
251
        cdl_option CYGBLD_GLOBAL_CFLAGS {
252
            display "Global compiler flags"
253
            flavor  data
254
            no_define
255
            default_value { CYGBLD_GLOBAL_WARNFLAGS . "-m5206e -malign-int -g -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions " }
256
            description       "This option controls the global compiler flags
257
                            which are used to compile all packages by default.
258
                            Individual packages may define options which
259
                            override these global flags."
260
        }
261
 
262
        cdl_option CYGBLD_GLOBAL_LDFLAGS {
263
            display "Global linker flags"
264
            flavor  data
265
            no_define
266
            default_value { "-m5206e -g -nostdlib -Wl,--gc-sections -Wl,-static" }
267
 
268
            description       "This option controls the global linker flags.
269
                            Individual packages may define options which
270
                            override these global flags."
271
        }
272
 
273
        cdl_option CYGBLD_BUILD_GDB_STUBS {
274
            display "Build GDB stub ROM image"
275
            default_value 0
276
            requires { CYG_HAL_STARTUP == "ROM" || CYG_HAL_STARTUP == "ROMRAM" }
277
            requires CYGSEM_HAL_ROM_MONITOR
278
            requires CYGBLD_BUILD_COMMON_GDB_STUBS
279
            requires CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS
280
            requires CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT
281
            requires CYGDBG_HAL_DEBUG_GDB_THREAD_SUPPORT
282
            requires ! CYGDBG_HAL_COMMON_INTERRUPTS_SAVE_MINIMUM_CONTEXT
283
            requires ! CYGDBG_HAL_COMMON_CONTEXT_SAVE_MINIMUM
284
            no_define
285
 
286
            description       "This option enables the building of the GDB
287
                            stubs for the board. The common HAL controls
288
                            take care of most of the build process, but the
289
                            final conversion from ELF image to binary data is
290
                            handled by the platform CDL, allowing relocation
291
                            of the data if necessary."
292
 
293
            make -priority 320 {
294
                /bin/gdb_module.srec : /bin/gdb_module.img
295
                $(OBJCOPY) -S -O srec $< $@
296
            }
297
        }
298
    }
299
 
300
    cdl_component CYGHWR_MEMORY_LAYOUT {
301
        display "Memory layout"
302
        flavor data
303
        no_define
304
        calculated { (CYG_HAL_STARTUP == "RAM") ? "coldfire_m5272c3_ram" : \
305
                     (CYG_HAL_STARTUP == "ROMRAM") ? "coldfire_m5272c3_romram" : \
306
                                            "coldfire_m5272c3_rom" }
307
 
308
        cdl_option CYGHWR_MEMORY_LAYOUT_LDI {
309
            display "Memory layout linker script fragment"
310
            flavor data
311
            no_define
312
            define -file system.h CYGHWR_MEMORY_LAYOUT_LDI
313
            calculated { (CYG_HAL_STARTUP == "RAM") ? "" : \
314
                         (CYG_HAL_STARTUP == "ROMRAM") ? "" : \
315
                                                    "" }
316
        }
317
 
318
        cdl_option CYGHWR_MEMORY_LAYOUT_H {
319
            display "Memory layout header file"
320
            flavor data
321
            no_define
322
            define -file system.h CYGHWR_MEMORY_LAYOUT_H
323
            calculated { (CYG_HAL_STARTUP == "RAM") ? "" : \
324
                         (CYG_HAL_STARTUP == "ROMRAM") ? "" : \
325
                                                    "" }
326
        }
327
    }
328
 
329
    cdl_option CYGSEM_HAL_USE_ROM_MONITOR {
330
        display       "Work with a ROM monitor"
331
        flavor        booldata
332
        legal_values  { "GDB_stubs" }
333
        default_value { CYG_HAL_STARTUP == "RAM" ? "GDB_stubs" : 0 }
334
        requires      { CYG_HAL_STARTUP == "RAM" }
335
        parent        CYGPKG_HAL_ROM_MONITOR
336
 
337
        description       "Support can be enabled for boot ROMs or ROM
338
                        monitors which contain GDB stubs. This support
339
                        changes various eCos semantics such as the encoding of
340
                        diagnostic output, and the overriding of hardware
341
                        interrupt vectors."
342
    }
343
 
344
    cdl_option CYGSEM_HAL_ROM_MONITOR {
345
        display       "Behave as a ROM monitor"
346
        flavor        bool
347
        default_value 0
348
        parent        CYGPKG_HAL_ROM_MONITOR
349
        requires      { CYG_HAL_STARTUP == "ROM" || CYG_HAL_STARTUP == "ROMRAM" }
350
 
351
        description       "Enable this option if this program is to be used as
352
                        a ROM monitor, i.e. applications will be loaded into
353
                        RAM on the board, and this ROM monitor may process
354
                        exceptions or interrupts generated from the
355
                        application. This enables features such as utilizing
356
                        a separate interrupt stack when exceptions are
357
                        generated."
358
    }
359
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.