summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-imx/Kconfig
blob: 726920f29b27f0ddafb34db3e664aacfa96ffbc3 (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
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
if ARCH_IMX

config ARCH_TEXT_BASE
	hex
	default 0x83f00000 if MACH_EUKREA_CPUIMX25
	default 0xa0000000 if MACH_EUKREA_CPUIMX27
	default 0x87f00000 if MACH_EUKREA_CPUIMX35
	default 0x97f00000 if MACH_EUKREA_CPUIMX51SD
	default 0x08f00000 if MACH_MX1ADS
	default 0xc0000000 if MACH_IMX21ADS
	default 0xa0000000 if MACH_IMX27ADS
	default 0x83f00000 if MACH_FREESCALE_MX25_3STACK && FREESCALE_MX25_3STACK_SDRAM_64MB_DDR2
	default 0x87f00000 if MACH_FREESCALE_MX25_3STACK && FREESCALE_MX25_3STACK_SDRAM_128MB_MDDR
	default 0x87f00000 if MACH_FREESCALE_MX35_3STACK
	default 0xa7f00000 if MACH_PCA100
	default 0xa0000000 if MACH_PCM038
	default 0x87f00000 if MACH_PCM037
	default 0x87f00000 if MACH_PCM043
	default 0x08f80000 if MACH_SCB9328
	default 0xa7e00000 if MACH_NESO
	default 0x97f00000 if MACH_MX51_PDK
	default 0x7ff00000 if MACH_MX53_LOCO
	default 0x7ff00000 if MACH_MX53_SMD
	default 0x87f00000 if MACH_GUF_CUPID
	default 0x93d00000 if MACH_TX25

config BOARDINFO
	default "Eukrea CPUIMX25" if MACH_EUKREA_CPUIMX25
	default "Eukrea CPUIMX27" if MACH_EUKREA_CPUIMX27
	default "Eukrea CPUIMX35" if MACH_EUKREA_CPUIMX35
	default "Eukrea CPUIMX51" if MACH_EUKREA_CPUIMX51SD
	default "Freescale i.MX21 ADS" if MACH_IMX21ADS
	default "Freescale i.MX27 ADS" if MACH_IMX27ADS
	default "Freescale MX35 3Stack" if MACH_FREESCALE_MX35_3STACK
	default "Freescale MX25 3Stack" if MACH_FREESCALE_MX25_3STACK
	default "Phytec phyCard-i.MX27" if MACH_PCA100
	default "Phytec phyCORE-i.MX27" if MACH_PCM038
	default "Phytec phyCORE-i.MX31" if MACH_PCM037
	default "Phytec phyCORE-i.MX35" if MACH_PCM043
	default "Synertronixx scb9328" if MACH_SCB9328
	default "Garz+Fricke Neso" if MACH_NESO
	default "Freescale i.MX51 PDK" if MACH_FREESCALE_MX51_PDK
	default "Freescale i.MX53 LOCO" if MACH_FREESCALE_MX53_LOCO
	default "Freescale i.MX53 SMD" if MACH_FREESCALE_MX53_SMD
	default "Garz+Fricke Cupid" if MACH_GUF_CUPID
	default "Ka-Ro tx25" if MACH_TX25

choice
	prompt "Select boot mode"
	help
	  i.MX processors support two different boot modes. With the internal
	  boot mode the boot medium contains a header describing the image to
	  load. The header also contains a register/value table which can be
	  used to setup SDRAM. The internal ROM code then initializes SDRAM
	  using the register/value table, loads the whole barebox image to
	  SDRAM and starts it. The internal boot mode is available on newer
	  i.MX processors (i.MX25, i.MX35, i.MX51 and i.MX53). and supports
	  booting from NOR, NAND, MMC/SD and serial ROMs.
	  The external boot mode only supports booting from NAND and NOR. With
	  NOR flash the image is just started in NOR flash. With NAND flash
	  the NAND controller loads the first 2kbyte from NAND into the NAND
	  controllers internal SRAM where it is then started. It's the
	  responsibility of these 2kbyte to load the rest of the boot image.
	  The external boot mode is supported on older i.MX processors (i.MX1,
	  i.MX21, i.MX25, i.MX27, i.MX21, i.MX35).

config ARCH_IMX_INTERNAL_BOOT
	bool "support internal boot mode"
	depends on ARCH_IMX25 || ARCH_IMX35 || ARCH_IMX51 || ARCH_IMX53

config ARCH_IMX_EXTERNAL_BOOT
	bool "support external boot mode"
	depends on ARCH_IMX1 || ARCH_IMX21 || ARCH_IMX25 || ARCH_IMX27 || ARCH_IMX31 || ARCH_IMX35

endchoice

choice
	depends on ARCH_IMX_INTERNAL_BOOT
	prompt "Internal boot source"
	default ARCH_IMX_INTERNAL_BOOT_NAND
	help
	  Determines the location of the header information for internal boot.
	  0x100 for OneNAND
	  0x400 for NAND, SD/MMC or Serial ROM
	  0x1000 for NOR

config ARCH_IMX_INTERNAL_BOOT_NAND
	bool "NAND, SD/MMC, Serial ROM"

config ARCH_IMX_INTERNAL_BOOT_NOR
	bool "NOR"

config ARCH_IMX_INTERNAL_BOOT_ONENAND
	bool "OneNAND"

endchoice

config NAND_IMX_BOOT
	bool
	depends on ARCH_IMX_EXTERNAL_BOOT_NAND
	default y

config ARCH_IMX_EXTERNAL_BOOT_NAND
	bool
	prompt "Support Starting barebox from NAND"
	depends on ARCH_IMX_EXTERNAL_BOOT

choice
	depends on ARCH_IMX_EXTERNAL_BOOT_NAND
	default NAND_IMX_BOOT_512_2K
	prompt "select nand pagesize you want to support booting from"

config NAND_IMX_BOOT_512
	bool "512 byte page size"

config NAND_IMX_BOOT_2K
	bool "2048 byte page size"

config NAND_IMX_BOOT_512_2K
	bool "512 byte and 2048 byte pagesize"

endchoice

comment "Freescale i.MX System-on-Chip"

choice
	prompt "Freescale i.MX Processor"

config ARCH_IMX1
	bool "i.MX1"
	select CPU_ARM920T

config ARCH_IMX21
	bool "i.MX21"
	select CPU_ARM926T

config ARCH_IMX25
	bool "i.MX25"
	select CPU_ARM926T
	select ARCH_HAS_FEC_IMX

config ARCH_IMX27
	bool "i.MX27"
	select CPU_ARM926T
	select ARCH_HAS_FEC_IMX

config ARCH_IMX31
	select CPU_V6
	bool "i.MX31"

config ARCH_IMX35
	bool "i.MX35"
	select CPU_V6
	select ARCH_HAS_FEC_IMX

config ARCH_IMX51
	bool "i.MX51"
	select CPU_V7
	select ARCH_HAS_FEC_IMX

config ARCH_IMX53
	bool "i.MX53"
	select CPU_V7
	select ARCH_HAS_FEC_IMX

endchoice

# ----------------------------------------------------------

if ARCH_IMX1

choice

	prompt "i.MX1 Board Type"

config MACH_MX1ADS
	bool "mx1ads"
	select HAS_CS8900
	help
	  Say Y here if you are using the Motorola MX1ADS board

config MACH_SCB9328
	bool "Synertronixx scb9328"
	select HAS_DM9000
	select HAS_CFI
	select MACH_HAS_LOWLEVEL_INIT
	help
	  Say Y here if you are using the Synertronixx scb9328 board

endchoice

endif

# ----------------------------------------------------------

if ARCH_IMX21

choice

	prompt "i.MX21 Board Type"

config MACH_IMX21ADS
	bool "Freescale i.MX21ADS"
	select HAS_CFI
	select MACH_HAS_LOWLEVEL_INIT
	select HAS_CS8900
	help
	  Say Y here if you are using the Freescale i.MX21ads board equipped
	  with a Freescale i.MX21 Processor

endchoice

endif

# ----------------------------------------------------------

if ARCH_IMX25

choice

	prompt "i.MX25 Board Type"

config MACH_EUKREA_CPUIMX25
	bool "Eukrea CPUIMX25"
	select MACH_HAS_LOWLEVEL_INIT
	help
	  Say Y here if you are using the Eukrea Electromatique's CPUIMX25
	  equipped with a Freescale i.MX25 Processor

config MACH_FREESCALE_MX25_3STACK
	bool "Freescale MX25 3stack"
	select HAS_CFI
	select MACH_HAS_LOWLEVEL_INIT
	select I2C
	select I2C_MC34704
	help
	  Say Y here if you are using the Freescale MX25 3stack board equipped
	  with a Freescale i.MX25 Processor

config MACH_TX25
	bool "Ka-Ro TX25"
	select MACH_HAS_LOWLEVEL_INIT
	help
	  Say Y here if you are using the Ka-Ro tx25 board

endchoice

endif

# ----------------------------------------------------------

if ARCH_IMX27

choice

	prompt "i.MX27 Board Type"

config MACH_EUKREA_CPUIMX27
	bool "EUKREA CPUIMX27"
	select HAS_CFI
	select MACH_HAS_LOWLEVEL_INIT
	help
	  Say Y here if you are using Eukrea's CPUIMX27 equipped
	  with a Freescale i.MX27 Processor

config MACH_IMX27ADS
	bool "Freescale i.MX27ADS"
	select HAS_CFI
	select MACH_HAS_LOWLEVEL_INIT
	help
	  Say Y here if you are using the Freescale i.MX27ads board equipped
	  with a Freescale i.MX27 Processor

config MACH_PCA100
	bool "phyCard-i.MX27"
	select MACH_HAS_LOWLEVEL_INIT
	help
	  Say Y here if you are using Phytec's phyCard-i.MX27 (pca100) equipped
	  with a Freescale i.MX27 Processor

config MACH_PCM038
	bool "phyCORE-i.MX27"
	select HAS_CFI
	select MACH_HAS_LOWLEVEL_INIT
	select SPI
	select DRIVER_SPI_IMX
	select DRIVER_SPI_MC13783
	help
	  Say Y here if you are using Phytec's phyCORE-i.MX27 (pcm038) equipped
	  with a Freescale i.MX27 Processor

config MACH_NESO
	bool "Garz+Fricke Neso"
	select MACH_HAS_LOWLEVEL_INIT
	help
	  Say Y here if you are using the Garz+Fricke Neso board equipped
	  with a Freescale i.MX27 Processor

endchoice

endif

# ----------------------------------------------------------

if ARCH_IMX31

choice

	prompt "i.MX31 Board Type"

config MACH_PCM037
	bool "phyCORE-i.MX31"
	select MACH_HAS_LOWLEVEL_INIT
	select USB_ISP1504 if USB
	select ARCH_HAS_L2X0
	help
	  Say Y here if you are using Phytec's phyCORE-i.MX31 (pcm037) equipped
	  with a Freescale i.MX31 Processor

endchoice

endif

# ----------------------------------------------------------

if ARCH_IMX35

choice

	prompt "i.MX35 Board Type"

config MACH_EUKREA_CPUIMX35
	bool "EUKREA CPUIMX35"
	select MACH_HAS_LOWLEVEL_INIT
	select ARCH_HAS_L2X0
	help
	  Say Y here if you are using Eukrea's CPUIMX35 equipped
	  with a Freescale i.MX35 Processor

config MACH_FREESCALE_MX35_3STACK
	bool "Freescale MX35 3stack"
	select HAS_CFI
	select MACH_HAS_LOWLEVEL_INIT
	select I2C
	select I2C_IMX
	select I2C_MC13892
	select I2C_MC9SDZ60
	help
	  Say Y here if you are using the Freescale MX35 3stack board equipped
	  with a Freescale i.MX35 Processor

config MACH_PCM043
	bool "phyCORE-i.MX35"
	select HAS_CFI
	select MACH_HAS_LOWLEVEL_INIT
	select ARCH_HAS_L2X0
	help
	  Say Y here if you are using Phytec's phyCORE-i.MX35 (pcm043) equipped
	  with a Freescale i.MX35 Processor

config MACH_GUF_CUPID
	bool "Garz+Fricke Cupid"
	select MACH_HAS_LOWLEVEL_INIT
	select ARCH_HAS_L2X0
	help
	  Say Y here if you are using the Garz+Fricke Neso board equipped
	  with a Freescale i.MX35 Processor

endchoice

endif

# ----------------------------------------------------------

if ARCH_IMX51

choice

	prompt "i.MX51 Board Type"

config MACH_FREESCALE_MX51_PDK
	bool "Freescale i.MX51 PDK"
	select MACH_HAS_LOWLEVEL_INIT

config MACH_EUKREA_CPUIMX51SD
	bool "EUKREA CPUIMX51"
	select MACH_HAS_LOWLEVEL_INIT
	help
	  Say Y here if you are using Eukrea's CPUIMX51 equipped
	  with a Freescale i.MX51 Processor

endchoice

endif

# ----------------------------------------------------------

if ARCH_IMX53

choice

	prompt "i.MX53 Board Type"

config MACH_FREESCALE_MX53_LOCO
	bool "Freescale i.MX53 LOCO"

config MACH_FREESCALE_MX53_SMD
	bool "Freescale i.MX53 SMD"

endchoice

endif

# ----------------------------------------------------------

menu "Board specific settings       "

if MACH_PCM043
choice
	prompt "Display type"
config PCM043_DISPLAY_SHARP
	bool "Sharp LQ035Q7"
config PCM043_DISPLAY_TY090
	bool "TX090"
endchoice
endif

if MACH_PCM037
choice
	prompt "SDRAM Bank0"
config PCM037_SDRAM_BANK0_128MB
	bool "128MB"
config PCM037_SDRAM_BANK0_256MB
	bool "256MB"
endchoice

choice
	prompt "SDRAM Bank1"
config PCM037_SDRAM_BANK1_NONE
	bool "none"
config PCM037_SDRAM_BANK1_128MB
	bool "128MB"
config PCM037_SDRAM_BANK1_256MB
	bool "256MB"
endchoice
endif

if MACH_EUKREA_CPUIMX27
choice
	prompt "SDRAM Size"
config EUKREA_CPUIMX27_SDRAM_128MB
	bool "128 MB"
config EUKREA_CPUIMX27_SDRAM_256MB
	bool "256 MB"
endchoice
choice
	prompt "NOR Flash Size"
config EUKREA_CPUIMX27_NOR_32MB
	bool "<= 32 MB"
config EUKREA_CPUIMX27_NOR_64MB
	bool "> 32 MB"
endchoice
choice
	prompt "Quad UART Port"
	depends on DRIVER_SERIAL_NS16550
config EUKREA_CPUIMX27_QUART1
	bool "Q1"
config EUKREA_CPUIMX27_QUART2
	bool "Q2"
config EUKREA_CPUIMX27_QUART3
	bool "Q3"
config EUKREA_CPUIMX27_QUART4
	bool "Q4"
endchoice
endif
if MACH_FREESCALE_MX25_3STACK
choice
	prompt "SDRAM Type"
config FREESCALE_MX25_3STACK_SDRAM_64MB_DDR2
	bool "64 MB (DDR2)"
config FREESCALE_MX25_3STACK_SDRAM_128MB_MDDR
	bool "128 MB (mDDR)"
endchoice
endif
endmenu

menu "i.MX specific settings        "

config IMX_CLKO
	bool "clko command"
	depends on ARCH_IMX21 || ARCH_IMX27 || ARCH_IMX35 || ARCH_IMX25
	help
	  The i.MX SoCs have a Pin which can output different reference frequencies.
	  Say y here if you want to have the clko command which lets you select the
	  frequency to output on this pin.

config IMX_IIM
	tristate "IIM fusebox device"
	depends on !ARCH_IMX21 && !ARCH_IMX21
	help
	  Device driver for the IC Identification Module (IIM) fusebox. Use the 
	  regular md/mw commands to program and read the fusebox.

	  Fuses are grouped in "rows", 8 bits per row. When using md/mw commands,
	  employ the -b switch and consider the region to be specifying the "Fuse
	  Row Index" rather than "Fuse Row Offset" (which is FRI * 4). You should
	  consult the documentation for your chip for more elaborate description,
	  including the eFuse map, e.g. see AN3682 for i.MX25.

config IMX_IIM_FUSE_BLOW
	bool "IIM fuses blow support"
	depends on IMX_IIM
	help
	  Enable this option to add permanent programming of the fusebox, using
	  fuses blowing.

	  Warning: blown fuses can not be unblown. Using this option may damage
	  your CPU, or make it unbootalbe. Use with care.

	  Before being actually able to blow the fuses, you need to explicitely
	  enable it:
	  	 imx_iim0.permanent_write_enable=1

endmenu

endif