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_AT91SAM9N12EK
138	bool "Atmel AT91SAM9N12-EK board"
139	select AT91SAM9N12
140	select BOARD_EARLY_INIT_F
141	select SUPPORT_SPL
142
143config TARGET_AT91SAM9RLEK
144	bool "Atmel at91sam9rl reference board"
145	select AT91SAM9RL
146	select BOARD_EARLY_INIT_F
147
148config TARGET_AT91SAM9X5EK
149	bool "Atmel AT91SAM9X5-EK board"
150	select AT91SAM9X5
151	select BOARD_EARLY_INIT_F
152	select BOARD_LATE_INIT
153	select SUPPORT_SPL
154
155config TARGET_GARDENA_SMART_GATEWAY_AT91SAM
156	bool "GARDENA smart Gateway (AT91SAM)"
157	select AT91SAM9X5
158	select BOARD_EARLY_INIT_F
159	select BOARD_LATE_INIT
160	select SUPPORT_SPL
161
162config TARGET_SAM9X60EK
163	bool "SAM9X60-EK board"
164	select SAM9X60
165	select BOARD_EARLY_INIT_F
166	select BOARD_LATE_INIT
167
168config TARGET_SAMA5D2_PTC_EK
169	bool "SAMA5D2 PTC EK board"
170	select BOARD_EARLY_INIT_F
171	select SAMA5D2
172	select BOARD_LATE_INIT
173
174config TARGET_SAMA5D2_XPLAINED
175	bool "SAMA5D2 Xplained board"
176	select BOARD_EARLY_INIT_F
177	select BOARD_LATE_INIT
178	select SAMA5D2
179	select SUPPORT_SPL
180
181config TARGET_SAMA5D27_SOM1_EK
182	bool "SAMA5D27 SOM1 EK board"
183	select BOARD_EARLY_INIT_F
184	select BOARD_LATE_INIT
185	select CPU_V7A
186	select SUPPORT_SPL
187	select ATMEL_SFR
188	help
189	  The SAMA5D27 SOM1 embeds SAMA5D2 SiP(System in Package),
190	  a 64Mbit QSPI flash, KSZ8081 Phy and a Mac-address EEPROM
191	  24AA02E48. The SAMA5D2 SiP integrates the ARM Cortex-A5
192	  processor-based SAMA5D2 MPU with up to 1 Gbit DDR2-SDRAM
193	  in a single package.
194
195config TARGET_SAMA5D27_WLSOM1_EK
196	bool "SAMA5D27 WLSOM1 EK board"
197	select SAMA5D2
198	select BOARD_EARLY_INIT_F
199	select BOARD_LATE_INIT
200	select CPU_V7A
201	select SUPPORT_SPL
202	help
203	  The SAMA5D27 WLSOM1 embeds SAMA5D2 SiP (System in Package),
204	  a 64Mbit QSPI flash with Mac-address, KSZ8081 Phy. A wireless
205	  module providing bluetooth and wifi is also embedded.
206	  The SAMA5D2 SiP integrates the ARM Cortex-A5
207	  processor-based SAMA5D2 MPU with 2 Gbit LPDDR2-SDRAM
208	  in a single package.
209
210config TARGET_SAMA5D2_ICP
211	bool "SAMA5D2 Industrial Connectivity Platform (ICP)"
212	select SAMA5D2
213	select SUPPORT_SPL
214	select BOARD_EARLY_INIT_F
215	select BOARD_LATE_INIT
216	help
217	  The SAMA5D2 ICP embeds SAMA5D27 rev. C SoC, together with
218	  a 64Mbit QSPI flash, 3xMikrobus connectors, 4xUSB ,
219	  EtherCat and WILC3000 devices on board.
220
221config TARGET_SAMA5D3_XPLAINED
222	bool "SAMA5D3 Xplained board"
223	select BOARD_EARLY_INIT_F
224	select SAMA5D3
225	select SUPPORT_SPL
226	select BOARD_LATE_INIT
227
228config TARGET_SAMA5D3XEK
229	bool "SAMA5D3X-EK board"
230	select BOARD_EARLY_INIT_F
231	select BOARD_LATE_INIT
232	select SAMA5D3
233	select SUPPORT_SPL
234
235config TARGET_SAMA5D4_XPLAINED
236	bool "SAMA5D4 Xplained board"
237	select BOARD_EARLY_INIT_F
238	select BOARD_LATE_INIT
239	select SAMA5D4
240	select SUPPORT_SPL
241
242config TARGET_SAMA5D4EK
243	bool "SAMA5D4 Evaluation Kit"
244	select BOARD_EARLY_INIT_F
245	select BOARD_LATE_INIT
246	select SAMA5D4
247	select SUPPORT_SPL
248
249config TARGET_MEESC
250	bool "Support meesc"
251	select AT91SAM9263
252
253config TARGET_CORVUS
254	bool "Support corvus"
255	select AT91SAM9M10G45
256	select DM
257	select DM_ETH
258	select DM_GPIO
259	select DM_SERIAL
260	select SUPPORT_SPL
261	imply CMD_DM
262
263config TARGET_SAMA7G5EK
264       bool "SAMA7G5 EK board"
265       select SAMA7G5
266       select BOARD_EARLY_INIT_F
267       select BOARD_LATE_INIT
268
269
270config TARGET_TAURUS
271	bool "Support taurus"
272	select AT91SAM9G20
273	select DM
274	select DM_ETH
275	select DM_GPIO
276	select DM_SERIAL
277	select DM_SPI
278	select SPI
279	select SUPPORT_SPL
280	imply CMD_DM
281
282config TARGET_SMARTWEB
283	bool "Support smartweb"
284	select AT91SAM9260
285	select DM
286	select DM_ETH
287	select DM_GPIO
288	select DM_SERIAL
289	select SUPPORT_SPL
290	imply CMD_DM
291
292config TARGET_VINCO
293	bool "Support VINCO"
294	select DM
295	select DM_SPI
296	select SAMA5D4
297	select SPI
298	select SUPPORT_SPL
299	imply CMD_DM
300
301endchoice
302
303config ATMEL_SFR
304	bool
305	default n
306
307config SYS_SOC
308	default "at91"
309
310source "board/atmel/at91rm9200ek/Kconfig"
311source "board/atmel/at91sam9260ek/Kconfig"
312source "board/atmel/at91sam9261ek/Kconfig"
313source "board/atmel/at91sam9263ek/Kconfig"
314source "board/atmel/at91sam9m10g45ek/Kconfig"
315source "board/atmel/at91sam9n12ek/Kconfig"
316source "board/atmel/at91sam9rlek/Kconfig"
317source "board/atmel/at91sam9x5ek/Kconfig"
318source "board/atmel/sam9x60ek/Kconfig"
319source "board/atmel/sama7g5ek/Kconfig"
320source "board/atmel/sama5d2_ptc_ek/Kconfig"
321source "board/atmel/sama5d2_xplained/Kconfig"
322source "board/atmel/sama5d27_som1_ek/Kconfig"
323source "board/atmel/sama5d27_wlsom1_ek/Kconfig"
324source "board/atmel/sama5d2_icp/Kconfig"
325source "board/atmel/sama5d3_xplained/Kconfig"
326source "board/atmel/sama5d3xek/Kconfig"
327source "board/atmel/sama5d4_xplained/Kconfig"
328source "board/atmel/sama5d4ek/Kconfig"
329source "board/bluewater/gurnard/Kconfig"
330source "board/bluewater/snapper9260/Kconfig"
331source "board/calao/usb_a9263/Kconfig"
332source "board/egnite/ethernut5/Kconfig"
333source "board/esd/meesc/Kconfig"
334source "board/gardena/smart-gateway-at91sam/Kconfig"
335source "board/l+g/vinco/Kconfig"
336source "board/ronetix/pm9261/Kconfig"
337source "board/ronetix/pm9263/Kconfig"
338source "board/ronetix/pm9g45/Kconfig"
339source "board/siemens/corvus/Kconfig"
340source "board/siemens/taurus/Kconfig"
341source "board/siemens/smartweb/Kconfig"
342
343config SPL_LDSCRIPT
344	default "arch/arm/mach-at91/arm926ejs/u-boot-spl.lds" if CPU_ARM926EJS
345	default "arch/arm/mach-at91/armv7/u-boot-spl.lds" if CPU_V7A
346
347endif
348