summaryrefslogtreecommitdiff
path: root/board/Config.in
blob: b478e2011497a98836db6e143e6e925a5f842a90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
config	HAVE_DOT_CONFIG
	bool
	default y

config CONFIG_BOARDNAME
	string "Board Name"
	default "at91sam9260ek"
	help
	  Name of the target

choice
	prompt "Board Type"
	default	CONFIG_AT91SAM9260EK
	help
	  Select which board you want to build for

config	CONFIG_AT91SAM9260EK
	bool "at91sam9260ek"
	select CONFIG_SDRAM
	select ALLOW_DATAFLASH
	select ALLOW_NANDFLASH
	select DATAFLASHCARD_ON_CS0
	select ALLOW_CPU_CLK_200MHZ
	select ALLOW_CRYSTAL_18_432MHZ
	select ALLOW_BOOT_FROM_DATAFLASH_CS0
	select ALLOW_BOOT_FROM_DATAFLASH_CS1
	help
	  Use the AT91SAM9260EK Development board

config	CONFIG_AT91SAM9261EK
	bool "at91sam9261ek"
	select CONFIG_SDRAM
	select ALLOW_DATAFLASH
	select ALLOW_NANDFLASH
	select ALLOW_CPU_CLK_200MHZ
	select ALLOW_CPU_CLK_266MHZ
	select ALLOW_CRYSTAL_18_432MHZ
	select ALLOW_BOOT_FROM_DATAFLASH_CS0
	select ALLOW_BOOT_FROM_DATAFLASH_CS3
	help
	  Use the AT91SAM9261EK Development board

config	CONFIG_AT91SAM9263EK
	bool "at91sam9263ek"
	select CONFIG_SDRAM
	select ALLOW_DATAFLASH
	select ALLOW_NANDFLASH
	select ALLOW_PSRAM
	select ALLOW_SDRAM_16BIT
	select DATAFLASHCARD_ON_CS0
	select ALLOW_CPU_CLK_200MHZ
	select ALLOW_CPU_CLK_240MHZ
	select ALLOW_CRYSTAL_16_36766MHZ
	select ALLOW_CRYSTAL_18_432MHZ
	select ALLOW_BOOT_FROM_DATAFLASH_CS0
	help
	  Use the AT91SAM9263EK Development board

config	CONFIG_AT91SAM9RLEK
	bool "at91sam9rlek"
	select ALLOW_DATAFLASH
	select ALLOW_NANDFLASH
	select CONFIG_SDRAM
	select ALLOW_CPU_CLK_200MHZ
	select ALLOW_CPU_CLK_266MHZ
	select ALLOW_CRYSTAL_18_432MHZ
	select ALLOW_BOOT_FROM_DATAFLASH_CS0
	help
	  Use the AT91SAM9RLEK Development board

config	CONFIG_AT91SAM9XEEK
	bool "at91sam9xeek"
	select CONFIG_SDRAM
	select ALLOW_DATAFLASH
	select ALLOW_NANDFLASH
	select DATAFLASHCARD_ON_CS0
	select ALLOW_CPU_CLK_200MHZ
	select ALLOW_CRYSTAL_18_432MHZ
	select ALLOW_BOOT_FROM_DATAFLASH_CS0
	select ALLOW_BOOT_FROM_DATAFLASH_CS1
	help
	  Use the AT91SAM9XEEK Development board

config	CONFIG_AT91SAM9G10EK
	bool "at91sam9g10ek"
	select CONFIG_SDRAM
	select ALLOW_DATAFLASH
	select ALLOW_NANDFLASH
	select ALLOW_CPU_CLK_200MHZ
	select ALLOW_CPU_CLK_266MHZ
	select ALLOW_CRYSTAL_18_432MHZ
	select ALLOW_BOOT_FROM_DATAFLASH_CS0
	select ALLOW_BOOT_FROM_DATAFLASH_CS3
	help
	  Use the AT91SAM9G10EK Development board

config	CONFIG_AT91SAM9G20EK
	bool "at91sam9g20ek"
	select CONFIG_SDRAM
	select ALLOW_DATAFLASH
	select ALLOW_NANDFLASH
	select DATAFLASHCARD_ON_CS0
	select ALLOW_CPU_CLK_400MHZ
	select ALLOW_CRYSTAL_18_432MHZ
	select ALLOW_BOOT_FROM_DATAFLASH_CS0
	select ALLOW_BOOT_FROM_DATAFLASH_CS1
	help
	  Use the AT91SAM9G20EK Development board

