]> git.kernelconcepts.de Git - karo-tx-redboot.git/blob - packages/devs/watchdog/arm/at91/v2_0/cdl/watchdog_at91.cdl
Initial revision
[karo-tx-redboot.git] / packages / devs / watchdog / arm / at91 / v2_0 / cdl / watchdog_at91.cdl
1 # ====================================================================
2 #
3 #      watchdog_at91.cdl
4 #
5 #      eCos watchdog for ARM AT91 driver 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 ## Copyright (C) 2003 Nick Garnett <nickg@calivar.com>
13 ##
14 ## eCos is free software; you can redistribute it and/or modify it under
15 ## the terms of the GNU General Public License as published by the Free
16 ## Software Foundation; either version 2 or (at your option) any later version.
17 ##
18 ## eCos is distributed in the hope that it will be useful, but WITHOUT ANY
19 ## WARRANTY; without even the implied warranty of MERCHANTABILITY or
20 ## FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
21 ## for more details.
22 ##
23 ## You should have received a copy of the GNU General Public License along
24 ## with eCos; if not, write to the Free Software Foundation, Inc.,
25 ## 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
26 ##
27 ## As a special exception, if other files instantiate templates or use macros
28 ## or inline functions from this file, or you compile this file and link it
29 ## with other works to produce a work based on this file, this file does not
30 ## by itself cause the resulting work to be covered by the GNU General Public
31 ## License. However the source code for this file must still be made available
32 ## in accordance with section (3) of the GNU General Public License.
33 ##
34 ## This exception does not invalidate any other reasons why a work based on
35 ## this file might be covered by the GNU General Public License.
36 ##
37 ## Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
38 ## at http://sources.redhat.com/ecos/ecos-license/
39 ## -------------------------------------------
40 #####ECOSGPLCOPYRIGHTEND####
41 # ====================================================================
42 ######DESCRIPTIONBEGIN####
43 #
44 # Author(s):      tkoeller
45 # Contributors:   tkoeller, nickg
46 # Date:           2000-05-05
47 #
48 #####DESCRIPTIONEND####
49 #
50 # ====================================================================
51
52 cdl_package CYGPKG_DEVICES_WATCHDOG_ARM_AT91 {
53     parent        CYGPKG_IO_WATCHDOG
54     active_if     CYGPKG_IO_WATCHDOG
55     display       "ARM AT91 watchdog driver"
56     requires      CYGPKG_HAL_ARM_AT91
57     requires      CYGPKG_KERNEL
58     hardware
59     define_header devs_watchdog_arm_at91.h
60     compile       watchdog_at91.cxx
61     implements    CYGINT_WATCHDOG_HW_IMPLEMENTATIONS
62     active_if     CYGIMP_WATCHDOG_HARDWARE
63     description   "
64       This package uses the watchdog device integrated
65       in the AT91 to execute a predefined action if the
66       application fails to call the reset function for
67       longer than a given timeout interval. This package
68       currently only supports the AT91x408xx, AT91M55800A and Diopsis
69       devices found on the Atmel EB40, EB40A, EB55 and JTST evaluation
70       boards. The AT91M42800 found on the EB42 is not supported
71       since it uses a totally different watchdog device."
72
73     cdl_option CYGIMP_WATCHDOG_HARDWARE {
74         parent        CYGPKG_IO_WATCHDOG_IMPLEMENTATION
75         display       "Hardware watchdog"
76         calculated    1
77         implements    CYGINT_WATCHDOG_IMPLEMENTATIONS
78     }
79     
80     cdl_option CYGNUM_DEVS_WATCHDOG_ARM_AT91_DESIRED_TIMEOUT_MS {
81         display         "Desired timeout value"
82         flavor          data
83         legal_values    1 to 2047
84         default_value   100
85         description "
86             This parameter controls the watchdog timeout interval.
87             Note that you may not get the exact value requested
88             here, the timeout interval may have to be adjusted
89             because of hardware limitations. The actual timeout
90             used will be the smallest possible value that is not
91             less than this parameter."
92     }
93     
94     cdl_option CYGSEM_DEVS_WATCHDOG_ARM_AT91_RESET {
95         display       "Generate reset on watchdog expiration"
96         flavor        bool
97         default_value 1
98         implements    CYGINT_WATCHDOG_RESETS_ON_TIMEOUT
99         description   "
100           Enabling this option changes the watchdog operation mode
101           to generate a system reset upon expiration instead of
102           invoking an application-defined action."
103     }
104
105     cdl_component CYGPKG_DEVICES_WATCHDOG_ARM_AT91_OPTIONS {
106         display       "AT91 watchdog build options"
107         flavor        none
108         description   "
109             Package specific build options including control over
110             compiler flags used only in building this package,
111             and details of which tests are built."
112
113         cdl_option CYGPKG_DEVICES_WATCHDOG_ARM_AT91_CFLAGS_ADD {
114             display       "Additional compiler flags"
115             flavor        data
116             no_define
117             default_value { "" }
118             description   "
119                 This option modifies the set of compiler flags for
120                 building the watchdog device. These flags are used in addition
121                 to the set of global flags."
122         }
123
124         cdl_option CYGPKG_DEVICES_WATCHDOG_ARM_AT91_CFLAGS_REMOVE {
125             display       "Suppressed compiler flags"
126             flavor        data
127             no_define
128             default_value { "" }
129             description   "
130                 This option modifies the set of compiler flags for
131                 building the watchdog device. These flags are removed from
132                 the set of global flags if present."
133         }
134
135     }
136 }
137
138 # EOF watchdog_at91.cdl