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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [packages/] [hal/] [v85x/] [ceb_v850/] [v2_0/] [cdl/] [hal_v85x_ceb_v850.cdl] - Blame information for rev 565

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 27 unneback
# ====================================================================
2
#
3
#      hal_v85x_v850_ceb.cdl
4
#
5
#      V850/CEB 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):      gthomas, jlarmour
44
# Original data:  bartv, jskov
45
# Contributors:
46
# Date:           2000-03-10
47
#
48
#####DESCRIPTIONEND####
49
#
50
# ====================================================================
51
 
52
cdl_package CYGPKG_HAL_V85X_V850_CEB {
53
    display       "Cosmo CEB-V850 board"
54
    parent        CYGPKG_HAL_V85X
55
    requires      CYGPKG_HAL_V85X_V850
56
    define_header hal_v85x_v850_ceb.h
57
    include_dir   cyg/hal
58
    description   "
59
           The CEB-v850 HAL supports the CEB-V850 evaluation board fitted
60
           with a NEC V850/SA1 or NEC V850/SB1."
61
 
62
    compile  plf_misc.c plf_stub.c
63
 
64
    implements    CYGINT_HAL_DEBUG_GDB_STUBS
65
    implements    CYGINT_HAL_DEBUG_GDB_STUBS_BREAK
66
    implements    CYGINT_HAL_VIRTUAL_VECTOR_SUPPORT
67
    implements    CYGINT_HAL_V850_DIAG_ONCHIP_SERIAL0
68
 
69
    define_proc {
70
        puts $::cdl_system_header "#define CYGBLD_HAL_TARGET_H   "
71
        puts $::cdl_system_header "#define CYGBLD_HAL_PLATFORM_H "
72
 
73
        puts $::cdl_header "#define CYGPRI_KERNEL_TESTS_DHRYSTONE_PASSES 20000"
74
    }
75
 
76
    cdl_option CYG_HAL_STARTUP {
77
        display       "Startup type"
78
        flavor        data
79
        legal_values  {"RAM" "ROM" "ROMRAM" }
80
        default_value {"RAM"}
81
        no_define
82
        define -file system.h CYG_HAL_STARTUP
83
        description   "
84
           When targetting the CEB board it is possible to build
85
           the system for either RAM bootstrap, ROM bootstrap, or ROMRAM
86
           bootstrap. RAM bootstrap generally requires that the board
87
           is equipped with ROMs containing a suitable ROM monitor or
88
           equivalent software that allows GDB to download the eCos
89
           application on to the board. The ROM bootstrap typically
90
           requires that the eCos application be blown into EPROMs or
91
           equivalent technology. ROMRAM bootstrap is similar to ROM
92
           bootstrap, but everything is copied to RAM before execution
93
           starts thus improving performance, but at the cost of an
94
           increased RAM footprint."
95
    }
96
 
97
    cdl_option CYG_HAL_V85X_STARTUP_FLASH {
98
        display       "Build for on-chip FLASH"
99
        active_if     {CYG_HAL_STARTUP == "ROM"} || \
100
                      {CYG_HAL_STARTUP == "ROMRAM"}
101
        default_value 0
102
        description   "
103
           When building for ROM or ROMRAM startup, you can specify
104
           that you actually wish to target the internal FLASH rather
105
           than the external EPROM."
106
    }
107
 
108
   cdl_component CYGHWR_HAL_V85X_V850_VARIANT {
109
        display        "V850 variant"
110
        flavor         none
111
        no_define
112
        description "
113
            This component allows you to choose the V850 variant
114
            you have on your board."
115
 
116
        cdl_option CYGHWR_HAL_V85X_V850_VARIANT_SA1 {
117
            display       "SA1"
118
            default_value 1
119
            requires { 0 == CYGHWR_HAL_V85X_V850_VARIANT_SB1 }
120
            implements CYGINT_HAL_V850_VARIANT_SA1
121
            description "
122
                Choose this if you have the V850/SA1."
123
        }
124
 
125
        cdl_option CYGHWR_HAL_V85X_V850_VARIANT_SB1 {
126
            display       "SB1"
127
            default_value 0
128
            requires { 0 == CYGHWR_HAL_V85X_V850_VARIANT_SA1 }
129
            implements CYGINT_HAL_V850_VARIANT_SB1
130
            description "
131
                Choose this if you have the V850/SB1."
132
        }
133
   }
134
 
135
    cdl_option CYGHWR_HAL_V85X_CPU_FREQ {
136
        display       "CPU frequency in Hz"
137
        flavor        data
138
        legal_values  { 4194304 5000000 8000000 10000000 12580000 16000000 \
139
                        17000000 20000000 }
140
        default_value { CYGHWR_HAL_V85X_V850_VARIANT_SA1 ? 17000000 : 16000000 }
141
        description "
142
           This option contains the frequency of the board oscillator
143
           connected to the CPU, in Hertz.
144
           Choose the frequency to match the oscillator on your board.
145
           This may affect thing like serial device, interval clock and
146
           memory access speed settings."
147
    }
148
 
149
   cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS {
150
        display    "Number of communication channels on the board"
151
        flavor     data
152
#        calculated { CYGDBG_HAL_V85X_V850_ICE_DIAG ? 2 : 1 }
153
        calculated 1
154
   }
155
 
156
    cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_DEBUG_CHANNEL {
157
        display          "Debug serial port"
158
#        active_if        CYGPRI_HAL_VIRTUAL_VECTOR_DEBUG_CHANNEL_CONFIGURABLE
159
        flavor           data
160
        calculated       0
161
#        description      "
162
#            The CEB board has one serial port (channel 0), and a
163
#            communication channel for communicating with an ICE, if support
164
#            has been included (channel 1). This option chooses which port
165
#            will be used to connect to a host running GDB."
166
     }
167
 
168
     cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL {
169
         display          "Diagnostic serial port"
170
#         active_if        CYGPRI_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_CONFIGURABLE
171
         flavor data
172
         calculated        0
173
#         legal_values     0 to CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS-1
174
#         default_value    0
175
#         description      "
176
#            The CEB board has one serial port (channel 0), and a
177
#            communication channel for communicating with an ICE, if support
178
#            has been included (channel 1). This option chooses which port
179
#            will be used for diagnostic output."
180
     }
181
 
182
   cdl_option CYGHWR_HAL_V85X_V850_DIAG_BAUD {
183
       display          "Diagnostic serial port baud rate"
184
       flavor data
185
       legal_values     1200 2400 4800 9600 19200 38400
186
       default_value    38400
187
       description      "
188
           This option selects the baud rate used for the diagnostic port."
189
   }
190
 
191
#   cdl_option CYGDBG_HAL_V85X_V850_ICE_DIAG {
192
#        display         "Enable diagnostic output channel via ICE"
193
#        flavor          bool
194
#        default_value   0
195
#        parent          CYGDBG_HAL_V850_ICE
196
#        description     "
197
#                This allows a channel to be made available to output
198
#                diagnostic output via the ICE, talking to a correctly
199
#                configured gdbserv process running on the host.
200
#                To make this channel the default, set
201
#                CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL to channel 1."
202
#   }
203
 
204
    # Real-time clock/counter specifics
205
    cdl_component CYGNUM_HAL_RTC_CONSTANTS {
206
        display       "Real-time clock constants."
207
        flavor        none
208
 
209
        cdl_option CYGNUM_HAL_RTC_NUMERATOR {
210
            display       "Real-time clock numerator"
211
            flavor        data
212
            calculated    1000000000
213
        }
214
        cdl_option CYGNUM_HAL_RTC_DENOMINATOR {
215
            display       "Real-time clock denominator"
216
            flavor        data
217
            calculated    100
218
        }
219
        cdl_option CYGNUM_HAL_RTC_PERIOD {
220
            display       "Real-time clock period"
221
            flavor        data
222
            calculated    { CYGHWR_HAL_V85X_CPU_FREQ / 400 }
223
        }
224
    }
225
 
226
    cdl_component CYGBLD_GLOBAL_OPTIONS {
227
        display "Global build options"
228
        flavor  none
229
        parent  CYGPKG_NONE
230
        no_define
231
        description   "
232
            Global build options including control over
233
            compiler flags, linker flags and choice of toolchain."
234
 
235
 
236
        cdl_option CYGBLD_GLOBAL_COMMAND_PREFIX {
237
            display "Global command prefix"
238
            flavor  data
239
            no_define
240
            default_value { "v850-elf" }
241
            description "
242
                This option specifies the command prefix used when
243
                invoking the build tools."
244
        }
245
 
246
        cdl_option CYGBLD_GLOBAL_CFLAGS {
247
            display "Global compiler flags"
248
            flavor  data
249
            no_define
250
            default_value { "-mv850 -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority" }
251
            description   "
252
                This option controls the global compiler flags which
253
                are used to compile all packages by
254
                default. Individual packages may define
255
                options which override these global flags."
256
        }
257
 
258
        cdl_option CYGBLD_GLOBAL_LDFLAGS {
259
            display "Global linker flags"
260
            flavor  data
261
            no_define
262
            default_value { "-g -nostdlib -Wl,--gc-sections -Wl,-static" }
263
            description   "
264
                This option controls the global linker flags. Individual
265
                packages may define options which override these global flags."
266
        }
267
 
268
        cdl_option CYGBLD_BUILD_GDB_STUBS {
269
            display "Build GDB stub ROM image"
270
            default_value 0
271
            requires { CYG_HAL_STARTUP == "ROM" }
272
            requires CYGSEM_HAL_ROM_MONITOR
273
            requires CYGBLD_BUILD_COMMON_GDB_STUBS
274
            requires CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS
275
            requires CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT
276
            requires ! CYGDBG_HAL_DEBUG_GDB_CTRLC_SUPPORT
277
            requires CYGDBG_HAL_DEBUG_GDB_THREAD_SUPPORT
278
            requires ! CYGDBG_HAL_COMMON_INTERRUPTS_SAVE_MINIMUM_CONTEXT
279
            requires ! CYGDBG_HAL_COMMON_CONTEXT_SAVE_MINIMUM
280
            no_define
281
            description "
282
                This option enables the building of the GDB stubs for the
283
                board. The common HAL controls takes care of most of the
284
                build process, but the final conversion from ELF image to
285
                binary data is handled by the platform CDL, allowing
286
                relocation of the data if necessary."
287
 
288
            make -priority 320 {
289
                /bin/gdb_module.bin : /bin/gdb_module.img
290
                $(OBJCOPY) -O binary $< $@
291
            }
292
            make -priority 320 {
293
                /bin/gdb_module.sre : /bin/gdb_module.img
294
                $(OBJCOPY) -O srec $< $@
295
            }
296
        }
297
    }
298
 
299
    cdl_component CYGHWR_MEMORY_LAYOUT {
300
        display "Memory layout"
301
        flavor data
302
        no_define
303
        calculated { CYG_HAL_STARTUP == "RAM" ? "v85x_v850_ceb_ram" : \
304
                     CYG_HAL_STARTUP == "ROM" ? \
305
                     CYG_HAL_V85X_STARTUP_FLASH == 0 ? "v85x_v850_ceb_rom" : "v85x_v850_ceb_flash" : \
306
                     CYG_HAL_V85X_STARTUP_FLASH == 0 ? "v85x_v850_ceb_romram" : "v85x_v850_ceb_flashromram" }
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 == "ROM" ? \
315
                         CYG_HAL_V85X_STARTUP_FLASH == 0 ? "" : "" : \
316
                         CYG_HAL_V85X_STARTUP_FLASH == 0 ? "" : "" }
317
        }