config	CONFIG_AT91SAM9G45EK
	bool "at91sam9g45ek"
	select CONFIG_DDR2
	select ALLOW_DATAFLASH
	select ALLOW_NANDFLASH
	select DATAFLASHCARD_ON_CS0
	select ALLOW_CPU_CLK_400MHZ
	select ALLOW_CRYSTAL_18_432MHZ
	select ALLOW_BOOT_FROM_DATAFLASH_CS0
	help
	  Use the AT91SAM9G45EK Development board
	  Can also be used for AT91SAM9M10/M11

config	CONFIG_AT91SAM9G45EKES
	bool "at91sam9g45ekes (with Engineering sample)"
	select CONFIG_DDR2
	select ALLOW_DATAFLASH
	select ALLOW_NANDFLASH
	select DATAFLASHCARD_ON_CS0
	select ALLOW_CPU_CLK_400MHZ
	select ALLOW_CRYSTAL_18_432MHZ
	select ALLOW_BOOT_FROM_DATAFLASH_CS0
	help
	  Use the AT91SAM9G45EK-ES Development board
	  Can also be used for AT91SAM9M10/M11-ES

config	CONFIG_AT91SAM9M10EK
	bool "at91sam9m10ek"
	select CONFIG_DDR2
	select ALLOW_DATAFLASH
	select ALLOW_NANDFLASH
	select DATAFLASHCARD_ON_CS0
	select ALLOW_CPU_CLK_400MHZ
	select ALLOW_CRYSTAL_18_432MHZ
	select ALLOW_BOOT_FROM_DATAFLASH_CS0
	help
	  Use the AT91SAM9M10EK Development board
	  Can also be used for AT91SAM9G45

config	CONFIG_AT91CAP9ADK
	bool "at91cap9adk"
	select CONFIG_SDDRC
	select ALLOW_DATAFLASH
	select ALLOW_FLASH
	select DATAFLASHCARD_ON_CS0
	select ALLOW_CPU_CLK_200MHZ
	select ALLOW_CPU_CLK_240MHZ
	select ALLOW_CRYSTAL_12_000MHZ
	select ALLOW_BOOT_FROM_DATAFLASH_CS0
	help
	  Use the AT91CAP9ADK Development board

config	CONFIG_AT91CAP9STK
	bool "at91cap9stk"
	select CONFIG_SDDRC
	select ALLOW_DATAFLASH
	select ALLOW_FLASH
	select DATAFLASHCARD_ON_CS0
	select ALLOW_CPU_CLK_200MHZ
	select ALLOW_CPU_CLK_240MHZ
	select ALLOW_CRYSTAL_12_000MHZ
	select ALLOW_BOOT_FROM_DATAFLASH_CS0
	help
	  Use the AT91CAP9ADK Development board

config	CONFIG_AFEB9260
	bool "afeb9260"
	select CONFIG_SDRAM
	select ALLOW_DATAFLASH
	select ALLOW_NANDFLASH
	select ALLOW_CPU_CLK_166MHZ
	select ALLOW_CPU_CLK_180MHZ
	select ALLOW_CRYSTAL_18_432MHZ
	select ALLOW_BOOT_FROM_DATAFLASH_CS0
	select ALLOW_BOOT_FROM_DATAFLASH_CS1
	help
	  Use the AFEB9260 Development board

endchoice

config CONFIG_CHIP
	string
	default "AT91SAM9260"	if CONFIG_AT91SAM9260EK
	default "AT91SAM9261"	if CONFIG_AT91SAM9261EK
	default "AT91SAM9263"	if CONFIG_AT91SAM9263EK
	default "AT91SAM9RL"	if CONFIG_AT91SAM9RLEK
	default "AT91SAM9XE"	if CONFIG_AT91SAM9XEEK
	default "AT91SAM9G10"	if CONFIG_AT91SAM9G10EK
	default "AT91SAM9G20"	if CONFIG_AT91SAM9G20EK
	default "AT91SAM9G45"	if CONFIG_AT91SAM9G45EK
	default "AT91SAM9G45"	if CONFIG_AT91SAM9G45EKES
	default "AT91SAM9M10"	if CONFIG_AT91SAM9M10EK
	default "AT91CAP9"	if CONFIG_AT91CAP9ADK
	default "AT91CAP9"	if CONFIG_AT91CAP9STK
	default "AT91SAM9260"	if CONFIG_AFEB9260
	help
	  Name of the board, A Board Support package
	  (BSP) must be available.

