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 MTD
92	select SPI
93	imply CMD_DM
94
95config TARGET_AT91SAM9261EK
96	bool "Atmel at91sam9261 reference board"
97	select AT91SAM9261
98	select BOARD_EARLY_INIT_F
99
100config TARGET_PM9261
101	bool "Ronetix pm9261 board"
102	select AT91SAM9261
103
104config TARGET_AT91SAM9263EK
105	bool "Atmel at91sam9263 reference board"
106	select AT91SAM9263
107	select BOARD_EARLY_INIT_F
108
109config TARGET_USB_A9263
110	bool "Caloa USB A9260 board"
111	select AT91SAM9263
112	select AT91_WANTS_COMMON_PHY
113
114config TARGET_PM9263
115	bool "Ronetix pm9263 board"
116	select AT91SAM9263
117
118config TARGET_AT91SAM9M10G45EK
119	bool "Atmel AT91SAM9M10G45-EK board"
120	select AT91SAM9M10G45
121	select BOARD_EARLY_INIT_F
122	select SUPPORT_SPL
123
124config TARGET_PM9G45
125	bool "Ronetix pm9g45 board"
126	select AT91SAM9G45
127
128config TARGET_AT91SAM9N12EK
129	bool "Atmel AT91SAM9N12-EK board"
130	select AT91SAM9N12
131	select BOARD_EARLY_INIT_F
132	select SUPPORT_SPL
133
134config TARGET_AT91SAM9RLEK
135	bool "Atmel at91sam9rl reference board"
136	select AT91SAM9RL
137	select BOARD_EARLY_INIT_F
138
139config TARGET_AT91SAM9X5EK
140	bool "Atmel AT91SAM9X5-EK board"
141	select AT91SAM9X5
142	select BOARD_EARLY_INIT_F
143	select BOARD_LATE_INIT
144	select SUPPORT_SPL
145
146config TARGET_GARDENA_SMART_GATEWAY_AT91SAM
147	bool "GARDENA smart Gateway (AT91SAM)"
148	select AT91SAM9X5
149	select BOARD_EARLY_INIT_F
150	select BOARD_LATE_INIT
151	select SUPPORT_SPL
152
153config TARGET_SAM9X60EK
154	bool "SAM9X60-EK board"
155	select SAM9X60
156	select BOARD_EARLY_INIT_F
157	select BOARD_LATE_INIT
158
159config TARGET_SAM9X60_CURIOSITY
160        bool "SAM9X60 CURIOSITY board"
161        select SAM9X60
162        select BOARD_EARLY_INIT_F
163        select BOARD_LATE_INIT
164
165config TARGET_SAMA5D2_PTC_EK
166	bool "SAMA5D2 PTC EK board"
167	select BOARD_EARLY_INIT_F
168	select SAMA5D2
169	select BOARD_LATE_INIT
170
171config TARGET_SAMA5D2_XPLAINED
172	bool "SAMA5D2 Xplained board"
173	select BOARD_EARLY_INIT_F
174	select BOARD_LATE_INIT
175	select SAMA5D2
176	select SUPPORT_SPL
177
178config TARGET_SAMA5D27_SOM1_EK
179	bool "SAMA5D27 SOM1 EK board"
180	select SAMA5D2
181	select BOARD_EARLY_INIT_F
182	select BOARD_LATE_INIT
183	select CPU_V7A
184	select SUPPORT_SPL
185	select ATMEL_SFR
186	help
187	  The SAMA5D27 SOM1 embeds SAMA5D2 SiP(System in Package),
188	  a 64Mbit QSPI flash, KSZ8081 Phy and a Mac-address EEPROM
189	  24AA02E48. The SAMA5D2 SiP integrates the ARM Cortex-A5
190	  processor-based SAMA5D2 MPU with up to 1 Gbit DDR2-SDRAM
191	  in a single package.
192
193config TARGET_SAMA5D27_WLSOM1_EK
194	bool "SAMA5D27 WLSOM1 EK board"
195	select SAMA5D2
196	select BOARD_EARLY_INIT_F
197	select BOARD_LATE_INIT
198	select CPU_V7A
199	select SUPPORT_SPL
200	help
201	  The SAMA5D27 WLSOM1 embeds SAMA5D2 SiP (System in Package),
202	  a 64Mbit QSPI flash with Mac-address, KSZ8081 Phy. A wireless
203	  module providing bluetooth and wifi is also embedded.
204	  The SAMA5D2 SiP integrates the ARM Cortex-A5
205	  processor-based SAMA5D2 MPU with 2 Gbit LPDDR2-SDRAM
206	  in a single package.
207
208config TARGET_KSTR_SAMA5D27
209	bool "Conclusive KSTR-SAMA5D27 board"
210	select BOARD_EARLY_INIT_F
211	select SAMA5D2
212	help
213	  The KSTR-SAMA5D27 embeds SAMA5D27 SoC, together with
214	  256 MiB SDRAM, 10/100 Mbit/s Ethernet, 96 Mbit/s Wi-Fi b/g/n,
215	  Bluetooth 4.1 LE, USB OTG controller w/ type-C USB connector
216	  and stackable GPIO headers in an all-in-one SBC form factor:
217	  https://conclusive.pl/products/kstr-sama5d27-sbc/
218
219config TARGET_SAMA5D2_ICP
220	bool "SAMA5D2 Industrial Connectivity Platform (ICP)"
221	select SAMA5D2
222	select SUPPORT_SPL
223	select BOARD_EARLY_INIT_F
224	select BOARD_LATE_INIT
225	help
226	  The SAMA5D2 ICP embeds SAMA5D27 rev. C SoC, together with
227	  a 64Mbit QSPI flash, 3xMikrobus connectors, 4xUSB ,
228	  EtherCat and WILC3000 devices on board.
229
230config TARGET_SAMA5D29_CURIOSITY
231	bool "SAMA5D29 CURIOSITY board"
232	select SAMA5D2
233	select BOARD_EARLY_INIT_F
234	select BOARD_LATE_INIT
235	select CPU_V7A
236	help
237	  The SAMA5D29 Curiosity embeds SAMA5D29 SoC with 4 Gbit LPDDR2-SDRAM,
238	  a 64Mbit QSPI flash with Mac-address, MCP16502 PMIC, RGB LCD connector,
239	  2 x Mikrobus connectors, 2 x SD-Card connectors, 2 x USB
240
241config TARGET_SAMA5D3_XPLAINED
242	bool "SAMA5D3 Xplained board"
243	select BOARD_EARLY_INIT_F
244	select SAMA5D3
245	select SUPPORT_SPL
246	select BOARD_LATE_INIT
247
248config TARGET_SAMA5D3XEK
249	bool "SAMA5D3X-EK board"
250	select BOARD_EARLY_INIT_F
251	select BOARD_LATE_INIT
252	select SAMA5D3
253	select SUPPORT_SPL
254
255config TARGET_SAMA5D4_XPLAINED
256	bool "SAMA5D4 Xplained board"
257	select BOARD_EARLY_INIT_F
258	select BOARD_LATE_INIT
259	select SAMA5D4
260	select SUPPORT_SPL
261
262config TARGET_SAMA5D4EK
263	bool "SAMA5D4 Evaluation Kit"
264	select BOARD_EARLY_INIT_F
265	select BOARD_LATE_INIT
266	select SAMA5D4
267	select SUPPORT_SPL
268
269config TARGET_MEESC
270	bool "Support meesc"
271	select AT91SAM9263
272
273config TARGET_CORVUS
274	bool "Support corvus"
275	select AT91SAM9M10G45
276	select AT91_WANTS_COMMON_PHY
277	select DM
278	select DM_GPIO
279	select DM_SERIAL
280	select SUPPORT_SPL
281	imply CMD_DM
282
283config TARGET_SAMA7G5EK
284       bool "SAMA7G5 EK board"
285       select SAMA7G5
286       select BOARD_EARLY_INIT_F
287       select BOARD_LATE_INIT
288
289config TARGET_SAMA7G54_CURIOSITY
290	bool "SAMA7G54 CURIOSITY board"
291	select SAMA7G5
292	select CPU_V7A
293	help
294	  The SAMA7G54 Curiosity embeds SAMA7G54D2G SiP (System in Package)
295	  with 2Gbit DDR3-SDRAM, 64Mbit QSPI nor-flash with MAC-address,
296	  4Gbit SLC nand-flash, MCP16502 PMIC, 2 x Mikrobus connectors,
297	  1 x SD-Card connector, 1 x M.2 slot, 3 x USB
298
299config TARGET_TAURUS
300	bool "Support taurus"
301	select AT91SAM9G20
302	select AT91_WANTS_COMMON_PHY
303	select DM
304	select DM_GPIO
305	select DM_SERIAL
306	select DM_SPI
307	select MTD
308	select SPI
309	select SUPPORT_SPL
310	imply CMD_DM
311
312config TARGET_SMARTWEB
313	bool "Support smartweb"
314	select AT91SAM9260
315	select AT91_WANTS_COMMON_PHY
316	select DM
317	select DM_GPIO
318	select DM_SERIAL
319	select SUPPORT_SPL
320	imply CMD_DM
321
322config TARGET_VINCO
323	bool "Support VINCO"
324	select DM
325	select DM_SPI
326	select MTD
327	select SAMA5D4
328	select SPI
329	select SUPPORT_SPL
330	imply CMD_DM
331
332endchoice
333
334config ATMEL_SFR
335	bool
336
337config AT91RESET_EXTRST
338	bool
339
340config SYS_SOC
341	default "at91"
342
343config AT91_EFLASH
344	bool "Support AT91 flash driver"
345	depends on AT91SAM9XE
346	select USE_SYS_MAX_FLASH_BANKS
347	help
348	  Enable the driver for the embedded flash used in the Atmel
349	  AT91SAM9XE devices.
350
351config EFLASH_PROTSECTORS
352	int "Number of flash sectors to protect from erasing"
353	depends on AT91_EFLASH
354	help
355	  If non-zero, this will be the number of sectors of the flash to disallow
356	  U-Boot to ease, starting from the beginning of flash.
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/sama7g5ek/Kconfig"
378source "board/atmel/sama7g54_curiosity/Kconfig"
379source "board/atmel/sama5d2_ptc_ek/Kconfig"
380source "board/atmel/sama5d2_xplained/Kconfig"
381source "board/atmel/sama5d27_som1_ek/Kconfig"
382source "board/atmel/sama5d27_wlsom1_ek/Kconfig"
383source "board/atmel/sama5d2_icp/Kconfig"
384source "board/atmel/sama5d29_curiosity/Kconfig"
385source "board/atmel/sama5d3_xplained/Kconfig"
386source "board/atmel/sama5d3xek/Kconfig"
387source "board/atmel/sama5d4_xplained/Kconfig"
388source "board/atmel/sama5d4ek/Kconfig"
389source "board/bluewater/gurnard/Kconfig"
390source "board/calao/usb_a9263/Kconfig"
391source "board/conclusive/kstr-sama5d27/Kconfig"
392source "board/egnite/ethernut5/Kconfig"
393source "board/esd/meesc/Kconfig"
394source "board/gardena/smart-gateway-at91sam/Kconfig"
395source "board/l+g/vinco/Kconfig"
396source "board/ronetix/pm9261/Kconfig"
397source "board/ronetix/pm9263/Kconfig"
398source "board/ronetix/pm9g45/Kconfig"
399source "board/siemens/corvus/Kconfig"
400source "board/siemens/taurus/Kconfig"
401source "board/siemens/smartweb/Kconfig"
402
403endif
404