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