config CONFIG_BOARD
	string
	default "at91sam9260ek"	if CONFIG_AT91SAM9260EK
	default "at91sam9261ek"	if CONFIG_AT91SAM9261EK
	default "at91sam9263ek"	if CONFIG_AT91SAM9263EK
	default "at91sam9rlek"	if CONFIG_AT91SAM9RLEK
	default "at91sam9xeek"	if CONFIG_AT91SAM9XEEK
	default "at91sam9g10ek"	if CONFIG_AT91SAM9G10EK
	default "at91sam9g20ek"	if CONFIG_AT91SAM9G20EK
	default "at91sam9g45ek"	if CONFIG_AT91SAM9G45EK
	default "at91sam9g45ekes" if CONFIG_AT91SAM9G45EKES
	default "at91sam9m10ek"	if CONFIG_AT91SAM9M10EK
	default "at91cap9adk"	if CONFIG_AT91CAP9ADK
	default "at91cap9stk"	if CONFIG_AT91CAP9STK
	default "afeb9260"	if CONFIG_AFEB9260
	help
	  Name of the board, A Board Support package
	  (BSP) must be available.

config CONFIG_MACH_TYPE
	string
	default "0x44B"	if CONFIG_AT91SAM9260EK
	default "0x350"	if CONFIG_AT91SAM9261EK
	default "0x4B2"	if CONFIG_AT91SAM9263EK	
	default "1326"	if CONFIG_AT91SAM9RLEK
	default "0x44B"	if CONFIG_AT91SAM9XEEK
	default "0x86F"	if CONFIG_AT91SAM9G10EK		
	default "0x658"	if CONFIG_AT91SAM9G20EK
	default "1830"	if CONFIG_AT91SAM9G45EK		# 1830	
	default "2212"	if CONFIG_AT91SAM9G45EKES	# 2212
	default "1830"	if CONFIG_AT91SAM9M10EK		# 1830
	default "0x61E"	if CONFIG_AT91CAP9ADK		# 1566
	default "0x85E"	if CONFIG_AT91CAP9STK		# 2142
	default "0x676"	if CONFIG_AT572D940DOM		# 1654
	default "1859"	if CONFIG_AFEB9260
	help

config CONFIG_LINK_ADDR
	string
	default "0x000000"
	help

#	default "0x200000"	if CONFIG_AT91SAM9260EK
#	default "0x300000"	if CONFIG_AT91SAM9261EK
#	default "0x300000"	if CONFIG_AT91SAM9263EK	
#	default "0x300000"	if CONFIG_AT91SAM9RLEK
#	default "0x200000"	if CONFIG_AT91SAM9XEEK
#	default "0x200000"	if CONFIG_AT91SAM9G20EK
#	default "0x000000"	if CONFIG_AT91CAP9ADK	&& CONFIG_DATAFLASH
#	default "0x100000"	if CONFIG_AT91CAP9ADK	&& CONFIG_FLASH
#	default "0x200000"
#	default "0x200000"	if CONFIG_AFEB9260

config CONFIG_TOP_OF_MEMORY
       string
	default "0x301000"	if CONFIG_AT91SAM9260EK
	default "0x328000"	if CONFIG_AT91SAM9261EK
	default "0x314000"	if CONFIG_AT91SAM9263EK	
	default "0x310000"	if CONFIG_AT91SAM9RLEK
	default "0x301000"	if CONFIG_AT91SAM9XEEK
	default "0x301000"	if CONFIG_AT91SAM9G10EK
	default "0x301000"	if CONFIG_AT91SAM9G20EK
	default "0x301000"	if CONFIG_AT91SAM9G45EK
	default "0x301000"	if CONFIG_AT91SAM9G45EKES
	default "0x301000"	if CONFIG_AT91SAM9M10EK
	default "0x108000"	if CONFIG_AT91CAP9ADK
	default "0x108000"	if CONFIG_AT91CAP9STK
	default "0x301000"	if CONFIG_AFEB9260
	help

