]> git.karo-electronics.de Git - karo-tx-redboot.git/blob - packages/hal/arm/xscale/ixp425/v2_0/cdl/hal_arm_xscale_ixp425.cdl
Initial revision
[karo-tx-redboot.git] / packages / hal / arm / xscale / ixp425 / v2_0 / cdl / hal_arm_xscale_ixp425.cdl
1 # ====================================================================
2 #
3 #      hal_arm_xscale_ixp425.cdl
4 #
5 #      Intel XScale 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):      msalter
44 # Original data:  msalter
45 # Contributors:
46 # Date:           2002-12-06
47 #
48 #####DESCRIPTIONEND####
49 #
50 # ====================================================================
51 cdl_package CYGPKG_HAL_ARM_XSCALE_IXP425 {
52     display       "Intel XScale IXP425 Network Processor"
53     parent        CYGPKG_HAL_ARM
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
58     hardware
59     include_dir   cyg/hal
60     define_header hal_arm_xscale_ixp425.h
61     description   "
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
65         package."
66
67     # Let the architectural HAL see this variant's interrupts file
68     define_proc {
69         puts $::cdl_header \
70        "#define CYGBLD_HAL_VAR_INTS_H <cyg/hal/hal_var_ints.h>"
71         puts $::cdl_header \
72        "#define CYGBLD_HAL_VAR_H <cyg/hal/hal_ixp425.h>"
73
74         puts $::cdl_system_header "#define CYGBLD_HAL_ARM_VAR_IO_H"
75     }
76
77     compile       ixp425_misc.c ixp425_pci.c ixp425_diag.c
78
79     cdl_option CYGHWR_HAL_ARM_XSCALE_PROCESSOR_CCLK {
80         display       "Processor clock rate"
81         flavor        data
82         default_value { CYGHWR_HAL_ARM_XSCALE_PROCESSOR_CCLK_DEFAULT ?
83                         CYGHWR_HAL_ARM_XSCALE_PROCESSOR_CCLK_DEFAULT : 533333}
84         description   "
85            The XScale processor can run at various frequencies.
86            These values are expressed in KHz."
87     }
88
89     cdl_option CYGHWR_HAL_IXP425_PCI_NP_WORKAROUND {
90         display "Enable IXP425 PCI NP read problem workaround"
91         flavor bool
92         default_value 0
93     }
94  
95     # Real-time clock/counter specifics
96     cdl_component CYGNUM_HAL_RTC_CONSTANTS {
97         display       "Real-time clock constants"
98         flavor        none
99         no_define
100     
101         cdl_option CYGNUM_HAL_RTC_NUMERATOR {
102             display       "Real-time clock numerator"
103             flavor        data
104             default_value 1000000000
105         }
106         cdl_option CYGNUM_HAL_RTC_DENOMINATOR {
107             display       "Real-time clock denominator"
108             flavor        data
109             default_value 100
110             description   "
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."
116         }
117         cdl_option CYGNUM_HAL_RTC_PERIOD {
118             display       "Real-time clock period"
119             flavor        data
120             default_value 1000000/CYGNUM_HAL_RTC_DENOMINATOR
121             description   "
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."
125         }
126     }
127
128     cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_DEFAULT {
129         display      "Default console channel."
130         flavor       data
131         legal_values 0 to CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS-1
132         calculated   0
133     }
134  
135     cdl_option CYGNUM_HAL_ARM_IXP425_SERIAL_CHANNELS {
136         display      "Number of IXP425 serial ports used on the board"
137         flavor       data
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 : \
140                         0 }
141     }
142  
143     cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS {
144         display      "Number of communication channels on the board"
145         flavor       data
146         calculated   { CYGNUM_HAL_ARM_IXP425_SERIAL_CHANNELS + \
147                        CYGNUM_HAL_IXP425_PLF_SERIAL_CHANNELS }
148     }
149  
150     cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_DEBUG_CHANNEL {
151         display          "Debug serial port"
152         active_if        CYGPRI_HAL_VIRTUAL_VECTOR_DEBUG_CHANNEL_CONFIGURABLE
153         flavor data
154         legal_values     0 to CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS-1
155         default_value    0
156         description      "
157             This option chooses which port will be used to connect to a host
158             running GDB."
159      }
160  
161      cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL {
162          display          "Diagnostic serial port"
163          active_if        CYGPRI_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_CONFIGURABLE
164          flavor data
165          legal_values     0 to CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS-1
166          default_value    CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_DEFAULT
167          description      "
168             IXP425 boards may use two or more serial ports.  This option
169             chooses which port will be used for diagnostic output."
170      }
171
172     cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_BAUD {
173         display       "Diagnostic serial port baud rate"
174         flavor        data
175         legal_values  9600 19200 38400 57600 115200
176         default_value 115200
177         description   "
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."
181     }
182
183     cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_DEBUG_CHANNEL_BAUD {
184         display       "Debug serial port baud rate"
185         flavor        data
186         legal_values  9600 19200 38400 57600 115200
187         default_value 115200
188         description   "
189             This option selects the baud rate used for the GDB port."
190     }
191
192     cdl_component CYGPKG_REDBOOT_XSCALE_OPTIONS {
193         display       "Redboot for XScale options"
194         flavor        none
195         no_define
196         parent        CYGPKG_REDBOOT
197         active_if     CYGPKG_REDBOOT
198         description   "
199             This option lists the target's requirements for a valid Redboot
200             configuration."
201         compile -library=libextras.a ixp425_redboot.c
202
203         # RedBoot details
204         requires { !CYGPKG_REDBOOT_BUILD_WITH_EXEC || CYGHWR_REDBOOT_ARM_LINUX_EXEC_ADDRESS_DEFAULT != 0 }
205         define_proc {
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))"
209         }
210     }
211 }