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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 786 skrzyp
#==========================================================================
2
#
3
#      hal_arm_aim711.cdl
4
#
5
#
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 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):    gthomas
43
# Contributors: gthomas, jskov, r.cassebohm
44
#               Grant Edwards 
45
# Date:         2001-07-31
46
# Purpose:
47
# Description:
48
#
49
#####DESCRIPTIONEND####
50
#
51
#========================================================================*/
52
 
53
 
54
cdl_package CYGPKG_HAL_ARM_AIM711 {
55
    display       "ARM Industrial Module AIM 711"
56
    parent        CYGPKG_HAL_ARM
57
    define_header hal_arm_aim711.h
58
    include_dir   cyg/hal
59
    hardware
60
    description   "
61
        The ARM Industrial Module AIM 711 HAL package provides the support
62
        needed to run eCos on a ARM Industrial Module AIM 711 board from
63
        Vision Systems GmbH"
64
 
65
    compile       hal_diag.c aim711_misc.c
66
 
67
    implements    CYGINT_HAL_VIRTUAL_VECTOR_SUPPORT
68
    implements    CYGINT_HAL_DEBUG_GDB_STUBS
69
    implements    CYGINT_HAL_DEBUG_GDB_STUBS_BREAK
70
    implements    CYGINT_HAL_ARM_ARCH_ARM7
71
    implements    CYGINT_HAL_ARM_THUMB_ARCH
72
    implements    CYGINT_HAL_ARM_BIGENDIAN
73
 
74
    requires { CYGHWR_HAL_ARM_BIGENDIAN == 1 }
75
    requires { is_active(CYGPKG_DEVS_ETH_ARM_KS32C5000) implies
76
               CYGPKG_DEVS_ETH_ARM_KS32C5000_PHY_RTL8201 }
77
    requires { is_active(CYGPKG_DEVS_ETH_ARM_KS32C5000) implies
78
               (CYGPKG_DEVS_ETH_ARM_KS32C5000_PHYADDR == 2) }
79
 
80
    define_proc {
81
        puts $::cdl_system_header "#define CYGBLD_HAL_TARGET_H   "
82
        puts $::cdl_system_header "#define CYGBLD_HAL_PLATFORM_H "
83
        puts $::cdl_header ""
84
        puts $::cdl_header "#define HAL_PLATFORM_CPU    \"ARM 7TDMI\""
85
        puts $::cdl_header "#define HAL_PLATFORM_BOARD  \"AIM 711\""
86
        puts $::cdl_header "#define HAL_PLATFORM_EXTRA  \"\""
87
        puts $::cdl_header ""
88
        puts $::cdl_header "#define HAL_PLATFORM_MACHINE_TYPE  140"
89
        puts $::cdl_header "#define CYGHWR_REDBOOT_ARM_TRAMPOLINE_ADDRESS 0x200000"
90
        puts $::cdl_header ""
91
    }
92
 
93
    cdl_component CYG_HAL_STARTUP {
94
        display       "Startup type"
95
        flavor        data
96
        legal_values  {"RAM" "ROM" "ROMRAM"}
97
        default_value {"RAM"}
98
        no_define
99
        define -file system.h CYG_HAL_STARTUP
100
        description   "
101
           When targetting the AIM 711 board it is possible to build
102
           the system for either RAM, ROM or ROMRAM bootstrap.
103
           RAM bootstrap generally requires that the board
104
           is equipped with ROMs containing a suitable ROM monitor or
105
           equivalent software that allows GDB to download the eCos
106
           application on to the board. The ROM bootstrap typically
107
           requires that the eCos application be blown into the FLASH.
108
           The ROMRAM bootstrap is also stored in FLASH, but will be
109
           executed in RAM."
110
    }
111
 
112
    cdl_component CYG_HAL_CPUTYPE {
113
        display       "cpu type"
114
        flavor        data
115
        calculated {"S3C4510A"}
116
        no_define
117
        define -file system.h CYG_HAL_CPUTYPE
118
        description   "Which version of processor is on board."
119
    }
120
 
121
    cdl_component CYGNUM_HAL_CPUCLOCK {
122
        display       "cpu clock"
123
        flavor        data
124
        calculated 50000000
125
        no_define
126
        define -file system.h CYGNUM_HAL_CPUCLOCK
127
        description   "Frequency of cpu clock in Hz."
128
    }
129
 
130
    cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS {
131
        display      "Number of diag/debug communication channels on the board"
132
        flavor       data
133
        calculated   2
134
    }
135
 
136
    cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_DEFAULT {
137
        display      "Default console channel."
138
        flavor       data
139
        legal_values     0 to CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS-1
140
        calculated   0
141
    }
142
 
143
    cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_DEBUG_CHANNEL {
144
        display          "Debug serial port"
145
        flavor data
146
        legal_values     0 to CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS-1
147
        default_value    0
148
        description      "The AIM 711 board has two diag/debug
149
                          serial ports. This option chooses which port will
150
                          be used to connect to a host running GDB."
151
     }
152
 
153
     cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL {
154
         display          "Diagnostic serial port"
155
         flavor data
156
         legal_values     0 to CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS-1
157
         default_value    CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_DEFAULT
158
         description      "
159
            The AIM 711 board has two diag/debug serial ports.  This option
160
            chooses which port will be used for diagnostic output."
161
     }
162
 
163
    cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_CHANNELS_DEFAULT_BAUD {
164
        display       "Console/GDB serial port baud rate"
165
        flavor        data
166
        legal_values  9600 19200 38400 57600 115200
167
        default_value 38400
168
        description   "
169
            This option controls the default baud rate used for the
170
            Console/GDB connection."
171
    }
172
 
173
    # Real-time clock/counter specifics
174
    cdl_component CYGNUM_HAL_RTC_CONSTANTS {
175
        display       "Real-time clock constants"
176
        flavor        none
177
 
178
        cdl_option CYGNUM_HAL_RTC_NUMERATOR {
179
            display       "Real-time clock numerator"
180
            flavor        data
181
            default_value 1000000000
182
        }
183
        cdl_option CYGNUM_HAL_RTC_DENOMINATOR {
184
            display       "Real-time clock denominator"
185
            flavor        data
186
            default_value 100
187
        }
188
        cdl_option CYGNUM_HAL_RTC_PERIOD {
189
            display       "Real-time clock period"
190
            flavor        data
191
            default_value (CYGNUM_HAL_CPUCLOCK/CYGNUM_HAL_RTC_DENOMINATOR)
192
        }
193
    }
194
 
195
    cdl_component CYGBLD_GLOBAL_OPTIONS {
196
        display "Global build options"
197
        flavor  none
198
        parent  CYGPKG_NONE
199
        description   "
200
            Global build options including control over
201
            compiler flags, linker flags and choice of toolchain."
202
 
203
        cdl_option CYGBLD_GLOBAL_COMMAND_PREFIX {
204
            display "Global command prefix"
205
            flavor  data
206
            no_define
207
            default_value { "arm-eabi"}
208
            description "
209
                This option specifies the command prefix used when
210
                invoking the build tools."
211
        }
212
 
213
        cdl_option CYGBLD_GLOBAL_CFLAGS {
214
            display "Global compiler flags"
215
            flavor  data
216
            no_define
217
 
218
            default_value { CYGBLD_GLOBAL_WARNFLAGS . CYGBLD_ARCH_CFLAGS .
219
                            "-mcpu=arm7tdmi -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions " }
220
            description   "
221
                This option controls the global compiler flags which are used to
222
                compile all packages by default. Individual packages may define
223
                options which override these global flags."
224
        }
225
 
226
        cdl_option CYGBLD_GLOBAL_LDFLAGS {
227
            display "Global linker flags"
228
            flavor  data
229
            no_define
230
            default_value { CYGBLD_ARCH_LDFLAGS . "-mcpu=arm7tdmi -g -nostdlib -Wl,--gc-sections -Wl,-static" }
231
            description   "
232
                This option controls the global linker flags. Individual
233
                packages may define options which override these global flags."
234
        }
235
 
236
        cdl_option CYGBLD_BUILD_GDB_STUBS {
237
            display "Build GDB stub ROM image"
238
            default_value 0
239
            requires { CYG_HAL_STARTUP == "ROM" || CYG_HAL_STARTUP == "ROMRAM" }
240
            requires CYGSEM_HAL_ROM_MONITOR
241
            requires CYGBLD_BUILD_COMMON_GDB_STUBS
242
            requires CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS
243
            requires CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT
244
            requires CYGDBG_HAL_DEBUG_GDB_THREAD_SUPPORT
245
            requires ! CYGDBG_HAL_COMMON_INTERRUPTS_SAVE_MINIMUM_CONTEXT
246
            requires ! CYGDBG_HAL_COMMON_CONTEXT_SAVE_MINIMUM
247
            no_define
248
            description "
249
                This option enables the building of the GDB stubs for the
250
                board. The common HAL controls takes care of most of the
251
                build process, but the final conversion from ELF image to
252
                binary data is handled by the platform CDL, allowing
253
                relocation of the data if necessary."
254
 
255
            make -priority 320 {
256
                /bin/gdb_module.bin : /bin/gdb_module.img
257
                $(OBJCOPY) -O binary $< $@
258
            }
259
        }
260
    }
261
 
262
    cdl_component CYGHWR_MEMORY_LAYOUT {
263
        display "Memory layout"
264
        flavor data
265
        no_define
266
        calculated { (CYG_HAL_STARTUP == "RAM") ?    "arm_aim711_ram" :
267
                     (CYG_HAL_STARTUP == "ROMRAM") ? "arm_aim711_romram" :
268
                                                     "arm_aim711_rom" }
269
 
270
 
271
        cdl_option CYGHWR_MEMORY_LAYOUT_LDI {
272
            display "Memory layout linker script fragment"
273
            flavor data
274
            no_define
275
            define -file system.h CYGHWR_MEMORY_LAYOUT_LDI
276
            calculated { (CYG_HAL_STARTUP == "RAM") ? "" :
277
                         (CYG_HAL_STARTUP == "ROMRAM") ? "" :
278
                                                      "" }
279
        }
280
 
281
        cdl_option CYGHWR_MEMORY_LAYOUT_H {
282
            display "Memory layout header file"
283
            flavor data
284
            no_define
285
            define -file system.h CYGHWR_MEMORY_LAYOUT_H
286
            calculated { (CYG_HAL_STARTUP == "RAM") ? "" :
287
                         (CYG_HAL_STARTUP == "ROMRAM") ? "" :
288
                                                      "" }
289
        }
290
    }
291
 
292
    cdl_option CYGSEM_HAL_ROM_MONITOR {
293
        display       "Behave as a ROM monitor"
294
        flavor        bool
295
        default_value 0
296
        parent        CYGPKG_HAL_ROM_MONITOR
297
        requires      { CYG_HAL_STARTUP == "ROM" || CYG_HAL_STARTUP == "ROMRAM" }
298
        description   "
299
            Enable this option if this program is to be used as a ROM monitor,
300
            i.e. applications will be loaded into RAM on the board, and this
301
            ROM monitor may process exceptions or interrupts generated from the
302
            application. This enables features such as utilizing a separate
303
            interrupt stack when exceptions are generated."
304
    }
305
 
306
    cdl_option CYGSEM_HAL_USE_ROM_MONITOR {
307
         display       "Work with a ROM monitor"
308
         flavor        booldata
309
         legal_values  { "Generic" "GDB_stubs" }
310
         default_value { CYG_HAL_STARTUP == "RAM" ? "GDB_stubs" : 0 }
311
         parent        CYGPKG_HAL_ROM_MONITOR
312
         requires      { CYG_HAL_STARTUP == "RAM" }
313
         description   "
314
             Support can be enabled for different varieties of ROM monitor.
315
             This support changes various eCos semantics such as the encoding
316
             of diagnostic output, or the overriding of hardware interrupt
317
             vectors.
318
             Firstly there is \"Generic\" support which prevents the HAL
319
             from overriding the hardware vectors that it does not use, to
320
             instead allow an installed ROM monitor to handle them. This is
321
             the most basic support which is likely to be common to most
322
             implementations of ROM monitor.
323
             \"GDB_stubs\" provides support when GDB stubs are included in
324
             the ROM monitor or boot ROM."
325
     }
326
 
327
    cdl_component CYGPKG_REDBOOT_HAL_OPTIONS {
328
        display       "Redboot HAL options"
329
        flavor        none
330
        no_define
331
        parent        CYGPKG_REDBOOT
332
        active_if     CYGPKG_REDBOOT
333
        description   "
334
            This option lists the target's requirements for a valid Redboot
335
            configuration."
336
 
337
        cdl_component CYGPKG_REDBOOT_AIM711_EEPROM_RDWR {
338
            display        "Provide the eeprom commands in RedBoot"
339
            flavor         bool
340
            default_value  1
341
            parent         CYGPKG_REDBOOT_ARM_OPTIONS
342
            #active_if      CYGBLD_BUILD_REDBOOT_WITH_EXEC
343
            description    "
344
                This option provides the eeprom_read and eeprom_write
345
                commands."
346
            compile -library=libextras.a redboot_eeprom.c
347
        }
348
 
349
        cdl_option CYGBLD_BUILD_REDBOOT_BIN {
350
            display       "Build Redboot ROM binary image"
351
            active_if     CYGBLD_BUILD_REDBOOT
352
            default_value 1
353
            no_define
354
            description "This option enables the conversion of the Redboot ELF
355
                         image to a binary image suitable for ROM programming."
356
 
357
            make -priority 325 {
358
                /bin/redboot.bin : /bin/redboot.elf
359
                $(OBJCOPY) --strip-debug $< $(@:.bin=.img)
360
                $(OBJCOPY) -O srec $< $(@:.bin=.srec)
361
                $(OBJCOPY) -O binary $< $@
362
            }
363
        }
364
    }
365
 
366
    cdl_option CYGSEM_HAL_LED_WITH_DELAY {
367
        display       "POST LED output with delays"
368
        flavor        bool
369
        default_value 0
370
        description   "
371
            Enable this option to have delays between POST codes shown on the
372
            service board LEDs."
373
    }
374
}

powered by: WebSVN 2.1.0

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