config CONFIG_BOOTSTRAP_MAXSIZE
	string
	default "4096"	if CONFIG_AT91SAM9260EK
	default "4096"	if CONFIG_AFEB9260
	default "13000"

choice
	prompt "Crystal Frequency"
	default CONFIG_CRYSTAL_18_432MHZ
	help
	  Select the crystal frequency

config CONFIG_CRYSTAL_12_000MHZ
	bool "Build for use of an 12.000 MHz crystal (not yet supported)"
	depends on ALLOW_CRYSTAL_12_000MHZ

config CONFIG_CRYSTAL_16_000MHZ
	bool "Build for use of an 16.000 MHz crystal (not yet supported)"
	depends on ALLOW_CRYSTAL_16_000MHZ

config CONFIG_CRYSTAL_16_36766MHZ
	bool "Build for use of an 16.36766 MHz crystal"
	depends on ALLOW_CRYSTAL_16_36766MHZ


config CONFIG_CRYSTAL_18_432MHZ
	bool "Build for use of an 18.432 MHz crystal"
	depends on ALLOW_CRYSTAL_18_432MHZ

endchoice

config ALLOW_CRYSTAL_12_000MHZ
	bool

config ALLOW_CRYSTAL_16_000MHZ
	bool

config ALLOW_CRYSTAL_16_36766MHZ
	bool

config ALLOW_CRYSTAL_18_432MHZ
	bool

config CONFIG_CRYSTAL
	string


config CONFIG_CRYSTAL
	string
	default "CRYSTAL_16_000MHZ"	if CONFIG_CRYSTAL_16_000MHZ
	default "CRYSTAL_16_36766MHZ"	if CONFIG_CRYSTAL_16_36766MHZ
	default "CRYSTAL_18_432MHZ"	if CONFIG_CRYSTAL_18_432MHZ
	default "CRYSTAL_18_432MHZ"

choice
	prompt "CPU clock"
	default CONFIG_CPU_CLK_200MHZ

config	CONFIG_CPU_CLK_166MHZ
	bool "166 MHz"
	depends on ALLOW_CPU_CLK_166MHZ

config	CONFIG_CPU_CLK_180MHZ
	bool "180 MHz"
	depends on ALLOW_CPU_CLK_180MHZ

config	CONFIG_CPU_CLK_200MHZ
	bool "200 MHz"
	depends on ALLOW_CPU_CLK_200MHZ

config	CONFIG_CPU_CLK_240MHZ
	bool "240 MHz"
	depends on ALLOW_CPU_CLK_240MHZ
	depends on !DISABLE_CPU_CLK_240MHZ

config	CONFIG_CPU_CLK_266MHZ
	bool "266 MHz"
	depends on ALLOW_CPU_CLK_266MHZ

config	CONFIG_CPU_CLK_400MHZ
	bool "400 MHz"
	depends on ALLOW_CPU_CLK_400MHZ

endchoice

config	ALLOW_CPU_CLK_166MHZ
	bool

config	ALLOW_CPU_CLK_180MHZ
	bool

config	ALLOW_CPU_CLK_200MHZ
	bool

config	ALLOW_CPU_CLK_240MHZ
	bool

config	ALLOW_CPU_CLK_266MHZ
	bool

config	ALLOW_CPU_CLK_400MHZ
	bool

config	DISABLE_CPU_CLK_240MHZ
	bool
	default y if CONFIG_AT91SAM9263EK && CONFIG_CRYSTAL_16_36766MHZ
	default n

choice
	prompt "Bus Speed"
	default CONFIG_BUS_SPEED_133MHZ
	help
	  Select the speed of the bus

config CONFIG_BUS_SPEED_83MHZ
	bool "83 MHz"
	depends on ALLOW_CPU_CLK_166MHZ

config CONFIG_BUS_SPEED_90MHZ
	bool "90 MHz"
	depends on ALLOW_CPU_CLK_180MHZ

config CONFIG_BUS_SPEED_100MHZ
	bool "100 MHz"
	depends on ALLOW_CPU_CLK_200MHZ || ALLOW_CPU_CLK_400MHZ

config CONFIG_BUS_SPEED_133MHZ
	bool "133 MHz"
	depends on ALLOW_CPU_CLK_400MHZ || ALLOW_CPU_CLK_266MHZ


endchoice