1 # ====================================================================
3 # hal_arm_xscale_ixp425.cdl
5 # Intel XScale architectural HAL package configuration data
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.
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.
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
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.
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.
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.
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####
44 # Original data: msalter
48 #####DESCRIPTIONEND####
50 # ====================================================================
51 cdl_package CYGPKG_HAL_ARM_XSCALE_IXP425 {
52 display "Intel XScale IXP425 Network Processor"
54 implements CYGINT_HAL_DEBUG_GDB_STUBS
55 implements CYGINT_HAL_DEBUG_GDB_STUBS_BREAK
56 implements CYGINT_HAL_VIRTUAL_VECTOR_SUPPORT
57 implements CYGINT_HAL_VIRTUAL_VECTOR_COMM_BAUD_SUPPORT
60 define_header hal_arm_xscale_ixp425.h
62 This HAL variant package provides generic support
63 for the Intel IXP425 network processors. It is also
64 necessary to select a specific target platform HAL
67 # Let the architectural HAL see this variant's interrupts file
70 "#define CYGBLD_HAL_VAR_INTS_H <cyg/hal/hal_var_ints.h>"
72 "#define CYGBLD_HAL_VAR_H <cyg/hal/hal_ixp425.h>"
74 puts $::cdl_system_header "#define CYGBLD_HAL_ARM_VAR_IO_H"
77 compile ixp425_misc.c ixp425_pci.c ixp425_diag.c
79 cdl_option CYGHWR_HAL_ARM_XSCALE_PROCESSOR_CCLK {
80 display "Processor clock rate"
82 default_value { CYGHWR_HAL_ARM_XSCALE_PROCESSOR_CCLK_DEFAULT ?
83 CYGHWR_HAL_ARM_XSCALE_PROCESSOR_CCLK_DEFAULT : 533333}
85 The XScale processor can run at various frequencies.
86 These values are expressed in KHz."
89 cdl_option CYGHWR_HAL_IXP425_PCI_NP_WORKAROUND {
90 display "Enable IXP425 PCI NP read problem workaround"
95 # Real-time clock/counter specifics
96 cdl_component CYGNUM_HAL_RTC_CONSTANTS {
97 display "Real-time clock constants"
101 cdl_option CYGNUM_HAL_RTC_NUMERATOR {
102 display "Real-time clock numerator"
104 default_value 1000000000
106 cdl_option CYGNUM_HAL_RTC_DENOMINATOR {
107 display "Real-time clock denominator"
111 This option selects the heartbeat rate for the real-time clock.
112 The rate is specified in ticks per second. Change this value
113 with caution - too high and your system will become saturated
114 just handling clock interrupts, too low and some operations
115 such as thread scheduling may become sluggish."
117 cdl_option CYGNUM_HAL_RTC_PERIOD {
118 display "Real-time clock period"
120 default_value 1000000/CYGNUM_HAL_RTC_DENOMINATOR
122 This value gives the RTC period in microseconds. It is
123 translated into the actual clock period value in the clock
124 init and read functions."
128 cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_DEFAULT {
129 display "Default console channel."
131 legal_values 0 to CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS-1
135 cdl_option CYGNUM_HAL_ARM_IXP425_SERIAL_CHANNELS {
136 display "Number of IXP425 serial ports used on the board"
138 calculated { (CYGSEM_HAL_IXP425_PLF_USES_UART1 && CYGSEM_HAL_IXP425_PLF_USES_UART2) ? 2 : \
139 (CYGSEM_HAL_IXP425_PLF_USES_UART1 || CYGSEM_HAL_IXP425_PLF_USES_UART2) ? 1 : \
143 cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS {
144 display "Number of communication channels on the board"
146 calculated { CYGNUM_HAL_ARM_IXP425_SERIAL_CHANNELS + \
147 CYGNUM_HAL_IXP425_PLF_SERIAL_CHANNELS }
150 cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_DEBUG_CHANNEL {
151 display "Debug serial port"
152 active_if CYGPRI_HAL_VIRTUAL_VECTOR_DEBUG_CHANNEL_CONFIGURABLE
154 legal_values 0 to CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS-1
157 This option chooses which port will be used to connect to a host
161 cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL {
162 display "Diagnostic serial port"
163 active_if CYGPRI_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_CONFIGURABLE
165 legal_values 0 to CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS-1
166 default_value CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_DEFAULT
168 IXP425 boards may use two or more serial ports. This option
169 chooses which port will be used for diagnostic output."
172 cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_BAUD {
173 display "Diagnostic serial port baud rate"
175 legal_values 9600 19200 38400 57600 115200
178 This option selects the baud rate used for the diagnostic port.
179 Note: this should match the value chosen for the GDB port if the
180 diagnostic and GDB port are the same."
183 cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_DEBUG_CHANNEL_BAUD {
184 display "Debug serial port baud rate"
186 legal_values 9600 19200 38400 57600 115200
189 This option selects the baud rate used for the GDB port."
192 cdl_component CYGPKG_REDBOOT_XSCALE_OPTIONS {
193 display "Redboot for XScale options"
196 parent CYGPKG_REDBOOT
197 active_if CYGPKG_REDBOOT
199 This option lists the target's requirements for a valid Redboot
201 compile -library=libextras.a ixp425_redboot.c
204 requires { !CYGPKG_REDBOOT_BUILD_WITH_EXEC || CYGHWR_REDBOOT_ARM_LINUX_EXEC_ADDRESS_DEFAULT != 0 }
206 puts $::cdl_header "#define CYGHWR_REDBOOT_ARM_TRAMPOLINE_ADDRESS 0x00001f00"
207 puts $::cdl_header "#define HAL_FLASH_READ(a,b,c,d) hal_flash_read((a),(b),(c),(d))"
208 puts $::cdl_header "#define HAL_FLASH_PROGRAM(a,b,c,d) hal_flash_program((a),(b),(c),(d))"