1if ARCH_AT91
2
3config AT91FAMILY
4	def_bool y
5
6config AT91SAM9260
7	bool
8	select CPU_ARM926EJS
9
10config AT91SAM9G20
11	bool
12	select CPU_ARM926EJS
13
14config AT91SAM9XE
15	bool
16	select CPU_ARM926EJS
17
18config AT91SAM9261
19	bool
20	select CPU_ARM926EJS
21
22config AT91SAM9263
23	bool
24	select CPU_ARM926EJS
25
26config AT91SAM9G45
27	bool
28	select CPU_ARM926EJS
29
30config AT91SAM9M10G45
31	bool
32	select CPU_ARM926EJS
33
34config AT91SAM9N12
35	bool
36	select CPU_ARM926EJS
37
38config AT91SAM9RL
39	bool
40	select CPU_ARM926EJS
41
42config AT91SAM9X5
43	bool
44	select CPU_ARM926EJS
45
46config SAM9X60
47	bool
48	select CPU_ARM926EJS
49
50config SAMA7G5
51	bool
52	select CPU_V7A
53	select AT91RESET_EXTRST
54
55config SAMA5D2
56	bool
57	select CPU_V7A
58	select ATMEL_SFR
59
60config SAMA5D3
61	bool
62	select CPU_V7A
63
64config SAMA5D4
65	bool
66	select CPU_V7A
67	select ATMEL_SFR
68
69choice
70	prompt "Atmel AT91 board select"
71	optional
72
73config TARGET_AT91SAM9260EK
74	bool "Atmel at91sam9260 reference board"
75	select AT91SAM9260
76	select BOARD_EARLY_INIT_F
77
78config TARGET_ETHERNUT5
79	bool "Ethernut5 board"
80	select AT91SAM9XE
81
82config TARGET_GURNARD
83	bool "Support gurnard"
84	select AT91SAM9G45
85	select AT91_WANTS_COMMON_PHY
86	select BOARD_LATE_INIT
87	select DM
88	select DM_GPIO
89	select DM_SERIAL
90	select DM_SPI
91	select SPI
92	imply CMD_DM
93
94config TARGET_AT91SAM9261EK
95	bool "Atmel at91sam9261 reference board"
96	select AT91SAM9261
97	select BOARD_EARLY_INIT_F
98
99config TARGET_PM9261
100	bool "Ronetix pm9261 board"
101	select AT91SAM9261
102
103config TARGET_AT91SAM9263EK
104	bool "Atmel at91sam9263 reference board"
105	select AT91SAM9263
106	select BOARD_EARLY_INIT_F
107
108config TARGET_USB_A9263
109	bool "Caloa USB A9260 board"
110	select AT91SAM9263
111	select AT91_WANTS_COMMON_PHY
112
113config TARGET_PM9263
114	bool "Ronetix pm9263 board"
115	select AT91SAM9263
116
117config TARGET_AT91SAM9M10G45EK
118	bool "Atmel AT91SAM9M10G45-EK board"
119	select AT91SAM9M10G45
120	select BOARD_EARLY_INIT_F
121	select SUPPORT_SPL
122
123config TARGET_PM9G45
124	bool "Ronetix pm9g45 board"
125	select AT91SAM9G45
126
127config TARGET_AT91SAM9N12EK
128	bool "Atmel AT91SAM9N12-EK board"
129	select AT91SAM9N12
130	select BOARD_EARLY_INIT_F
131	select SUPPORT_SPL
132
133config TARGET_AT91SAM9RLEK
134	bool "Atmel at91sam9rl reference board"
135	select AT91SAM9RL
136	select BOARD_EARLY_INIT_F
137
138config TARGET_AT91SAM9X5EK
139	bool "Atmel AT91SAM9X5-EK board"
140	select AT91SAM9X5
141	select BOARD_EARLY_INIT_F
142	select BOARD_LATE_INIT
143	select SUPPORT_SPL
144
145config TARGET_GARDENA_SMART_GATEWAY_AT91SAM
146	bool "GARDENA smart Gateway (AT91SAM)"
147	select AT91SAM9X5
148	select BOARD_EARLY_INIT_F
149	select BOARD_LATE_INIT
150	select SUPPORT_SPL
151
152config TARGET_SAM9X60EK
153	bool "SAM9X60-EK board"
154	select SAM9X60
155	select BOARD_EARLY_INIT_F
156	select BOARD_LATE_INIT
157
158config TARGET_SAM9X60_CURIOSITY
159        bool "SAM9X60 CURIOSITY board"
160        select SAM9X60
161        select BOARD_EARLY_INIT_F
162        select BOARD_LATE_INIT
163
164config TARGET_SAMA5D2_PTC_EK
165	bool "SAMA5D2 PTC EK board"
166	select BOARD_EARLY_INIT_F
167	select SAMA5D2
168	select BOARD_LATE_INIT
169
170config TARGET_SAMA5D2_XPLAINED
171	bool "SAMA5D2 Xplained board"
172	select BOARD_EARLY_INIT_F
173	select BOARD_LATE_INIT
174	select SAMA5D2
175	select SUPPORT_SPL
176
177config TARGET_SAMA5D27_SOM1_EK
178	bool "SAMA5D27 SOM1 EK board"
179	select SAMA5D2
180	select BOARD_EARLY_INIT_F
181	select BOARD_LATE_INIT
182	select CPU_V7A
183	select SUPPORT_SPL
184	select ATMEL_SFR
185	help
186	  The SAMA5D27 SOM1 embeds SAMA5D2 SiP(System in Package),
187	  a 64Mbit QSPI flash, KSZ8081 Phy and a Mac-address EEPROM
188	  24AA02E48. The SAMA5D2 SiP integrates the ARM Cortex-A5
189	  processor-based SAMA5D2 MPU with up to 1 Gbit DDR2-SDRAM
190	  in a single package.
191
192config TARGET_SAMA5D27_WLSOM1_EK
193	bool "SAMA5D27 WLSOM1 EK board"
194	select SAMA5D2
195	select BOARD_EARLY_INIT_F
196	select BOARD_LATE_INIT
197	select CPU_V7A
198	select SUPPORT_SPL
199	help
200	  The SAMA5D27 WLSOM1 embeds SAMA5D2 SiP (System in Package),
201	  a 64Mbit QSPI flash with Mac-address, KSZ8081 Phy. A wireless
202	  module providing bluetooth and wifi is also embedded.
203	  The SAMA5D2 SiP integrates the ARM Cortex-A5
204	  processor-based SAMA5D2 MPU with 2 Gbit LPDDR2-SDRAM
205	  in a single package.
206
207config TARGET_SAMA5D2_ICP
208	bool "SAMA5D2 Industrial Connectivity Platform (ICP)"
209	select SAMA5D2
210	select SUPPORT_SPL
211	select BOARD_EARLY_INIT_F
212	select BOARD_LATE_INIT
213	help
214	  The SAMA5D2 ICP embeds SAMA5D27 rev. C SoC, together with
215	  a 64Mbit QSPI flash, 3xMikrobus connectors, 4xUSB ,
216	  EtherCat and WILC3000 devices on board.
217
218config TARGET_SAMA5D3_XPLAINED
219	bool "SAMA5D3 Xplained board"
220	select BOARD_EARLY_INIT_F
221	select SAMA5D3
222	select SUPPORT_SPL
223	select BOARD_LATE_INIT
224
225config TARGET_SAMA5D3XEK
226	bool "SAMA5D3X-EK board"
227	select BOARD_EARLY_INIT_F
228	select BOARD_LATE_INIT
229	select SAMA5D3
230	select SUPPORT_SPL
231
232config TARGET_SAMA5D4_XPLAINED
233	bool "SAMA5D4 Xplained board"
234	select BOARD_EARLY_INIT_F
235	select BOARD_LATE_INIT
236	select SAMA5D4
237	select SUPPORT_SPL
238
239config TARGET_SAMA5D4EK
240	bool "SAMA5D4 Evaluation Kit"
241	select BOARD_EARLY_INIT_F
242	select BOARD_LATE_INIT
243	select SAMA5D4
244	select SUPPORT_SPL
245
246config TARGET_MEESC
247	bool "Support meesc"
248	select AT91SAM9263
249
250config TARGET_CORVUS
251	bool "Support corvus"
252	select AT91SAM9M10G45
253	select AT91_WANTS_COMMON_PHY
254	select DM
255	select DM_GPIO
256	select DM_SERIAL
257	select SUPPORT_SPL
258	imply CMD_DM
259
260config TARGET_SAMA7G5EK
261       bool "SAMA7G5 EK board"
262       select SAMA7G5
263       select BOARD_EARLY_INIT_F
264       select BOARD_LATE_INIT
265
266
267config TARGET_TAURUS
268	bool "Support taurus"
269	select AT91SAM9G20
270	select AT91_WANTS_COMMON_PHY
271	select DM
272	select DM_GPIO
273	select DM_SERIAL
274	select DM_SPI
275	select SPI
276	select SUPPORT_SPL
277	imply CMD_DM
278
279config TARGET_SMARTWEB
280	bool "Support smartweb"
281	select AT91SAM9260
282	select AT91_WANTS_COMMON_PHY
283	select DM
284	select DM_GPIO
285	select DM_SERIAL
286	select SUPPORT_SPL
287	imply CMD_DM
288
289config TARGET_VINCO
290	bool "Support VINCO"
291	select DM
292	select DM_SPI
293	select SAMA5D4
294	select SPI
295	select SUPPORT_SPL
296	imply CMD_DM
297
298endchoice
299
300config ATMEL_SFR
301	bool
302
303config AT91RESET_EXTRST
304	bool
305
306config SYS_SOC
307	default "at91"
308
309config AT91_EFLASH
310	bool "Support AT91 flash driver"
311	depends on AT91SAM9XE
312	select USE_SYS_MAX_FLASH_BANKS
313	help
314	  Enable the driver for the embedded flash used in the Atmel
315	  AT91SAM9XE devices.
316
317config EFLASH_PROTSECTORS
318	int "Number of flash sectors to protect from erasing"
319	depends on AT91_EFLASH
320	help
321	  If non-zero, this will be the number of sectors of the flash to disallow
322	  U-Boot to ease, starting from the beginning of flash.
323
324config AT91_GPIO_PULLUP
325	bool "Keep pullups on peripheral pins"
326	depends on CPU_ARM926EJS
327
328config ATMEL_LEGACY
329	bool "Legacy GPIO support"
330
331config AT91_WANTS_COMMON_PHY
332	bool
333
334source "board/atmel/at91sam9260ek/Kconfig"
335source "board/atmel/at91sam9261ek/Kconfig"
336source "board/atmel/at91sam9263ek/Kconfig"
337source "board/atmel/at91sam9m10g45ek/Kconfig"
338source "board/atmel/at91sam9n12ek/Kconfig"
339source "board/atmel/at91sam9rlek/Kconfig"
340source "board/atmel/at91sam9x5ek/Kconfig"
341source "board/atmel/sam9x60ek/Kconfig"
342source "board/atmel/sam9x60_curiosity/Kconfig"
343source "board/atmel/sama7g5ek/Kconfig"
344source "board/atmel/sama5d2_ptc_ek/Kconfig"
345source "board/atmel/sama5d2_xplained/Kconfig"
346source "board/atmel/sama5d27_som1_ek/Kconfig"
347source "board/atmel/sama5d27_wlsom1_ek/Kconfig"
348source "board/atmel/sama5d2_icp/Kconfig"
349source "board/atmel/sama5d3_xplained/Kconfig"
350source "board/atmel/sama5d3xek/Kconfig"
351source "board/atmel/sama5d4_xplained/Kconfig"
352source "board/atmel/sama5d4ek/Kconfig"
353source "board/bluewater/gurnard/Kconfig"
354source "board/calao/usb_a9263/Kconfig"
355source "board/egnite/ethernut5/Kconfig"
356source "board/esd/meesc/Kconfig"
357source "board/gardena/smart-gateway-at91sam/Kconfig"
358source "board/l+g/vinco/Kconfig"
359source "board/ronetix/pm9261/Kconfig"
360source "board/ronetix/pm9263/Kconfig"
361source "board/ronetix/pm9g45/Kconfig"
362source "board/siemens/corvus/Kconfig"
363source "board/siemens/taurus/Kconfig"
364source "board/siemens/smartweb/Kconfig"
365
366endif
367