1 |
786 |
skrzyp |
# ====================================================================
|
2 |
|
|
#
|
3 |
|
|
# spi_at91.cdl
|
4 |
|
|
#
|
5 |
|
|
# Atmel AT91 (ARM) SPI 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, 2009 Free Software Foundation, 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
|
16 |
|
|
## version.
|
17 |
|
|
##
|
18 |
|
|
## eCos is distributed in the hope that it will be useful, but WITHOUT
|
19 |
|
|
## ANY 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
|
24 |
|
|
## along with eCos; if not, write to the Free Software Foundation, Inc.,
|
25 |
|
|
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
26 |
|
|
##
|
27 |
|
|
## As a special exception, if other files instantiate templates or use
|
28 |
|
|
## macros or inline functions from this file, or you compile this file
|
29 |
|
|
## and link it with other works to produce a work based on this file,
|
30 |
|
|
## this file does not by itself cause the resulting work to be covered by
|
31 |
|
|
## the GNU General Public License. However the source code for this file
|
32 |
|
|
## must still be made available in accordance with section (3) of the GNU
|
33 |
|
|
## General Public License v2.
|
34 |
|
|
##
|
35 |
|
|
## This exception does not invalidate any other reasons why a work based
|
36 |
|
|
## on this file might be covered by the GNU General Public License.
|
37 |
|
|
## -------------------------------------------
|
38 |
|
|
## ####ECOSGPLCOPYRIGHTEND####
|
39 |
|
|
# ====================================================================
|
40 |
|
|
######DESCRIPTIONBEGIN####
|
41 |
|
|
#
|
42 |
|
|
# Author(s): Savin Zlobec
|
43 |
|
|
# Date: 2004-08-25
|
44 |
|
|
#
|
45 |
|
|
#####DESCRIPTIONEND####
|
46 |
|
|
#
|
47 |
|
|
# ====================================================================
|
48 |
|
|
|
49 |
|
|
cdl_package CYGPKG_DEVS_SPI_ARM_AT91 {
|
50 |
|
|
parent CYGPKG_IO_SPI
|
51 |
|
|
active_if CYGPKG_IO_SPI
|
52 |
|
|
display "Atmel AT91 SPI driver"
|
53 |
|
|
requires CYGPKG_HAL_ARM_AT91
|
54 |
|
|
requires CYGPKG_ERROR
|
55 |
|
|
hardware
|
56 |
|
|
include_dir cyg/io
|
57 |
|
|
compile spi_at91.c
|
58 |
|
|
compile -library=libextras.a spi_at91_init.cxx
|
59 |
|
|
|
60 |
|
|
cdl_option CYGHWR_DEVS_SPI_ARM_AT91_BUS0 {
|
61 |
|
|
display "Enable support for SPI bus 0"
|
62 |
|
|
flavor bool
|
63 |
|
|
default_value 1
|
64 |
|
|
description "Enable this option to add support for the first
|
65 |
|
|
SPI peripheral. The most AT91 devices only have one bus"
|
66 |
|
|
}
|
67 |
|
|
|
68 |
|
|
cdl_interface CYGINT_DEVS_SPI_ARM_AT91_HAS_BUS1 {
|
69 |
|
|
description "
|
70 |
|
|
This interface is implemented by HALs for devices which have
|
71 |
|
|
the second SPI bus controller."
|
72 |
|
|
}
|
73 |
|
|
|
74 |
|
|
|
75 |
|
|
cdl_option CYGHWR_DEVS_SPI_ARM_AT91_BUS1 {
|
76 |
|
|
active_if CYGINT_DEVS_SPI_ARM_AT91_HAS_BUS1
|
77 |
|
|
display "Enable support for SPI bus 1"
|
78 |
|
|
flavor bool
|
79 |
|
|
default_value 0
|
80 |
|
|
description "Enable this option to add support for the second
|
81 |
|
|
SPI peripheral. The most AT91 devices only have one bus"
|
82 |
|
|
}
|
83 |
|
|
|
84 |
|
|
cdl_component CYGPKG_DEVS_SPI_ARM_AT91_BUS0_CFG {
|
85 |
|
|
active_if CYGHWR_DEVS_SPI_ARM_AT91_BUS0
|
86 |
|
|
display "Configuration options for SPI Bus 0"
|
87 |
|
|
flavor none
|
88 |
|
|
description "This is the configuration options for SPI Bus 0"
|
89 |
|
|
|
90 |
|
|
cdl_option CYGHWR_DEVS_SPI_ARM_AT91_BUS0_PCSDEC {
|
91 |
|
|
display "Support 4 to 16 decoder of chip select signals."
|
92 |
|
|
flavor bool
|
93 |
|
|
default_value 0
|
94 |
|
|
description "Enable this option if SPI peripheral chip
|
95 |
|
|
selects are connected through an 4 to 16 decoder."
|
96 |
|
|
}
|
97 |
|
|
|
98 |
|
|
cdl_option CYGDAT_DEVS_SPI_ARM_AT91_BUS0_NPCS0 {
|
99 |
|
|
display "PIO-Pin used for NPSC0"
|
100 |
|
|
flavor data
|
101 |
|
|
default_value {"AT91_SPI_NPCS0"}
|
102 |
|
|
description "Any GPIO pin is able to be used as the SPI driver
|
103 |
|
|
uses GPIO to control the chip selects. Specify the pin
|
104 |
|
|
as \"AT91_GPIO_PA13\" or \"AT91_GPIO_PB5\" etc. Specify
|
105 |
|
|
\"NONE\" if this chip select is to be disabled"
|
106 |
|
|
}
|
107 |
|
|
|
108 |
|
|
cdl_option CYGDAT_DEVS_SPI_ARM_AT91_BUS0_NPCS1 {
|
109 |
|
|
display "PIO-Pin used for NPSC1"
|
110 |
|
|
flavor data
|
111 |
|
|
default_value {"AT91_SPI_NPCS1"}
|
112 |
|
|
description "Any GPIO pin is able to be used as the SPI driver
|
113 |
|
|
uses GPIO to control the chip selects. Specify the pin
|
114 |
|
|
as \"AT91_GPIO_PA13\" or \"AT91_GPIO_PB5\" etc. Specify
|
115 |
|
|
\"NONE\" if this chip select is to be disabled"
|
116 |
|
|
}
|
117 |
|
|
cdl_option CYGDAT_DEVS_SPI_ARM_AT91_BUS0_NPCS2 {
|
118 |
|
|
display "PIO-Pin used for NPSC2"
|
119 |
|
|
flavor data
|
120 |
|
|
default_value {"AT91_SPI_NPCS2"}
|
121 |
|
|
description "Any GPIO pin is able to be used as the SPI driver
|
122 |
|
|
uses GPIO to control the chip selects. Specify the pin
|
123 |
|
|
as \"AT91_GPIO_PA13\" or \"AT91_GPIO_PB5\" etc. Specify
|
124 |
|
|
\"NONE\" if this chip select is to be disabled"
|
125 |
|
|
}
|
126 |
|
|
cdl_option CYGDAT_DEVS_SPI_ARM_AT91_BUS0_NPCS3 {
|
127 |
|
|
display "PIO-Pin used for NPSC3"
|
128 |
|
|
flavor data
|
129 |
|
|
default_value {"AT91_SPI_NPCS3"}
|
130 |
|
|
description "Any GPIO pin is able to be used as the SPI driver
|
131 |
|
|
uses GPIO to control the chip selects. Specify the pin
|
132 |
|
|
as \"AT91_GPIO_PA13\" or \"AT91_GPIO_PB5\" etc. Specify
|
133 |
|
|
\"NONE\" if this chip select is to be disabled"
|
134 |
|
|
}
|
135 |
|
|
|
136 |
|
|
}
|
137 |
|
|
|
138 |
|
|
cdl_component CYGPKG_DEVS_SPI_ARM_AT91_BUS1_CFG {
|
139 |
|
|
active_if CYGHWR_DEVS_SPI_ARM_AT91_BUS1
|
140 |
|
|
display "Configuration options for SPI Bus 1"
|
141 |
|
|
flavor none
|
142 |
|
|
description "This is the configuration options for SPI Bus 1"
|
143 |
|
|
|
144 |
|
|
cdl_option CYGHWR_DEVS_SPI_ARM_AT91_BUS1_PCSDEC {
|
145 |
|
|
display "Support 4 to 16 decoder of chip select signals."
|
146 |
|
|
flavor bool
|
147 |
|
|
default_value 0
|
148 |
|
|
description "Enable this option if SPI peripheral chip
|
149 |
|
|
selects are connected through an 4 to 16 decoder."
|
150 |
|
|
}
|
151 |
|
|
|
152 |
|
|
cdl_option CYGDAT_DEVS_SPI_ARM_AT91_BUS1_NPCS0 {
|
153 |
|
|
display "PIO-Pin used for NPSC0"
|
154 |
|
|
flavor data
|
155 |
|
|
default_value {"AT91_SPI1_NPCS0"}
|
156 |
|
|
description "Any GPIO pin is able to be used as the SPI driver
|
157 |
|
|
uses GPIO to control the chip selects. Specify the pin
|
158 |
|
|
as \"AT91_GPIO_PA13\" or \"AT91_GPIO_PB5\" etc. Specify
|
159 |
|
|
\"NONE\" if this chip select is to be disabled"
|
160 |
|
|
}
|
161 |
|
|
|
162 |
|
|
cdl_option CYGDAT_DEVS_SPI_ARM_AT91_BUS1_NPCS1 {
|
163 |
|
|
display "PIO-Pin used for NPSC1"
|
164 |
|
|
flavor data
|
165 |
|
|
default_value {"AT91_SPI1_NPCS1"}
|
166 |
|
|
description "Any GPIO pin is able to be used as the SPI driver
|
167 |
|
|
uses GPIO to control the chip selects. Specify the pin
|
168 |
|
|
as \"AT91_GPIO_PA13\" or \"AT91_GPIO_PB5\" etc. Specify
|
169 |
|
|
\"NONE\" if this chip select is to be disabled"
|
170 |
|
|
}
|
171 |
|
|
cdl_option CYGDAT_DEVS_SPI_ARM_AT91_BUS1_NPCS2 {
|
172 |
|
|
display "PIO-Pin used for NPSC2"
|
173 |
|
|
flavor data
|
174 |
|
|
default_value {"AT91_SPI1_NPCS2"}
|
175 |
|
|
description "Any GPIO pin is able to be used as the SPI driver
|
176 |
|
|
uses GPIO to control the chip selects. Specify the pin
|
177 |
|
|
as \"AT91_GPIO_PA13\" or \"AT91_GPIO_PB5\" etc. Specify
|
178 |
|
|
\"NONE\" if this chip select is to be disabled"
|
179 |
|
|
}
|
180 |
|
|
cdl_option CYGDAT_DEVS_SPI_ARM_AT91_BUS1_NPCS3 {
|
181 |
|
|
display "PIO-Pin used for NPSC3"
|
182 |
|
|
flavor data
|
183 |
|
|
default_value {"AT91_SPI1_NPCS3"}
|
184 |
|
|
description "Any GPIO pin is able to be used as the SPI driver
|
185 |
|
|
uses GPIO to control the chip selects. Specify the pin
|
186 |
|
|
as \"AT91_GPIO_PA13\" or \"AT91_GPIO_PB5\" etc. Specify
|
187 |
|
|
\"NONE\" if this chip select is to be disabled"
|
188 |
|
|
}
|
189 |
|
|
|
190 |
|
|
}
|
191 |
|
|
|
192 |
|
|
|
193 |
|
|
cdl_component CYGPKG_DEVS_SPI_ARM_AT91_OPTIONS {
|
194 |
|
|
display "Atmel AT91 SPI driver build options"
|
195 |
|
|
flavor none
|
196 |
|
|
description "
|
197 |
|
|
Package specific build options including control over
|
198 |
|
|
compiler flags used only in building this package,
|
199 |
|
|
and details of which tests are built."
|
200 |
|
|
|
201 |
|
|
cdl_option CYGPKG_DEVS_SPI_ARM_AT91_CFLAGS_ADD {
|
202 |
|
|
display "Additional compiler flags"
|
203 |
|
|
flavor data
|
204 |
|
|
no_define
|
205 |
|
|
default_value { "" }
|
206 |
|
|
description "
|
207 |
|
|
This option modifies the set of compiler flags for
|
208 |
|
|
building the SPI device. These flags are used in addition
|
209 |
|
|
to the set of global flags."
|
210 |
|
|
}
|
211 |
|
|
|
212 |
|
|
cdl_option CYGPKG_DEVS_SPI_ARM_AT91_CFLAGS_REMOVE {
|
213 |
|
|
display "Suppressed compiler flags"
|
214 |
|
|
flavor data
|
215 |
|
|
no_define
|
216 |
|
|
default_value { "" }
|
217 |
|
|
description "
|
218 |
|
|
This option modifies the set of compiler flags for
|
219 |
|
|
building the SPI device. These flags are removed from
|
220 |
|
|
the set of global flags if present."
|
221 |
|
|
}
|
222 |
|
|
}
|
223 |
|
|
}
|
224 |
|
|
|
225 |
|
|
# EOF spi_at91.cdl
|