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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [packages/] [hal/] [arm/] [at91/] [jtst/] [current/] [cdl/] [hal_arm_at91_jtst.cdl] - Blame information for rev 786

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 786 skrzyp
# ====================================================================
2
#
3
#      hal_arm_at91_jtst.cdl
4
#
5
#      ARM AT91 AT572D74-DK1(JTST) 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, 2003 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):      amichelotti
43
# Contributors:   gthomas, tkoeller, nickg
44
# Date:           2004-06-3
45
#
46
#####DESCRIPTIONEND####
47
#
48
# ====================================================================
49
 
50
cdl_package CYGPKG_HAL_ARM_AT91_JTST {
51
    display       "Atmel AT572D740 eval board (JTST) HAL"
52
    parent        CYGPKG_HAL_ARM_AT91
53
    define_header hal_arm_at91_jtst.h
54
    include_dir   cyg/hal
55
    hardware
56
    description   "
57
        The JTST HAL package provides the support needed to run
58
        eCos on an Atmel AT572D740-DK1 (diopsis) eval board."
59
 
60
    compile       jtst_misc.c
61
 
62
    requires      { CYGHWR_HAL_ARM_AT91 == "JTST" }
63
    requires      { CYGHWR_HAL_ARM_AT91_FIQ     }
64
    define_proc {
65
        puts $::cdl_system_header "#define CYGBLD_HAL_TARGET_H   "
66
        puts $::cdl_system_header "#define CYGBLD_HAL_VARIANT_H  "
67
        puts $::cdl_system_header "#define CYGBLD_HAL_PLATFORM_H "
68
        puts $::cdl_system_header "#define CYGBLD_HAL_ARM_VAR_IO_H"
69
        puts $::cdl_header "#define HAL_PLATFORM_CPU    \"ARM7TDMI\""
70
        puts $::cdl_header "#define HAL_PLATFORM_BOARD  \"Atmel (jtst) AT572D74-DK1\""
71
        puts $::cdl_header "#define HAL_PLATFORM_EXTRA  \"\""
72
    }
73
 
74
cdl_component CYGNUM_HAL_RTC_CONSTANTS {
75
        display       "Real-time clock constants"
76
        flavor        none
77
 
78
        cdl_option CYGNUM_HAL_RTC_NUMERATOR {
79
            display       "Real-time clock numerator"
80
            flavor        data
81
            default_value 1000000000
82
        }
83
        cdl_option CYGNUM_HAL_RTC_DENOMINATOR {
84
            display       "Real-time clock denominator"
85
            flavor        data
86
            default_value 100
87
        }
88
        cdl_option CYGNUM_HAL_RTC_PERIOD {
89
            display       "Real-time clock period"
90
            flavor        data
91
            default_value ((CYGNUM_HAL_ARM_AT91_CLOCK_SPEED/32) / CYGNUM_HAL_RTC_DENOMINATOR)
92
        }
93
    }
94
 
95
    cdl_component CYG_HAL_STARTUP {
96
        display       "Startup type"
97
        flavor        data
98
        default_value {"RAM"}
99
        legal_values  {"RAM" "ROM" }
100
            no_define
101
            define -file system.h CYG_HAL_STARTUP
102
        description   "
103
            When targetting the AT91 EBxx eval board it is possible to build
104
            the system for either RAM bootstrap or ROM bootstrap(s). Select
105
            'ram' when building programs to load into RAM using onboard
106
            debug software such as Angel or eCos GDB stubs.  Select 'rom'
107
            when building a stand-alone application which will be put
108
            into ROM"
109
    }
110
 
111
    # Real-time clock/counter specifics
112
    cdl_option CYGNUM_HAL_ARM_AT91_CLOCK_SPEED {
113
        display       "CPU clock speed"
114
        flavor        data
115
        default_value 50000000
116
    }
117
 
118
    cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS {
119
        display      "Number of communication channels on the board"
120
        flavor       data
121
        calculated   2
122
    }
123
 
124
    cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_DEBUG_CHANNEL {
125
        display          "Debug serial port"
126
        active_if        CYGPRI_HAL_VIRTUAL_VECTOR_DEBUG_CHANNEL_CONFIGURABLE
127
        flavor data
128
        legal_values     0 to CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS-1
129
        default_value    0
130
        description      "
131
            The AT91 EBxx board has two serial ports. This option
132
            chooses which port will be used to connect to a host
133
            running GDB."
134
    }
135
 
136
    cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL {
137
        display          "Diagnostic serial port"
138
        active_if        CYGPRI_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_CONFIGURABLE
139
        flavor data
140
        legal_values     0 to CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS-1
141
        default_value    0
142
        description      "
143
            The AT91 EBxx board has two serial ports. This option
144
            chooses which port will be used for diagnostic output."
145
    }
146
 
147
    cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_BAUD {
148
        display       "Diagnostic serial port baud rate"
149
        flavor        data
150
        legal_values  9600 19200 38400 57600 115200
151
        default_value 115200
152
        description   "
153
            This option selects the baud rate used for the diagnostic port."
154
    }
155
 
156
    cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_DEBUG_CHANNEL_BAUD {
157
         display       "GDB serial port baud rate"
158
         flavor        data
159
         legal_values  9600 19200 38400 57600 115200
160
         default_value 115200
161
         description   "
162
            This option controls the baud rate used for the GDB connection."
163
    }
164
 
165
    cdl_option CYGSEM_HAL_ROM_MONITOR {
166
        display       "Behave as a ROM monitor"
167
        flavor        bool
168
        default_value 0
169
        parent        CYGPKG_HAL_ROM_MONITOR
170
        requires      { CYG_HAL_STARTUP == "ROM" }
171
        description   "
172
            Enable this option if this program is to be used as a ROM monitor,
173
            i.e. applications will be loaded into RAM on the board, and this
174
            ROM monitor may process exceptions or interrupts generated from the
175
            application. This enables features such as utilizing a separate
176
            interrupt stack when exceptions are generated."
177
    }
178
 
179
    cdl_option CYGSEM_HAL_USE_ROM_MONITOR {
180
         display       "Work with a ROM monitor"
181
         flavor        booldata
182
         legal_values  { "Generic" "GDB_stubs" }
183
         default_value { CYG_HAL_STARTUP == "RAM" ? "GDB_stubs" : 0 }
184
         parent        CYGPKG_HAL_ROM_MONITOR
185
         requires      { CYG_HAL_STARTUP == "RAM" }
186
         description   "
187
             Support can be enabled for different varieties of ROM monitor.
188
             This support changes various eCos semantics such as the encoding
189
             of diagnostic output, or the overriding of hardware interrupt
190
             vectors.
191
             Firstly there is \"Generic\" support which prevents the HAL
192
             from overriding the hardware vectors that it does not use, to
193
             instead allow an installed ROM monitor to handle them. This is
194
             the most basic support which is likely to be common to most
195
             implementations of ROM monitor.
196
             \"GDB_stubs\" provides support when GDB stubs are included in
197
             the ROM monitor or boot ROM."
198
    }
199
 
200
    cdl_component CYGPKG_REDBOOT_HAL_OPTIONS {
201
        display       "Redboot HAL options"
202
        flavor        none
203
        no_define
204
        parent        CYGPKG_REDBOOT
205
        active_if     CYGPKG_REDBOOT
206
        description   "
207
            This option lists the target's requirements for a valid Redboot
208
            configuration."
209
 
210
        cdl_option CYGBLD_BUILD_REDBOOT_BIN {
211
            display       "Build Redboot ROM binary image"
212
            active_if     CYGBLD_BUILD_REDBOOT
213
            default_value 1
214
            no_define
215
            description "This option enables the conversion of the Redboot ELF
216
                         image to a binary image suitable for ROM programming."
217
 
218
            make -priority 325 {
219
                /bin/redboot.bin : /bin/redboot.elf
220
                $(OBJCOPY) --strip-debug $< $(@:.bin=.img)
221
                $(OBJCOPY) -O srec $< $(@:.bin=.srec)
222
                $(OBJCOPY) -O binary $< $@
223
            }
224
 
225
        }
226
    }
227
 
228
    cdl_component CYGBLD_GLOBAL_OPTIONS {
229
        display "Global build options"
230
        flavor  none
231
        parent  CYGPKG_NONE
232
        description   "
233
            Global build options including control over
234
            compiler flags, linker flags and choice of toolchain."
235
 
236
 
237
        cdl_option CYGBLD_GLOBAL_COMMAND_PREFIX {
238
            display "Global command prefix"
239
            flavor  data
240
            no_define
241
            default_value { "arm-eabi"}
242
            description "
243
                This option specifies the command prefix used when
244
                invoking the build tools."
245
        }
246
 
247
        cdl_option CYGBLD_GLOBAL_CFLAGS {
248
            display "Global compiler flags"
249
            flavor  data
250
            no_define
251
            default_value { CYGBLD_GLOBAL_WARNFLAGS . CYGBLD_ARCH_CFLAGS .
252
                            "-mcpu=arm7tdmi -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions " }
253
            description   "
254
                This option controls the global compiler flags which are used
255
                to compile all packages by default. Individual packages may
256
                define options which override these global flags."
257
        }
258
 
259
        cdl_option CYGBLD_GLOBAL_LDFLAGS {
260
            display "Global linker flags"
261
            flavor  data
262
            no_define
263
            default_value { CYGBLD_ARCH_LDFLAGS . "-mcpu=arm7tdmi -Wl,--gc-sections -Wl,-static -g -nostdlib" }
264
            description   "
265
                This option controls the global linker flags. Individual
266
                packages may define options which override these global flags."
267
        }
268
    }
269
 
270
    cdl_component CYGHWR_MEMORY_LAYOUT {
271
        display "Memory layout"
272
        flavor data
273
        no_define
274
        calculated { (CYG_HAL_STARTUP == "RAM") ?    "arm_at91_jtst_ram" :
275
                     "arm_at91_jtst_rom" }
276
 
277
        cdl_option CYGHWR_MEMORY_LAYOUT_LDI {
278
            display "Memory layout linker script fragment"
279
            flavor data
280
            no_define
281
            define -file system.h CYGHWR_MEMORY_LAYOUT_LDI
282
            calculated { (CYG_HAL_STARTUP == "RAM") ?
283
                "" :
284
                "" }
285
        }
286
 
287
        cdl_option CYGHWR_MEMORY_LAYOUT_H {
288
            display "Memory layout header file"
289
            flavor data
290
            no_define
291
            define -file system.h CYGHWR_MEMORY_LAYOUT_H
292
            calculated { (CYG_HAL_STARTUP == "RAM") ?
293
                "" :
294
                "" }
295
        }
296
    }
297
}

powered by: WebSVN 2.1.0

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