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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [packages/] [hal/] [sh/] [cq7750/] [current/] [cdl/] [hal_sh_sh7750_cq7750.cdl] - Blame information for rev 791

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

Line No. Rev Author Line
1 786 skrzyp
# ====================================================================
2
#
3
#      hal_sh_sh7750_cq7750.cdl
4
#
5
#      CQ7750 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 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):      jskov
43
# Original data:  jskov
44
# Contributors:   Ryozaburo Suzuki
45
# Date:           1999-10-29
46
#
47
#####DESCRIPTIONEND####
48
#
49
# ====================================================================
50
 
51
cdl_package CYGPKG_HAL_SH_SH7750_CQ7750 {
52
    display       "CqREEK SH7750 board"
53
    parent        CYGPKG_HAL_SH
54
    requires      CYGPKG_HAL_SH_7750
55
    define_header hal_sh_sh7750_cq7750.h
56
    include_dir   cyg/hal
57
    description   "
58
        The cq HAL package provides the support needed to run
59
        eCos on a CqREEK SH7750 board."
60
 
61
    compile       hal_diag.c plf_misc.c
62
 
63
    implements    CYGINT_HAL_DEBUG_GDB_STUBS
64
    implements    CYGINT_HAL_DEBUG_GDB_STUBS_BREAK
65
    implements    CYGINT_HAL_VIRTUAL_VECTOR_SUPPORT
66
    implements    CYGINT_HAL_SH_PLF_BIGENDIAN_DEFAULT
67
 
68
    define_proc {
69
        puts $::cdl_system_header "#define CYGBLD_HAL_TARGET_H   "
70
        puts $::cdl_system_header "#define CYGBLD_HAL_PLATFORM_H "
71
 
72
        puts $::cdl_header "#define CYGNUM_HAL_SH_SH4_SCIF_PORTS 1"
73
        puts $::cdl_header "#define CYGHWR_HAL_VSR_TABLE 0x08000000"
74
        puts $::cdl_header "#define CYGHWR_HAL_VECTOR_TABLE 0x08000100"
75
    }
76
 
77
    cdl_component CYG_HAL_STARTUP {
78
        display       "Startup type"
79
        flavor        data
80
        legal_values  {"RAM" "ROM"}
81
        default_value {"RAM"}
82
        no_define
83
        define -file system.h CYG_HAL_STARTUP
84
        description   "
85
           When targetting the CQ7750 board it is possible to build
86
           the system for either RAM bootstrap or ROM bootstrap.
87
           RAM bootstrap generally requires that the board
88
           is equipped with ROMs containing a suitable ROM monitor or
89
           equivalent software that allows GDB to download the eCos
90
           application on to the board. The ROM bootstrap typically
91
           requires that the eCos application be blown into EPROMs or
92
           equivalent technology."
93
    }
94
 
95
 
96
    cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS {
97
        display      "Number of communication channels on the board"
98
        flavor       data
99
        calculated   1
100
    }
101
 
102
    cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_DEBUG_CHANNEL {
103
        display          "Debug serial port"
104
        flavor data
105
        legal_values     0 to CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS-1
106
        default_value    0
107
        description      "
108
           The CQ/7750 board has only one serial port. This option
109
           chooses which port will be used to connect to a host
110
           running GDB."
111
    }
112
 
113
    cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL {
114
        display          "Diagnostic serial port"
115
        flavor data
116
        legal_values     0 to CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS-1
117
        default_value    0
118
        description      "
119
           The CQ/7750 board has only one serial port.  This option
120
           chooses which port will be used for diagnostic output."
121
    }
122
 
123
    cdl_component CYGHWR_HAL_SH_PLF_CLOCK_SETTINGS {
124
        display          "SH on-chip platform clock controls"
125
        description      "
126
            The various clocks used by the system are derived from
127
            these options."
128
        flavor        none
129
        no_define
130
 
131
        cdl_option CYGHWR_HAL_SH_OOC_XTAL {
132
            display          "SH clock crystal"
133
            flavor           data
134
            legal_values     9000000 to 66000000
135
            default_value    33333333
136
            no_define
137
            description      "
138
                This option specifies the frequency of the crystal all
139
                other clocks are derived from."
140
        }
141
 
142
        cdl_option CYGHWR_HAL_SH_OOC_PLL_1 {
143
            display          "SH clock PLL circuit 1"
144
            flavor           data
145
            default_value    6
146
            legal_values     { 0 6 }
147
            description      "
148
                This selects the multiplication factor provided by
149
                PLL1."
150
        }
151
 
152
        cdl_option CYGHWR_HAL_SH_OOC_PLL_2 {
153
            display          "SH clock PLL circuit 2"
154
            flavor           data
155
            default_value    1
156
            legal_values     { 0 1 }
157
            description      "
158
                This selects the multiplication factor provided by
159
                PLL2. If PLL2 is disabled this option should
160
                be set to zero."
161
        }
162
 
163
        cdl_option CYGHWR_HAL_SH_OOC_DIVIDER_1 {
164
            display          "SH clock first clock divider"
165
            flavor           data
166
            legal_values     { 1 2 }
167
            default_value    1
168
            no_define
169
            description      "
170
                First stage clock divider according to the mode (MD0..2).
171
                Set 2 for mode 2 and 4, otherwise set 1."
172
        }
173
 
174
        cdl_option CYGHWR_HAL_SH_OOC_DIVIDER_IFC {
175
            display          "SH CPU clock divider"
176
            flavor           data
177
            default_value    1
178
            legal_values     { 1 2 3 4 6 8 }
179
            description      "
180
                This divider option affects the CPU clock."
181
        }
182
 
183
        cdl_option CYGHWR_HAL_SH_OOC_DIVIDER_BFC {
184
            display          "SH bus clock divider"
185
            flavor           data
186
            default_value    3
187
            legal_values     { 1 2 3 4 6 8 }
188
            description      "
189
                This divider option affects the bus clock."
190
        }
191
 
192
        cdl_option CYGHWR_HAL_SH_OOC_DIVIDER_PFC {
193
            display          "SH peripheral clock divider"
194
            flavor           data
195
            default_value    6
196
            legal_values     { 1 2 3 4 6 8 }
197
            description      "
198
                This divider option affects the peripheral clock."
199
        }
200
 
201
        cdl_option CYGHWR_HAL_SH_OOC_CLOCK_MODE {
202
            display          "SH clock mode"
203
            flavor           data
204
            default_value    5
205
            legal_values     { 0 1 2 3 4 5 }
206
            description      "
207
                This option must mirror the clock mode hardwired on
208
                the MD0-MD2 pins of the CPU in order to correctly
209
                initialize the FRQCR register."
210
        }
211
    }
212
 
213
    cdl_component CYGBLD_GLOBAL_OPTIONS {
214
        display "Global build options"
215
        flavor  none
216
        parent  CYGPKG_NONE
217
        description   "
218
            Global build options including control over
219
            compiler flags, linker flags and choice of toolchain."
220
 
221
 
222
        cdl_option CYGBLD_GLOBAL_COMMAND_PREFIX {
223
            display "Global command prefix"
224
            flavor  data
225
            no_define
226
            default_value { "sh-elf" }
227
            description "
228
                This option specifies the command prefix used when
229
                invoking the build tools."
230
        }
231
 
232
        # CPU flags should be -m4-nofpu
233
        cdl_option CYGBLD_GLOBAL_CFLAGS {
234
            display "Global compiler flags"
235
            flavor  data
236
            no_define
237
            default_value { CYGBLD_GLOBAL_WARNFLAGS .
238
                            (CYGHWR_HAL_SH_BIGENDIAN ? "-mb" : "-ml") .
239
                            " -m3 -ggdb -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions"
240
            }
241
            description   "
242
                This option controls the global compiler flags which
243
                are used to compile all packages by
244
                default. Individual packages may define
245
                options which override these global flags."
246
        }
247
 
248
        cdl_option CYGBLD_GLOBAL_LDFLAGS {
249
            display "Global linker flags"
250
            flavor  data
251
            no_define
252
            default_value { (CYGHWR_HAL_SH_BIGENDIAN ? "-mb" : "-ml") . " -m3 -ggdb -nostdlib -Wl,--gc-sections -Wl,-static" }
253
            description   "
254
                This option controls the global linker flags. Individual
255
                packages may define options which override these global flags."
256
        }
257
 
258
        cdl_option CYGBLD_BUILD_GDB_STUBS {
259
            display "Build GDB stub ROM image"
260
            default_value 0
261
            requires { CYG_HAL_STARTUP == "ROM" }
262
            requires CYGSEM_HAL_ROM_MONITOR
263
            requires CYGBLD_BUILD_COMMON_GDB_STUBS
264
            requires CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS
265
            requires CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT
266
            requires CYGDBG_HAL_DEBUG_GDB_THREAD_SUPPORT
267
            requires ! CYGDBG_HAL_COMMON_INTERRUPTS_SAVE_MINIMUM_CONTEXT
268
            requires ! CYGDBG_HAL_COMMON_CONTEXT_SAVE_MINIMUM
269
            no_define
270
            description "
271
                This option enables the building of the GDB stubs for the
272
                board. The common HAL controls takes care of most of the
273
                build process, but the final conversion from ELF image to
274
                binary data is handled by the platform CDL, allowing
275
                relocation of the data if necessary."
276
 
277
            make -priority 320 {
278
                /bin/gdb_module.bin : /bin/gdb_module.img
279
                $(OBJCOPY) -O binary $< $@
280
            }
281
        }
282
    }
283
 
284
    cdl_component CYGHWR_MEMORY_LAYOUT {
285
        display "Memory layout"
286
        flavor data
287
        no_define
288
        calculated { CYG_HAL_STARTUP == "RAM" ? "sh_sh7750_cq7750_ram" : \
289
                                                "sh_sh7750_cq7750_rom" }
290
 
291
        cdl_option CYGHWR_MEMORY_LAYOUT_LDI {
292
            display "Memory layout linker script fragment"
293
            flavor data
294
            no_define
295
            define -file system.h CYGHWR_MEMORY_LAYOUT_LDI
296
            calculated { CYG_HAL_STARTUP == "RAM" ? "" : \
297
                                                    "" }
298
        }
299
 
300
        cdl_option CYGHWR_MEMORY_LAYOUT_H {
301
            display "Memory layout header file"
302
            flavor data
303
            no_define
304
            define -file system.h CYGHWR_MEMORY_LAYOUT_H
305
            calculated { CYG_HAL_STARTUP == "RAM" ? "" : \
306
                                                    "" }
307
        }
308
    }
309
 
310
    cdl_option CYGSEM_HAL_USE_ROM_MONITOR {
311
        display       "Work with a ROM monitor"
312
        flavor        booldata
313
        legal_values  { "GDB_stubs" }
314
        default_value { CYG_HAL_STARTUP == "RAM" ? "GDB_stubs" : 0 }
315
        requires      { CYG_HAL_STARTUP == "RAM" }
316
        parent        CYGPKG_HAL_ROM_MONITOR
317
        requires      !CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS
318
        description   "
319
            Support can be enabled for boot ROMs or ROM monitors which contain
320
            GDB stubs. This support changes various eCos semantics such as
321
            the encoding of diagnostic output, and the overriding of hardware
322
            interrupt vectors."
323
    }
324
 
325
    cdl_option CYGSEM_HAL_ROM_MONITOR {
326
        display       "Behave as a ROM monitor"
327
        flavor        bool
328
        default_value 0
329
        parent        CYGPKG_HAL_ROM_MONITOR
330
        requires      { CYG_HAL_STARTUP == "ROM" }
331
        description   "
332
            Enable this option if this program is to be used as a ROM monitor,
333
            i.e. applications will be loaded into RAM on the board, and this
334
            ROM monitor may process exceptions or interrupts generated from the
335
            application. This enables features such as utilizing a separate
336
            interrupt stack when exceptions are generated."
337
    }
338
 
339
    cdl_component CYGPKG_REDBOOT_HAL_OPTIONS {
340
        display       "Redboot HAL options"
341
        flavor        none
342
        no_define
343
        parent        CYGPKG_REDBOOT
344
        active_if     CYGPKG_REDBOOT
345
        description   "
346
            This option lists the target's requirements for a valid Redboot
347
            configuration."
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
}

powered by: WebSVN 2.1.0

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