1 |
27 |
unneback |
# ====================================================================
|
2 |
|
|
#
|
3 |
|
|
# hal_arm_sa11x0.cdl
|
4 |
|
|
#
|
5 |
|
|
# ARM SA11x0 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): gthomas
|
44 |
|
|
# Original data: gthomas
|
45 |
|
|
# Contributors:
|
46 |
|
|
# Date: 2000-05-08
|
47 |
|
|
#
|
48 |
|
|
#####DESCRIPTIONEND####
|
49 |
|
|
#
|
50 |
|
|
# ====================================================================
|
51 |
|
|
cdl_package CYGPKG_HAL_ARM_SA11X0 {
|
52 |
|
|
display "ARM SA11X0 architecture"
|
53 |
|
|
parent CYGPKG_HAL_ARM
|
54 |
|
|
hardware
|
55 |
|
|
include_dir cyg/hal
|
56 |
|
|
define_header hal_arm_sa11x0.h
|
57 |
|
|
description "
|
58 |
|
|
This HAL variant package provides generic
|
59 |
|
|
support for the Intel StrongARM SA11x0 processors. It is also
|
60 |
|
|
necessary to select a specific target platform HAL
|
61 |
|
|
package."
|
62 |
|
|
|
63 |
|
|
implements CYGINT_HAL_ARM_ARCH_STRONGARM
|
64 |
|
|
implements CYGINT_HAL_VIRTUAL_VECTOR_COMM_BAUD_SUPPORT
|
65 |
|
|
|
66 |
|
|
# Let the architectural HAL see this variant's interrupts file -
|
67 |
|
|
# the SA11x0 has no variation between targets here.
|
68 |
|
|
define_proc {
|
69 |
|
|
puts $::cdl_header "#define CYGBLD_HAL_VAR_INTS_H "
|
70 |
|
|
puts $::cdl_system_header "#define CYGBLD_HAL_ARM_VAR_IO_H"
|
71 |
|
|
|
72 |
|
|
puts $::cdl_header "#define CYGPRI_KERNEL_TESTS_DHRYSTONE_PASSES 1000000"
|
73 |
|
|
}
|
74 |
|
|
|
75 |
|
|
compile hal_diag.c sa11x0_misc.c
|
76 |
|
|
|
77 |
|
|
cdl_option CYGHWR_HAL_ARM_SA11X0_PROCESSOR_CLOCK {
|
78 |
|
|
display "Processor clock rate"
|
79 |
|
|
active_if { CYG_HAL_STARTUP == "ROM" }
|
80 |
|
|
flavor data
|
81 |
|
|
legal_values 59000 73700 88500 103200 118000 132700 147500 162200 176900 191700 206400 221200
|
82 |
|
|
default_value { CYGHWR_HAL_ARM_SA11X0_PROCESSOR_CLOCK_OVERRIDE_DEFAULT ?
|
83 |
|
|
CYGHWR_HAL_ARM_SA11X0_PROCESSOR_CLOCK_OVERRIDE_DEFAULT : 221200}
|
84 |
|
|
description "
|
85 |
|
|
The SA-1100 processor can run at various frequencies.
|
86 |
|
|
These values are expressed in KHz. Note that there are
|
87 |
|
|
several steppings of the SA-1100 rated to run at different
|
88 |
|
|
maximum frequencies. Check the specs to make sure that your
|
89 |
|
|
particular processor can run at the rate you select here."
|
90 |
|
|
}
|
91 |
|
|
|
92 |
|
|
# Real-time clock/counter specifics
|
93 |
|
|
cdl_component CYGNUM_HAL_RTC_CONSTANTS {
|
94 |
|
|
display "Real-time clock constants"
|
95 |
|
|
flavor none
|
96 |
|
|
no_define
|
97 |
|
|
|
98 |
|
|
cdl_option CYGNUM_HAL_RTC_NUMERATOR {
|
99 |
|
|
display "Real-time clock numerator"
|
100 |
|
|
flavor data
|
101 |
|
|
calculated 1000000000
|
102 |
|
|
}
|
103 |
|
|
cdl_option CYGNUM_HAL_RTC_DENOMINATOR {
|
104 |
|
|
display "Real-time clock denominator"
|
105 |
|
|
flavor data
|
106 |
|
|
default_value 100
|
107 |
|
|
description "
|
108 |
|
|
This option selects the heartbeat rate for the real-time clock.
|
109 |
|
|
The rate is specified in ticks per second. Change this value
|
110 |
|
|
with caution - too high and your system will become saturated
|
111 |
|
|
just handling clock interrupts, too low and some operations
|
112 |
|
|
such as thread scheduling may become sluggish."
|
113 |
|
|
}
|
114 |
|
|
cdl_option CYGNUM_HAL_RTC_PERIOD {
|
115 |
|
|
display "Real-time clock period"
|
116 |
|
|
flavor data
|
117 |
|
|
calculated (3686400/CYGNUM_HAL_RTC_DENOMINATOR) ;# Clock for OS Timer is 3.6864MHz
|
118 |
|
|
}
|
119 |
|
|
}
|
120 |
|
|
|
121 |
|
|
# Control over hardware layout.
|
122 |
|
|
cdl_interface CYGHWR_HAL_ARM_SA11X0_UART1 {
|
123 |
|
|
display "UART1 available as diagnostic/debug channel"
|
124 |
|
|
description "
|
125 |
|
|
The SA11x0 chip has multiple serial channels which may be
|
126 |
|
|
used for different things on different platforms. This
|
127 |
|
|
interface allows a platform to indicate that the specified
|
128 |
|
|
serial port can be used as a diagnostic and/or debug channel."
|
129 |
|
|
}
|
130 |
|
|
|
131 |
|
|
cdl_interface CYGHWR_HAL_ARM_SA11X0_UART3 {
|
132 |
|
|
display "UART3 available as diagnostic/debug channel"
|
133 |
|
|
description "
|
134 |
|
|
The SA11x0 chip has multiple serial channels which may be
|
135 |
|
|
used for different things on different platforms. This
|
136 |
|
|
interface allows a platform to indicate that the specified
|
137 |
|
|
serial port can be used as a diagnostic and/or debug channel."
|
138 |
|
|
}
|
139 |
|
|
|
140 |
|
|
cdl_option CYGPKG_HAL_ARM_SA11X0_TESTS {
|
141 |
|
|
display "SA11x0 HAL tests"
|
142 |
|
|
flavor data
|
143 |
|
|
no_define
|
144 |
|
|
calculated { "tests/mmap_test" }
|
145 |
|
|
description "
|
146 |
|
|
This option specifies the set of tests for the SA11x0 HAL."
|
147 |
|
|
}
|
148 |
|
|
|
149 |
|
|
|
150 |
|
|
cdl_component CYGPKG_REDBOOT_HAL_SA11X0_OPTIONS {
|
151 |
|
|
display "Redboot HAL variant options"
|
152 |
|
|
flavor none
|
153 |
|
|
no_define
|
154 |
|
|
parent CYGPKG_REDBOOT
|
155 |
|
|
active_if CYGPKG_REDBOOT
|
156 |
|
|
|
157 |
|
|
# RedBoot details
|
158 |
|
|
requires { CYGHWR_REDBOOT_ARM_LINUX_EXEC_ADDRESS_DEFAULT == 0xc0008000 }
|
159 |
|
|
define_proc {
|
160 |
|
|
puts $::cdl_header "#define CYGHWR_REDBOOT_ARM_TRAMPOLINE_ADDRESS 0x00001f00"
|
161 |
|
|
}
|
162 |
|
|
}
|
163 |
|
|
}
|