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
54config SAMA5D2
55	bool
56	select CPU_V7A
57	select ATMEL_SFR
58
59config SAMA5D3
60	bool
61	select CPU_V7A
62
63config SAMA5D4
64	bool
65	select CPU_V7A
66	select ATMEL_SFR
67
68choice
69	prompt "Atmel AT91 board select"
70	optional
71
72config TARGET_AT91RM9200EK
73	bool "Atmel AT91RM9200 evaluation kit"
74	select CPU_ARM920T
75
76config TARGET_AT91SAM9260EK
77	bool "Atmel at91sam9260 reference board"
78	select AT91SAM9260
79	select BOARD_EARLY_INIT_F
80
81config TARGET_ETHERNUT5
82	bool "Ethernut5 board"
83	select AT91SAM9XE
84
85config TARGET_SNAPPER9260
86	bool "Support snapper9260"
87	select AT91SAM9260
88	select DM
89	select DM_GPIO
90	select DM_SERIAL
91	imply CMD_DM
92
93config TARGET_GURNARD
94	bool "Support gurnard"
95	select AT91SAM9G45
96	select BOARD_LATE_INIT
97	select DM
98	select DM_ETH
99	select DM_GPIO
100	select DM_SERIAL
101	select DM_SPI
102	select SPI
103	imply CMD_DM
104
105config TARGET_AT91SAM9261EK
106	bool "Atmel at91sam9261 reference board"
107	select AT91SAM9261
108	select BOARD_EARLY_INIT_F
109
110config TARGET_PM9261
111	bool "Ronetix pm9261 board"
112	select AT91SAM9261
113
114config TARGET_AT91SAM9263EK
115	bool "Atmel at91sam9263 reference board"
116	select AT91SAM9263
117	select BOARD_EARLY_INIT_F
118
119config TARGET_USB_A9263
120	bool "Caloa USB A9260 board"
121	select AT91SAM9263
122
123config TARGET_PM9263
124	bool "Ronetix pm9263 board"
125	select AT91SAM9263
126
127config TARGET_AT91SAM9M10G45EK
128	bool "Atmel AT91SAM9M10G45-EK board"
129	select AT91SAM9M10G45
130	select BOARD_EARLY_INIT_F
131	select SUPPORT_SPL
132
133config TARGET_PM9G45
134	bool "Ronetix pm9g45 board"
135	select AT91SAM9G45
136
137config TARGET_PICOSAM9G45
138	bool "Mini-box picosam9g45 board"
139	select AT91SAM9M10G45
140	select SUPPORT_SPL
141
142config TARGET_AT91SAM9N12EK
143	bool "Atmel AT91SAM9N12-EK board"
144	select AT91SAM9N12
145	select BOARD_EARLY_INIT_F
146	select SUPPORT_SPL
147
148config TARGET_AT91SAM9RLEK
149	bool "Atmel at91sam9rl reference board"
150	select AT91SAM9RL
151	select BOARD_EARLY_INIT_F
152
153config TARGET_AT91SAM9X5EK
154	bool "Atmel AT91SAM9X5-EK board"
155	select AT91SAM9X5
156	select BOARD_EARLY_INIT_F
157	select BOARD_LATE_INIT
158	select SUPPORT_SPL
159
160config TARGET_GARDENA_SMART_GATEWAY_AT91SAM
161	bool "GARDENA smart Gateway (AT91SAM)"
162	select AT91SAM9X5
163	select BOARD_EARLY_INIT_F
164	select BOARD_LATE_INIT
165	select SUPPORT_SPL
166
167config TARGET_SAM9X60EK
168	bool "SAM9X60-EK board"
169	select SAM9X60
170	select BOARD_EARLY_INIT_F
171	select BOARD_LATE_INIT
172
173config TARGET_SAMA5D2_PTC_EK
174	bool "SAMA5D2 PTC EK board"
175	select BOARD_EARLY_INIT_F
176	select SAMA5D2
177	select BOARD_LATE_INIT
178
179config TARGET_SAMA5D2_XPLAINED
180	bool "SAMA5D2 Xplained board"
181	select BOARD_EARLY_INIT_F
182	select BOARD_LATE_INIT
183	select SAMA5D2
184	select SUPPORT_SPL
185
186config TARGET_SAMA5D27_SOM1_EK
187	bool "SAMA5D27 SOM1 EK board"
188	select BOARD_EARLY_INIT_F
189	select BOARD_LATE_INIT
190	select CPU_V7A
191	select SUPPORT_SPL
192	select ATMEL_SFR
193	help
194	  The SAMA5D27 SOM1 embeds SAMA5D2 SiP(System in Package),
195	  a 64Mbit QSPI flash, KSZ8081 Phy and a Mac-address EEPROM
196	  24AA02E48. The SAMA5D2 SiP integrates the ARM Cortex-A5
197	  processor-based SAMA5D2 MPU with up to 1 Gbit DDR2-SDRAM
198	  in a single package.
199
200config TARGET_SAMA5D27_WLSOM1_EK
201	bool "SAMA5D27 WLSOM1 EK board"
202	select SAMA5D2
203	select BOARD_EARLY_INIT_F
204	select BOARD_LATE_INIT
205	select CPU_V7A
206	select SUPPORT_SPL
207	help
208	  The SAMA5D27 WLSOM1 embeds SAMA5D2 SiP (System in Package),
209	  a 64Mbit QSPI flash with Mac-address, KSZ8081 Phy. A wireless
210	  module providing bluetooth and wifi is also embedded.
211	  The SAMA5D2 SiP integrates the ARM Cortex-A5
212	  processor-based SAMA5D2 MPU with 2 Gbit LPDDR2-SDRAM
213	  in a single package.
214
215config TARGET_SAMA5D2_ICP
216	bool "SAMA5D2 Industrial Connectivity Platform (ICP)"
217	select SAMA5D2
218	select SUPPORT_SPL
219	select BOARD_EARLY_INIT_F
220	select BOARD_LATE_INIT
221	help
222	  The SAMA5D2 ICP embeds SAMA5D27 rev. C SoC, together with
223	  a 64Mbit QSPI flash, 3xMikrobus connectors, 4xUSB ,
224	  EtherCat and WILC3000 devices on board.
225
226config TARGET_SAMA5D3_XPLAINED
227	bool "SAMA5D3 Xplained board"
228	select BOARD_EARLY_INIT_F
229	select SAMA5D3
230	select SUPPORT_SPL
231	select BOARD_LATE_INIT
232
233config TARGET_SAMA5D3XEK
234	bool "SAMA5D3X-EK board"
235	select BOARD_EARLY_INIT_F
236	select BOARD_LATE_INIT
237	select SAMA5D3
238	select SUPPORT_SPL
239
240config TARGET_SAMA5D4_XPLAINED
241	bool "SAMA5D4 Xplained board"
242	select BOARD_EARLY_INIT_F
243	select BOARD_LATE_INIT
244	select SAMA5D4
245	select SUPPORT_SPL
246
247config TARGET_SAMA5D4EK
248	bool "SAMA5D4 Evaluation Kit"
249	select BOARD_EARLY_INIT_F
250	select BOARD_LATE_INIT
251	select SAMA5D4
252	select SUPPORT_SPL
253
254config TARGET_MEESC
255	bool "Support meesc"
256	select AT91SAM9263
257
258config TARGET_CORVUS
259	bool "Support corvus"
260	select AT91SAM9M10G45
261	select DM
262	select DM_ETH
263	select DM_GPIO
264	select DM_SERIAL
265	select SUPPORT_SPL
266	imply CMD_DM
267
268config TARGET_SAMA7G5EK
269       bool "SAMA7G5 EK board"
270       select SAMA7G5
271       select BOARD_EARLY_INIT_F
272       select BOARD_LATE_INIT
273
274
275config TARGET_TAURUS
276	bool "Support taurus"
277	select AT91SAM9G20
278	select DM
279	select DM_ETH
280	select DM_GPIO
281	select DM_SERIAL
282	select DM_SPI
283	select SPI
284	select SUPPORT_SPL
285	imply CMD_DM
286
287config TARGET_SMARTWEB
288	bool "Support smartweb"
289	select AT91SAM9260
290	select DM
291	select DM_ETH
292	select DM_GPIO
293	select DM_SERIAL
294	select SUPPORT_SPL
295	imply CMD_DM
296
297config TARGET_VINCO
298	bool "Support VINCO"
299	select DM
300	select DM_SPI
301	select SAMA5D4
302	select SPI
303	select SUPPORT_SPL
304	imply CMD_DM
305
306config TARGET_WB45N
307	bool "Support Laird WB45N"
308	select CPU_ARM926EJS
309	select SUPPORT_SPL
310
311config TARGET_WB50N
312	bool "Support Laird WB50N"
313	select BOARD_EARLY_INIT_F
314	select BOARD_LATE_INIT
315	select CPU_V7A
316	select SUPPORT_SPL
317	select ATMEL_SFR
318
319endchoice
320
321config ATMEL_SFR
322	bool
323	default n
324
325config SYS_SOC
326	default "at91"
327
328source "board/atmel/at91rm9200ek/Kconfig"
329source "board/atmel/at91sam9260ek/Kconfig"
330source "board/atmel/at91sam9261ek/Kconfig"
331source "board/atmel/at91sam9263ek/Kconfig"
332source "board/atmel/at91sam9m10g45ek/Kconfig"
333source "board/atmel/at91sam9n12ek/Kconfig"
334source "board/atmel/at91sam9rlek/Kconfig"
335source "board/atmel/at91sam9x5ek/Kconfig"
336source "board/atmel/sam9x60ek/Kconfig"
337source "board/atmel/sama7g5ek/Kconfig"
338source "board/atmel/sama5d2_ptc_ek/Kconfig"
339source "board/atmel/sama5d2_xplained/Kconfig"
340source "board/atmel/sama5d27_som1_ek/Kconfig"
341source "board/atmel/sama5d27_wlsom1_ek/Kconfig"
342source "board/atmel/sama5d2_icp/Kconfig"
343source "board/atmel/sama5d3_xplained/Kconfig"
344source "board/atmel/sama5d3xek/Kconfig"
345source "board/atmel/sama5d4_xplained/Kconfig"
346source "board/atmel/sama5d4ek/Kconfig"
347source "board/bluewater/gurnard/Kconfig"
348source "board/bluewater/snapper9260/Kconfig"
349source "board/calao/usb_a9263/Kconfig"
350source "board/egnite/ethernut5/Kconfig"
351source "board/esd/meesc/Kconfig"
352source "board/gardena/smart-gateway-at91sam/Kconfig"
353source "board/l+g/vinco/Kconfig"
354source "board/mini-box/picosam9g45/Kconfig"
355source "board/ronetix/pm9261/Kconfig"
356source "board/ronetix/pm9263/Kconfig"
357source "board/ronetix/pm9g45/Kconfig"
358source "board/siemens/corvus/Kconfig"
359source "board/siemens/taurus/Kconfig"
360source "board/siemens/smartweb/Kconfig"
361source "board/laird/wb45n/Kconfig"
362source "board/laird/wb50n/Kconfig"
363
364config SPL_LDSCRIPT
365	default "arch/arm/mach-at91/arm926ejs/u-boot-spl.lds" if CPU_ARM926EJS
366	default "arch/arm/mach-at91/armv7/u-boot-spl.lds" if CPU_V7A
367
368endif
369