]> git.kernelconcepts.de Git - karo-tx-redboot.git/blob - packages/hal/arm/xscale/pxa2x0/v2_0/cdl/hal_arm_xscale_pxa2x0.cdl
unified MX27, MX25, MX37 trees
[karo-tx-redboot.git] / packages / hal / arm / xscale / pxa2x0 / v2_0 / cdl / hal_arm_xscale_pxa2x0.cdl
1 # ====================================================================
2 #
3 #      hal_arm_xscale_pxa2x0.cdl
4 #
5 #      Intel PXA2X0 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):      <knud.woehler@microplex.de>
44 # Date:           2003-01-06
45 #
46 #####DESCRIPTIONEND####
47 #
48 # ====================================================================
49
50 cdl_package CYGPKG_HAL_ARM_XSCALE_PXA2X0 {
51     display       "ARM PXA2X0 architecture"
52     parent        CYGPKG_HAL_ARM
53     hardware
54     include_dir   cyg/hal
55     define_header hal_arm_xscale_pxa2x0.h
56     description   "
57         This HAL variant package provides generic
58         support for the Intel PXA2x0 processors. It is also
59         necessary to select a specific target platform HAL
60         package."
61
62     implements    CYGINT_HAL_ARM_ARCH_PXA2X0
63     implements    CYGINT_HAL_VIRTUAL_VECTOR_COMM_BAUD_SUPPORT
64
65         define_proc {
66                 puts $::cdl_header "#define CYGBLD_HAL_VAR_INTS_H <cyg/hal/hal_var_ints.h>"
67                 puts $::cdl_header "#define CYGBLD_HAL_VAR_H <cyg/hal/hal_pxa2x0.h>"
68                 puts $::cdl_system_header "#define CYGBLD_HAL_ARM_VAR_IO_H"
69         }
70
71     cdl_option CYGOPT_HAL_ARM_XSCALE_PXA2X0_VARIANT {
72         display         "PXA2XX processor model"
73         description     "
74                 This option selects the variant of the PXA2XX family (PXA25x
75                 or PXA27x) to support."
76         flavor          data
77         legal_values  { "PXA25X" "PXA27X" }
78         default_value { "PXA25X" }
79     }
80         
81     compile       pxa2x0_misc.c
82     
83         # Real-time clock/counter specifics
84         cdl_component CYGNUM_HAL_RTC_CONSTANTS {
85                 display       "Real-time clock constants"
86                 flavor        none
87                 no_define
88     
89                 cdl_option CYGNUM_HAL_RTC_NUMERATOR {
90                         display       "Real-time clock numerator"
91                         flavor        data
92                         default_value 1000000000
93                 }
94                 
95                 cdl_option CYGNUM_HAL_RTC_DENOMINATOR {
96                         display       "Real-time clock denominator"
97                         flavor        data
98                         default_value 100
99                         description   "
100                                 This option selects the heartbeat rate for the real-time clock.
101                                 The rate is specified in ticks per second.  Change this value
102                                 with caution - too high and your system will become saturated
103                                 just handling clock interrupts, too low and some operations
104                                 such as thread scheduling may become sluggish."
105                 }
106                 
107                 cdl_option CYGNUM_HAL_RTC_PERIOD {
108                         display       "Real-time clock period"
109                         flavor        data
110                         default_value (3686400/CYGNUM_HAL_RTC_DENOMINATOR)
111                 }
112     }
113     
114         # UART
115         cdl_interface CYGHWR_HAL_ARM_PXA2X0_FFUART {
116                 display   "FFUART available as diagnostic/debug channel"
117                 description "
118                         The PXA2X0 chip has multiple serial channels which may be
119                         used for different things on different platforms.  This
120                         interface allows a platform to indicate that the specified
121                         serial port can be used as a diagnostic and/or debug channel."
122         }
123         
124         cdl_interface CYGHWR_HAL_ARM_PXA2X0_BTUART {
125                 display   "BTUART available as diagnostic/debug channel"
126                 description "
127                         The PXA2X0 chip has multiple serial channels which may be
128                         used for different things on different platforms.  This
129                         interface allows a platform to indicate that the specified
130                         serial port can be used as a diagnostic and/or debug channel."
131         }
132
133         cdl_interface CYGHWR_HAL_ARM_PXA2X0_STUART {
134                 display   "STUART available as diagnostic/debug channel"
135                 description "
136                         The PXA2X0 chip has multiple serial channels which may be
137                         used for different things on different platforms.  This
138                         interface allows a platform to indicate that the specified
139                         serial port can be used as a diagnostic and/or debug channel."
140         }
141
142     cdl_option CYGBLD_BUILD_HAL_ARM_XSCALE_PXA2X0_SERIAL_DIAG {
143         display     "Include support for PXA2X0 serial diagnostic/debug channels"
144         default_value { CYGHWR_HAL_ARM_PXA2X0_FFUART
145                       || CYGHWR_HAL_ARM_PXA2X0_BTUART
146                       || CYGHWR_HAL_ARM_PXA2X0_STUART }
147
148         compile     hal_diag.c
149     }
150 }
151
152
153
154