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 AT91SAM9261
15	bool
16	select CPU_ARM926EJS
17
18config AT91SAM9263
19	bool
20	select CPU_ARM926EJS
21
22config AT91SAM9G45
23	bool
24	select CPU_ARM926EJS
25
26config AT91SAM9M10G45
27	bool
28	select CPU_ARM926EJS
29
30config AT91SAM9N12
31	bool
32	select CPU_ARM926EJS
33
34config AT91SAM9RL
35	bool
36	select CPU_ARM926EJS
37
38config AT91SAM9X5
39	bool
40	select CPU_ARM926EJS
41
42config SAM9X60
43	bool
44	select CPU_ARM926EJS
45
46config SAM9X7
47	bool
48	select CPU_ARM926EJS
49
50config SAMA7G5
51	bool
52	select CPU_V7A
53	select AT91RESET_EXTRST
54
55config SAMA7D65
56	bool
57	select CPU_V7A
58	select AT91RESET_EXTRST
59
60config SAMA5D2
61	bool
62	select CPU_V7A
63	select ATMEL_SFR
64
65config SAMA5D3
66	bool
67	select CPU_V7A
68
69config SAMA5D4
70	bool
71	select CPU_V7A
72	select ATMEL_SFR
73
74choice
75	prompt "Atmel AT91 board select"
76	optional
77
78config TARGET_AT91SAM9260EK
79	bool "Atmel at91sam9260 reference board"
80	select AT91SAM9260
81	select BOARD_EARLY_INIT_F
82
83config TARGET_GURNARD
84	bool "Support gurnard"
85	select AT91SAM9G45
86	select AT91_WANTS_COMMON_PHY
87	select BOARD_LATE_INIT
88	select DM
89	select DM_GPIO
90	select DM_SERIAL
91	select DM_SPI
92	select MTD
93	select SPI
94	imply CMD_DM
95
96config TARGET_AT91SAM9261EK
97	bool "Atmel at91sam9261 reference board"
98	select AT91SAM9261
99	select BOARD_EARLY_INIT_F
100
101config TARGET_PM9261
102	bool "Ronetix pm9261 board"
103	select AT91SAM9261
104
105config TARGET_AT91SAM9263EK
106	bool "Atmel at91sam9263 reference board"
107	select AT91SAM9263
108	select BOARD_EARLY_INIT_F
109
110config TARGET_USB_A9263
111	bool "Caloa USB A9260 board"
112	select AT91SAM9263
113	select AT91_WANTS_COMMON_PHY
114
115config TARGET_PM9263
116	bool "Ronetix pm9263 board"
117	select AT91SAM9263
118
119config TARGET_AT91SAM9M10G45EK
120	bool "Atmel AT91SAM9M10G45-EK board"
121	select AT91SAM9M10G45
122	select BOARD_EARLY_INIT_F
123	select SUPPORT_SPL
124
125config TARGET_PM9G45
126	bool "Ronetix pm9g45 board"
127	select AT91SAM9G45
128
129config TARGET_AT91SAM9N12EK
130	bool "Atmel AT91SAM9N12-EK board"
131	select AT91SAM9N12
132	select BOARD_EARLY_INIT_F
133	select SUPPORT_SPL
134
135config TARGET_AT91SAM9RLEK
136	bool "Atmel at91sam9rl reference board"
137	select AT91SAM9RL
138	select BOARD_EARLY_INIT_F
139
140config TARGET_AT91SAM9X5EK
141	bool "Atmel AT91SAM9X5-EK board"
142	select AT91SAM9X5
143	select BOARD_EARLY_INIT_F
144	select BOARD_LATE_INIT
145	select SUPPORT_SPL
146
147config TARGET_GARDENA_SMART_GATEWAY_AT91SAM
148	bool "GARDENA smart Gateway (AT91SAM)"
149	select AT91SAM9X5
150	select BOARD_EARLY_INIT_F
151	select BOARD_LATE_INIT
152	select SUPPORT_SPL
153
154config TARGET_SAM9X60EK
155	bool "SAM9X60-EK board"
156	select SAM9X60
157	select BOARD_EARLY_INIT_F
158	select BOARD_LATE_INIT
159
160config TARGET_SAM9X60_CURIOSITY
161        bool "SAM9X60 CURIOSITY board"
162        select SAM9X60
163        select BOARD_EARLY_INIT_F
164        select BOARD_LATE_INIT
165
166config TARGET_SAM9X75_CURIOSITY
167	bool "SAM9X75 CURIOSITY board"
168	select SAM9X7
169	select BOARD_EARLY_INIT_F
170	select BOARD_LATE_INIT
171	imply OF_UPSTREAM
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 SAMA5D2
189	select BOARD_EARLY_INIT_F
190	select BOARD_LATE_INIT
191	select CPU_V7A
192	select SUPPORT_SPL
193	select ATMEL_SFR
194	help
195	  The SAMA5D27 SOM1 embeds SAMA5D2 SiP(System in Package),
196	  a 64Mbit QSPI flash, KSZ8081 Phy and a Mac-address EEPROM
197	  24AA02E48. The SAMA5D2 SiP integrates the ARM Cortex-A5
198	  processor-based SAMA5D2 MPU with up to 1 Gbit DDR2-SDRAM
199	  in a single package.
200
201config TARGET_SAMA5D27_WLSOM1_EK
202	bool "SAMA5D27 WLSOM1 EK board"
203	select SAMA5D2
204	select BOARD_EARLY_INIT_F
205	select BOARD_LATE_INIT
206	select CPU_V7A
207	select SUPPORT_SPL
208	help
209	  The SAMA5D27 WLSOM1 embeds SAMA5D2 SiP (System in Package),
210	  a 64Mbit QSPI flash with Mac-address, KSZ8081 Phy. A wireless
211	  module providing bluetooth and wifi is also embedded.
212	  The SAMA5D2 SiP integrates the ARM Cortex-A5
213	  processor-based SAMA5D2 MPU with 2 Gbit LPDDR2-SDRAM
214	  in a single package.
215
216config TARGET_KSTR_SAMA5D27
217	bool "Conclusive KSTR-SAMA5D27 board"
218	select BOARD_EARLY_INIT_F
219	select SAMA5D2
220	help
221	  The KSTR-SAMA5D27 embeds SAMA5D27 SoC, together with
222	  256 MiB SDRAM, 10/100 Mbit/s Ethernet, 96 Mbit/s Wi-Fi b/g/n,
223	  Bluetooth 4.1 LE, USB OTG controller w/ type-C USB connector
224	  and stackable GPIO headers in an all-in-one SBC form factor:
225	  https://conclusive.pl/products/kstr-sama5d27-sbc/
226
227config TARGET_SAMA5D2_ICP
228	bool "SAMA5D2 Industrial Connectivity Platform (ICP)"
229	select SAMA5D2
230	select SUPPORT_SPL
231	select BOARD_EARLY_INIT_F
232	select BOARD_LATE_INIT
233	help
234	  The SAMA5D2 ICP embeds SAMA5D27 rev. C SoC, together with
235	  a 64Mbit QSPI flash, 3xMikrobus connectors, 4xUSB ,
236	  EtherCat and WILC3000 devices on board.
237
238config TARGET_SAMA5D29_CURIOSITY
239	bool "SAMA5D29 CURIOSITY board"
240	select SAMA5D2
241	select BOARD_EARLY_INIT_F
242	select BOARD_LATE_INIT
243	select CPU_V7A
244	help
245	  The SAMA5D29 Curiosity embeds SAMA5D29 SoC with 4 Gbit LPDDR2-SDRAM,
246	  a 64Mbit QSPI flash with Mac-address, MCP16502 PMIC, RGB LCD connector,
247	  2 x Mikrobus connectors, 2 x SD-Card connectors, 2 x USB
248
249config TARGET_SAMA5D3_XPLAINED
250	bool "SAMA5D3 Xplained board"
251	select BOARD_EARLY_INIT_F
252	select SAMA5D3
253	select SUPPORT_SPL
254	select BOARD_LATE_INIT
255
256config TARGET_SAMA5D3XEK
257	bool "SAMA5D3X-EK board"
258	select BOARD_EARLY_INIT_F
259	select BOARD_LATE_INIT
260	select SAMA5D3
261	select SUPPORT_SPL
262
263config TARGET_SAMA5D4_XPLAINED
264	bool "SAMA5D4 Xplained board"
265	select BOARD_EARLY_INIT_F
266	select BOARD_LATE_INIT
267	select SAMA5D4
268	select SUPPORT_SPL
269
270config TARGET_SAMA5D4EK
271	bool "SAMA5D4 Evaluation Kit"
272	select BOARD_EARLY_INIT_F
273	select BOARD_LATE_INIT
274	select SAMA5D4
275	select SUPPORT_SPL
276
277config TARGET_MEESC
278	bool "Support meesc"
279	select AT91SAM9263
280
281config TARGET_CORVUS
282	bool "Support corvus"
283	select AT91SAM9M10G45
284	select AT91_WANTS_COMMON_PHY
285	select DM
286	select DM_GPIO
287	select DM_SERIAL
288	select SUPPORT_SPL
289	imply CMD_DM
290
291config TARGET_SAMA7G5EK
292       bool "SAMA7G5 EK board"
293       select SAMA7G5
294       select BOARD_EARLY_INIT_F
295       select BOARD_LATE_INIT
296
297config TARGET_SAMA7G54_CURIOSITY
298	bool "SAMA7G54 CURIOSITY board"
299	select SAMA7G5
300	select CPU_V7A
301	help
302	  The SAMA7G54 Curiosity embeds SAMA7G54D2G SiP (System in Package)
303	  with 2Gbit DDR3-SDRAM, 64Mbit QSPI nor-flash with MAC-address,
304	  4Gbit SLC nand-flash, MCP16502 PMIC, 2 x Mikrobus connectors,
305	  1 x SD-Card connector, 1 x M.2 slot, 3 x USB
306
307config TARGET_SAMA7D65_CURIOSITY
308	bool "SAMA7D65 CURIOSITY board"
309	select SAMA7D65
310	select BOARD_EARLY_INIT_F
311	select BOARD_LATE_INIT
312	imply OF_UPSTREAM
313
314config TARGET_TAURUS
315	bool "Support taurus"
316	select AT91SAM9G20
317	select AT91_WANTS_COMMON_PHY
318	select DM
319	select DM_GPIO
320	select DM_SERIAL
321	select DM_SPI
322	select MTD
323	select SPI
324	select SUPPORT_SPL
325	imply CMD_DM
326
327config TARGET_SMARTWEB
328	bool "Support smartweb"
329	select AT91SAM9260
330	select AT91_WANTS_COMMON_PHY
331	select DM
332	select DM_GPIO
333	select DM_SERIAL
334	select SUPPORT_SPL
335	imply CMD_DM
336
337config TARGET_VINCO
338	bool "Support VINCO"
339	select DM
340	select DM_SPI
341	select MTD
342	select SAMA5D4
343	select SPI
344	select SUPPORT_SPL
345	imply CMD_DM
346
347endchoice
348
349config ATMEL_SFR
350	bool
351
352config AT91RESET_EXTRST
353	bool
354
355config SYS_SOC
356	default "at91"
357
358config AT91_GPIO_PULLUP
359	bool "Keep pullups on peripheral pins"
360	depends on CPU_ARM926EJS
361
362config ATMEL_LEGACY
363	bool "Legacy GPIO support"
364
365config AT91_WANTS_COMMON_PHY
366	bool
367
368source "board/atmel/at91sam9260ek/Kconfig"
369source "board/atmel/at91sam9261ek/Kconfig"
370source "board/atmel/at91sam9263ek/Kconfig"
371source "board/atmel/at91sam9m10g45ek/Kconfig"
372source "board/atmel/at91sam9n12ek/Kconfig"
373source "board/atmel/at91sam9rlek/Kconfig"
374source "board/atmel/at91sam9x5ek/Kconfig"
375source "board/atmel/sam9x60ek/Kconfig"
376source "board/atmel/sam9x60_curiosity/Kconfig"
377source "board/atmel/sam9x75_curiosity/Kconfig"
378source "board/atmel/sama7g5ek/Kconfig"
379source "board/atmel/sama7g54_curiosity/Kconfig"
380source "board/atmel/sama7d65_curiosity/Kconfig"
381source "board/atmel/sama5d2_ptc_ek/Kconfig"
382source "board/atmel/sama5d2_xplained/Kconfig"
383source "board/atmel/sama5d27_som1_ek/Kconfig"
384source "board/atmel/sama5d27_wlsom1_ek/Kconfig"
385source "board/atmel/sama5d2_icp/Kconfig"
386source "board/atmel/sama5d29_curiosity/Kconfig"
387source "board/atmel/sama5d3_xplained/Kconfig"
388source "board/atmel/sama5d3xek/Kconfig"
389source "board/atmel/sama5d4_xplained/Kconfig"
390source "board/atmel/sama5d4ek/Kconfig"
391source "board/bluewater/gurnard/Kconfig"
392source "board/calao/usb_a9263/Kconfig"
393source "board/conclusive/kstr-sama5d27/Kconfig"
394source "board/esd/meesc/Kconfig"
395source "board/gardena/smart-gateway-at91sam/Kconfig"
396source "board/l+g/vinco/Kconfig"
397source "board/ronetix/pm9261/Kconfig"
398source "board/ronetix/pm9263/Kconfig"
399source "board/ronetix/pm9g45/Kconfig"
400source "board/siemens/corvus/Kconfig"
401source "board/siemens/taurus/Kconfig"
402source "board/siemens/smartweb/Kconfig"
403
404endif
405