1 |
27 |
unneback |
# ====================================================================
|
2 |
|
|
#
|
3 |
|
|
# hal_mips_tx39.cdl
|
4 |
|
|
#
|
5 |
|
|
# MIPS/TX39 variant architectural 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): jskov
|
44 |
|
|
# Original data: bartv, nickg
|
45 |
|
|
# Contributors:
|
46 |
|
|
# Date: 1999-11-02
|
47 |
|
|
#
|
48 |
|
|
#####DESCRIPTIONEND####
|
49 |
|
|
#
|
50 |
|
|
# ====================================================================
|
51 |
|
|
|
52 |
|
|
cdl_package CYGPKG_HAL_MIPS_TX39 {
|
53 |
|
|
display "TX39 variant"
|
54 |
|
|
parent CYGPKG_HAL_MIPS
|
55 |
|
|
hardware
|
56 |
|
|
include_dir cyg/hal
|
57 |
|
|
define_header hal_mips_tx39.h
|
58 |
|
|
description "
|
59 |
|
|
The TX39 architecture HAL package provides generic support
|
60 |
|
|
for this processor architecture. It is also necessary to
|
61 |
|
|
select a specific target platform HAL package."
|
62 |
|
|
|
63 |
|
|
cdl_component CYGPKG_HAL_MIPS_TX3904 {
|
64 |
|
|
display "TX3904 microprocessor"
|
65 |
|
|
default_value 1
|
66 |
|
|
implements CYGINT_HAL_MIPS_VARIANT
|
67 |
|
|
description "
|
68 |
|
|
The TMPR3904F microprocessor. This is an embedded part that in
|
69 |
|
|
addition to the TX39 processor core has built in peripherals
|
70 |
|
|
such as memory controllers, DMA controllers, serial ports and
|
71 |
|
|
timers/counters."
|
72 |
|
|
|
73 |
|
|
cdl_option CYGHWR_HAL_MIPS_FPU {
|
74 |
|
|
display "Variant FPU support"
|
75 |
|
|
calculated 0
|
76 |
|
|
}
|
77 |
|
|
|
78 |
|
|
cdl_option CYGPKG_HAL_MIPS_MSBFIRST {
|
79 |
|
|
display "CPU Variant big-endian"
|
80 |
|
|
calculated 1
|
81 |
|
|
}
|
82 |
|
|
}
|
83 |
|
|
|
84 |
|
|
define_proc {
|
85 |
|
|
puts $::cdl_header "#include "
|
86 |
|
|
}
|
87 |
|
|
|
88 |
|
|
cdl_option CYGHWR_HAL_MIPS_CPU_FREQ_ACTUAL {
|
89 |
|
|
display "Actual CPU frequency"
|
90 |
|
|
calculated (CYGHWR_HAL_MIPS_CPU_FREQ == 50 ? 49152000 : \
|
91 |
|
|
CYGHWR_HAL_MIPS_CPU_FREQ == 66 ? 66355200 : 0 )
|
92 |
|
|
flavor data
|
93 |
|
|
legal_values { 49152000 66355200 }
|
94 |
|
|
description "
|
95 |
|
|
Only the frequencies 50MHz and 66MHz are supported for this
|
96 |
|
|
CPU variant."
|
97 |
|
|
}
|
98 |
|
|
|
99 |
|
|
cdl_option CYGHWR_HAL_MIPS_TX3904_TRR_REQUIRES_SYNC {
|
100 |
|
|
display "Workaround for TX3904 Timer TRR register problem"
|
101 |
|
|
flavor bool
|
102 |
|
|
default_value { (CYGHWR_HAL_MIPS_CPU_FREQ == 50) ? 1 : 0 }
|
103 |
|
|
description "
|
104 |
|
|
Early versions of the TX3904 CPU have a bug such that if
|
105 |
|
|
coprocessor 0 (CP0) is busy outputting write buffer data, reads
|
106 |
|
|
of the clock would return bad values. This option enables a
|
107 |
|
|
workaround by not reading the clock until the write buffer
|
108 |
|
|
is empty."
|
109 |
|
|
}
|
110 |
|
|
|
111 |
|
|
compile hal_diag.c var_misc.c variant.S
|
112 |
|
|
|
113 |
|
|
make {
|
114 |
|
|
/lib/target.ld: /src/mips_tx39.ld
|
115 |
|
|
$(CC) -E -P -Wp,-MD,target.tmp -DEXTRAS=1 -xc $(INCLUDE_PATH) $(CFLAGS) -o $@ $<
|
116 |
|
|
@echo $@ ": \\" > $(notdir $@).deps
|
117 |
|
|
@tail +2 target.tmp >> $(notdir $@).deps
|
118 |
|
|
@echo >> $(notdir $@).deps
|
119 |
|
|
@rm target.tmp
|
120 |
|
|
}
|
121 |
|
|
|
122 |
|
|
cdl_option CYGBLD_LINKER_SCRIPT {
|
123 |
|
|
display "Linker script"
|
124 |
|
|
flavor data
|
125 |
|
|
no_define
|
126 |
|
|
calculated { "src/mips_tx39.ld" }
|
127 |
|
|
}
|
128 |
|
|
|
129 |
|
|
}
|