318
 
319
        cdl_option CYGHWR_MEMORY_LAYOUT_H {
320
            display "Memory layout header file"
321
            flavor data
322
            no_define
323
            define -file system.h CYGHWR_MEMORY_LAYOUT_H
324
            calculated { CYG_HAL_STARTUP == "RAM" ? "" : \
325
                         CYG_HAL_STARTUP == "ROM" ? \
326
                         CYG_HAL_V85X_STARTUP_FLASH == 0 ? "" : "" : \
327
                         CYG_HAL_V85X_STARTUP_FLASH == 0 ? "" : "" }
328
        }
329
    }
330
 
331
   cdl_option CYGSEM_HAL_USE_ROM_MONITOR {
332
        display       "Work with a ROM monitor"
333
        flavor        booldata
334
        legal_values  { "Generic" "GDB_stubs" }
335
        default_value { CYG_HAL_STARTUP == "RAM" ? "GDB_stubs" : 0 }
336
        parent        CYGPKG_HAL_ROM_MONITOR
337
        requires      { CYG_HAL_STARTUP == "RAM" }
338
        description   "
339
            Support can be enabled for three different varieties of ROM monitor.
340
            This support changes various eCos semantics such as the encoding
341
            of diagnostic output, or the overriding of hardware interrupt
342
            vectors.
343
            Firstly there is \"Generic\" support which prevents the HAL
344
            from overriding the hardware vectors that it does not use, to
345
            instead allow an installed ROM monitor to handle them. This is
346
            the most basic support which is likely to be common to most
347
            implementations of ROM monitor.
348
            \"GDB_stubs\" provides support when GDB stubs are included in
349
            the ROM monitor or boot ROM."
350
    }
351
 
352
    cdl_option CYGSEM_HAL_ROM_MONITOR {
353
        display       "Behave as a ROM monitor"
354
        flavor        bool
355
        default_value 0
356
        parent        CYGPKG_HAL_ROM_MONITOR
357
        requires      { CYG_HAL_STARTUP == "ROM" }
358
        description   "
359
            Enable this option if this program is to be used as a ROM monitor,
360
            i.e. applications will be loaded into RAM on the board, and this
361
            ROM monitor may process exceptions or interrupts generated from the
362
            application. This enables features such as utilizing a separate
363
            interrupt stack when exceptions are generated."
364
    }
365
}

powered by: WebSVN 2.1.0

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