Kconfig 29 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285
  1. #
  2. # For a description of the syntax of this configuration file,
  3. # see Documentation/kbuild/kconfig-language.txt.
  4. #
  5. mainmenu "Blackfin Kernel Configuration"
  6. config MMU
  7. def_bool n
  8. config FPU
  9. def_bool n
  10. config RWSEM_GENERIC_SPINLOCK
  11. def_bool y
  12. config RWSEM_XCHGADD_ALGORITHM
  13. def_bool n
  14. config BLACKFIN
  15. def_bool y
  16. select HAVE_FUNCTION_GRAPH_TRACER
  17. select HAVE_FUNCTION_TRACER
  18. select HAVE_IDE
  19. select HAVE_KERNEL_GZIP
  20. select HAVE_KERNEL_BZIP2
  21. select HAVE_KERNEL_LZMA
  22. select HAVE_OPROFILE
  23. select ARCH_WANT_OPTIONAL_GPIOLIB
  24. config GENERIC_BUG
  25. def_bool y
  26. depends on BUG
  27. config ZONE_DMA
  28. def_bool y
  29. config GENERIC_FIND_NEXT_BIT
  30. def_bool y
  31. config GENERIC_HWEIGHT
  32. def_bool y
  33. config GENERIC_HARDIRQS
  34. def_bool y
  35. config GENERIC_IRQ_PROBE
  36. def_bool y
  37. config GENERIC_HARDIRQS_NO__DO_IRQ
  38. def_bool y
  39. config GENERIC_GPIO
  40. def_bool y
  41. config FORCE_MAX_ZONEORDER
  42. int
  43. default "14"
  44. config GENERIC_CALIBRATE_DELAY
  45. def_bool y
  46. config LOCKDEP_SUPPORT
  47. def_bool y
  48. config STACKTRACE_SUPPORT
  49. def_bool y
  50. config TRACE_IRQFLAGS_SUPPORT
  51. def_bool y
  52. source "init/Kconfig"
  53. source "kernel/Kconfig.preempt"
  54. source "kernel/Kconfig.freezer"
  55. menu "Blackfin Processor Options"
  56. comment "Processor and Board Settings"
  57. choice
  58. prompt "CPU"
  59. default BF533
  60. config BF512
  61. bool "BF512"
  62. help
  63. BF512 Processor Support.
  64. config BF514
  65. bool "BF514"
  66. help
  67. BF514 Processor Support.
  68. config BF516
  69. bool "BF516"
  70. help
  71. BF516 Processor Support.
  72. config BF518
  73. bool "BF518"
  74. help
  75. BF518 Processor Support.
  76. config BF522
  77. bool "BF522"
  78. help
  79. BF522 Processor Support.
  80. config BF523
  81. bool "BF523"
  82. help
  83. BF523 Processor Support.
  84. config BF524
  85. bool "BF524"
  86. help
  87. BF524 Processor Support.
  88. config BF525
  89. bool "BF525"
  90. help
  91. BF525 Processor Support.
  92. config BF526
  93. bool "BF526"
  94. help
  95. BF526 Processor Support.
  96. config BF527
  97. bool "BF527"
  98. help
  99. BF527 Processor Support.
  100. config BF531
  101. bool "BF531"
  102. help
  103. BF531 Processor Support.
  104. config BF532
  105. bool "BF532"
  106. help
  107. BF532 Processor Support.
  108. config BF533
  109. bool "BF533"
  110. help
  111. BF533 Processor Support.
  112. config BF534
  113. bool "BF534"
  114. help
  115. BF534 Processor Support.
  116. config BF536
  117. bool "BF536"
  118. help
  119. BF536 Processor Support.
  120. config BF537
  121. bool "BF537"
  122. help
  123. BF537 Processor Support.
  124. config BF538
  125. bool "BF538"
  126. help
  127. BF538 Processor Support.
  128. config BF539
  129. bool "BF539"
  130. help
  131. BF539 Processor Support.
  132. config BF542
  133. bool "BF542"
  134. help
  135. BF542 Processor Support.
  136. config BF542M
  137. bool "BF542m"
  138. help
  139. BF542 Processor Support.
  140. config BF544
  141. bool "BF544"
  142. help
  143. BF544 Processor Support.
  144. config BF544M
  145. bool "BF544m"
  146. help
  147. BF544 Processor Support.
  148. config BF547
  149. bool "BF547"
  150. help
  151. BF547 Processor Support.
  152. config BF547M
  153. bool "BF547m"
  154. help
  155. BF547 Processor Support.
  156. config BF548
  157. bool "BF548"
  158. help
  159. BF548 Processor Support.
  160. config BF548M
  161. bool "BF548m"
  162. help
  163. BF548 Processor Support.
  164. config BF549
  165. bool "BF549"
  166. help
  167. BF549 Processor Support.
  168. config BF549M
  169. bool "BF549m"
  170. help
  171. BF549 Processor Support.
  172. config BF561
  173. bool "BF561"
  174. help
  175. BF561 Processor Support.
  176. endchoice
  177. config SMP
  178. depends on BF561
  179. select GENERIC_CLOCKEVENTS
  180. bool "Symmetric multi-processing support"
  181. ---help---
  182. This enables support for systems with more than one CPU,
  183. like the dual core BF561. If you have a system with only one
  184. CPU, say N. If you have a system with more than one CPU, say Y.
  185. If you don't know what to do here, say N.
  186. config NR_CPUS
  187. int
  188. depends on SMP
  189. default 2 if BF561
  190. config IRQ_PER_CPU
  191. bool
  192. depends on SMP
  193. default y
  194. config BF_REV_MIN
  195. int
  196. default 0 if (BF51x || BF52x || (BF54x && !BF54xM))
  197. default 2 if (BF537 || BF536 || BF534)
  198. default 3 if (BF561 || BF533 || BF532 || BF531 || BF54xM)
  199. default 4 if (BF538 || BF539)
  200. config BF_REV_MAX
  201. int
  202. default 2 if (BF51x || BF52x || (BF54x && !BF54xM))
  203. default 3 if (BF537 || BF536 || BF534 || BF54xM)
  204. default 5 if (BF561 || BF538 || BF539)
  205. default 6 if (BF533 || BF532 || BF531)
  206. choice
  207. prompt "Silicon Rev"
  208. default BF_REV_0_0 if (BF51x || BF52x)
  209. default BF_REV_0_2 if (BF534 || BF536 || BF537 || (BF54x && !BF54xM))
  210. default BF_REV_0_3 if (BF531 || BF532 || BF533 || BF54xM || BF561)
  211. config BF_REV_0_0
  212. bool "0.0"
  213. depends on (BF51x || BF52x || (BF54x && !BF54xM))
  214. config BF_REV_0_1
  215. bool "0.1"
  216. depends on (BF51x || BF52x || (BF54x && !BF54xM))
  217. config BF_REV_0_2
  218. bool "0.2"
  219. depends on (BF52x || BF537 || BF536 || BF534 || (BF54x && !BF54xM))
  220. config BF_REV_0_3
  221. bool "0.3"
  222. depends on (BF54xM || BF561 || BF537 || BF536 || BF534 || BF533 || BF532 || BF531)
  223. config BF_REV_0_4
  224. bool "0.4"
  225. depends on (BF561 || BF533 || BF532 || BF531 || BF538 || BF539)
  226. config BF_REV_0_5
  227. bool "0.5"
  228. depends on (BF561 || BF533 || BF532 || BF531 || BF538 || BF539)
  229. config BF_REV_0_6
  230. bool "0.6"
  231. depends on (BF533 || BF532 || BF531)
  232. config BF_REV_ANY
  233. bool "any"
  234. config BF_REV_NONE
  235. bool "none"
  236. endchoice
  237. config BF51x
  238. bool
  239. depends on (BF512 || BF514 || BF516 || BF518)
  240. default y
  241. config BF52x
  242. bool
  243. depends on (BF522 || BF523 || BF524 || BF525 || BF526 || BF527)
  244. default y
  245. config BF53x
  246. bool
  247. depends on (BF531 || BF532 || BF533 || BF534 || BF536 || BF537)
  248. default y
  249. config BF54xM
  250. bool
  251. depends on (BF542M || BF544M || BF547M || BF548M || BF549M)
  252. default y
  253. config BF54x
  254. bool
  255. depends on (BF542 || BF544 || BF547 || BF548 || BF549 || BF54xM)
  256. default y
  257. config MEM_GENERIC_BOARD
  258. bool
  259. depends on GENERIC_BOARD
  260. default y
  261. config MEM_MT48LC64M4A2FB_7E
  262. bool
  263. depends on (BFIN533_STAMP)
  264. default y
  265. config MEM_MT48LC16M16A2TG_75
  266. bool
  267. depends on (BFIN533_EZKIT || BFIN561_EZKIT \
  268. || BFIN533_BLUETECHNIX_CM || BFIN537_BLUETECHNIX_CM_E \
  269. || BFIN537_BLUETECHNIX_CM_U || H8606_HVSISTEMAS \
  270. || BFIN527_BLUETECHNIX_CM)
  271. default y
  272. config MEM_MT48LC32M8A2_75
  273. bool
  274. depends on (BFIN537_STAMP || PNAV10 || BFIN538_EZKIT)
  275. default y
  276. config MEM_MT48LC8M32B2B5_7
  277. bool
  278. depends on (BFIN561_BLUETECHNIX_CM)
  279. default y
  280. config MEM_MT48LC32M16A2TG_75
  281. bool
  282. depends on (BFIN527_EZKIT || BFIN532_IP0X || BLACKSTAMP)
  283. default y
  284. config MEM_MT48LC32M8A2_75
  285. bool
  286. depends on (BFIN518F_EZBRD)
  287. default y
  288. config MEM_MT48H32M16LFCJ_75
  289. bool
  290. depends on (BFIN526_EZBRD)
  291. default y
  292. source "arch/blackfin/mach-bf518/Kconfig"
  293. source "arch/blackfin/mach-bf527/Kconfig"
  294. source "arch/blackfin/mach-bf533/Kconfig"
  295. source "arch/blackfin/mach-bf561/Kconfig"
  296. source "arch/blackfin/mach-bf537/Kconfig"
  297. source "arch/blackfin/mach-bf538/Kconfig"
  298. source "arch/blackfin/mach-bf548/Kconfig"
  299. menu "Board customizations"
  300. config CMDLINE_BOOL
  301. bool "Default bootloader kernel arguments"
  302. config CMDLINE
  303. string "Initial kernel command string"
  304. depends on CMDLINE_BOOL
  305. default "console=ttyBF0,57600"
  306. help
  307. If you don't have a boot loader capable of passing a command line string
  308. to the kernel, you may specify one here. As a minimum, you should specify
  309. the memory size and the root device (e.g., mem=8M, root=/dev/nfs).
  310. config BOOT_LOAD
  311. hex "Kernel load address for booting"
  312. default "0x1000"
  313. range 0x1000 0x20000000
  314. help
  315. This option allows you to set the load address of the kernel.
  316. This can be useful if you are on a board which has a small amount
  317. of memory or you wish to reserve some memory at the beginning of
  318. the address space.
  319. Note that you need to keep this value above 4k (0x1000) as this
  320. memory region is used to capture NULL pointer references as well
  321. as some core kernel functions.
  322. config ROM_BASE
  323. hex "Kernel ROM Base"
  324. depends on ROMKERNEL
  325. default "0x20040000"
  326. range 0x20000000 0x20400000 if !(BF54x || BF561)
  327. range 0x20000000 0x30000000 if (BF54x || BF561)
  328. help
  329. comment "Clock/PLL Setup"
  330. config CLKIN_HZ
  331. int "Frequency of the crystal on the board in Hz"
  332. default "10000000" if BFIN532_IP0X
  333. default "11059200" if BFIN533_STAMP
  334. default "24576000" if PNAV10
  335. default "25000000" # most people use this
  336. default "27000000" if BFIN533_EZKIT
  337. default "30000000" if BFIN561_EZKIT
  338. help
  339. The frequency of CLKIN crystal oscillator on the board in Hz.
  340. Warning: This value should match the crystal on the board. Otherwise,
  341. peripherals won't work properly.
  342. config BFIN_KERNEL_CLOCK
  343. bool "Re-program Clocks while Kernel boots?"
  344. default n
  345. help
  346. This option decides if kernel clocks are re-programed from the
  347. bootloader settings. If the clocks are not set, the SDRAM settings
  348. are also not changed, and the Bootloader does 100% of the hardware
  349. configuration.
  350. config PLL_BYPASS
  351. bool "Bypass PLL"
  352. depends on BFIN_KERNEL_CLOCK
  353. default n
  354. config CLKIN_HALF
  355. bool "Half Clock In"
  356. depends on BFIN_KERNEL_CLOCK && (! PLL_BYPASS)
  357. default n
  358. help
  359. If this is set the clock will be divided by 2, before it goes to the PLL.
  360. config VCO_MULT
  361. int "VCO Multiplier"
  362. depends on BFIN_KERNEL_CLOCK && (! PLL_BYPASS)
  363. range 1 64
  364. default "22" if BFIN533_EZKIT
  365. default "45" if BFIN533_STAMP
  366. default "20" if (BFIN537_STAMP || BFIN527_EZKIT || BFIN548_EZKIT || BFIN548_BLUETECHNIX_CM || BFIN538_EZKIT)
  367. default "22" if BFIN533_BLUETECHNIX_CM
  368. default "20" if (BFIN537_BLUETECHNIX_CM_E || BFIN537_BLUETECHNIX_CM_U || BFIN527_BLUETECHNIX_CM || BFIN561_BLUETECHNIX_CM)
  369. default "20" if BFIN561_EZKIT
  370. default "16" if (H8606_HVSISTEMAS || BLACKSTAMP || BFIN526_EZBRD || BFIN518F_EZBRD)
  371. help
  372. This controls the frequency of the on-chip PLL. This can be between 1 and 64.
  373. PLL Frequency = (Crystal Frequency) * (this setting)
  374. choice
  375. prompt "Core Clock Divider"
  376. depends on BFIN_KERNEL_CLOCK
  377. default CCLK_DIV_1
  378. help
  379. This sets the frequency of the core. It can be 1, 2, 4 or 8
  380. Core Frequency = (PLL frequency) / (this setting)
  381. config CCLK_DIV_1
  382. bool "1"
  383. config CCLK_DIV_2
  384. bool "2"
  385. config CCLK_DIV_4
  386. bool "4"
  387. config CCLK_DIV_8
  388. bool "8"
  389. endchoice
  390. config SCLK_DIV
  391. int "System Clock Divider"
  392. depends on BFIN_KERNEL_CLOCK
  393. range 1 15
  394. default 5
  395. help
  396. This sets the frequency of the system clock (including SDRAM or DDR).
  397. This can be between 1 and 15
  398. System Clock = (PLL frequency) / (this setting)
  399. choice
  400. prompt "DDR SDRAM Chip Type"
  401. depends on BFIN_KERNEL_CLOCK
  402. depends on BF54x
  403. default MEM_MT46V32M16_5B
  404. config MEM_MT46V32M16_6T
  405. bool "MT46V32M16_6T"
  406. config MEM_MT46V32M16_5B
  407. bool "MT46V32M16_5B"
  408. endchoice
  409. choice
  410. prompt "DDR/SDRAM Timing"
  411. depends on BFIN_KERNEL_CLOCK
  412. default BFIN_KERNEL_CLOCK_MEMINIT_CALC
  413. help
  414. This option allows you to specify Blackfin SDRAM/DDR Timing parameters
  415. The calculated SDRAM timing parameters may not be 100%
  416. accurate - This option is therefore marked experimental.
  417. config BFIN_KERNEL_CLOCK_MEMINIT_CALC
  418. bool "Calculate Timings (EXPERIMENTAL)"
  419. depends on EXPERIMENTAL
  420. config BFIN_KERNEL_CLOCK_MEMINIT_SPEC
  421. bool "Provide accurate Timings based on target SCLK"
  422. help
  423. Please consult the Blackfin Hardware Reference Manuals as well
  424. as the memory device datasheet.
  425. http://docs.blackfin.uclinux.org/doku.php?id=bfin:sdram
  426. endchoice
  427. menu "Memory Init Control"
  428. depends on BFIN_KERNEL_CLOCK_MEMINIT_SPEC
  429. config MEM_DDRCTL0
  430. depends on BF54x
  431. hex "DDRCTL0"
  432. default 0x0
  433. config MEM_DDRCTL1
  434. depends on BF54x
  435. hex "DDRCTL1"
  436. default 0x0
  437. config MEM_DDRCTL2
  438. depends on BF54x
  439. hex "DDRCTL2"
  440. default 0x0
  441. config MEM_EBIU_DDRQUE
  442. depends on BF54x
  443. hex "DDRQUE"
  444. default 0x0
  445. config MEM_SDRRC
  446. depends on !BF54x
  447. hex "SDRRC"
  448. default 0x0
  449. config MEM_SDGCTL
  450. depends on !BF54x
  451. hex "SDGCTL"
  452. default 0x0
  453. endmenu
  454. #
  455. # Max & Min Speeds for various Chips
  456. #
  457. config MAX_VCO_HZ
  458. int
  459. default 400000000 if BF512
  460. default 400000000 if BF514
  461. default 400000000 if BF516
  462. default 400000000 if BF518
  463. default 400000000 if BF522
  464. default 600000000 if BF523
  465. default 400000000 if BF524
  466. default 600000000 if BF525
  467. default 400000000 if BF526
  468. default 600000000 if BF527
  469. default 400000000 if BF531
  470. default 400000000 if BF532
  471. default 750000000 if BF533
  472. default 500000000 if BF534
  473. default 400000000 if BF536
  474. default 600000000 if BF537
  475. default 533333333 if BF538
  476. default 533333333 if BF539
  477. default 600000000 if BF542
  478. default 533333333 if BF544
  479. default 600000000 if BF547
  480. default 600000000 if BF548
  481. default 533333333 if BF549
  482. default 600000000 if BF561
  483. config MIN_VCO_HZ
  484. int
  485. default 50000000
  486. config MAX_SCLK_HZ
  487. int
  488. default 133333333
  489. config MIN_SCLK_HZ
  490. int
  491. default 27000000
  492. comment "Kernel Timer/Scheduler"
  493. source kernel/Kconfig.hz
  494. config GENERIC_TIME
  495. def_bool y
  496. config GENERIC_CLOCKEVENTS
  497. bool "Generic clock events"
  498. default y
  499. choice
  500. prompt "Kernel Tick Source"
  501. depends on GENERIC_CLOCKEVENTS
  502. default TICKSOURCE_CORETMR
  503. config TICKSOURCE_GPTMR0
  504. bool "Gptimer0 (SCLK domain)"
  505. select BFIN_GPTIMERS
  506. config TICKSOURCE_CORETMR
  507. bool "Core timer (CCLK domain)"
  508. endchoice
  509. config CYCLES_CLOCKSOURCE
  510. bool "Use 'CYCLES' as a clocksource"
  511. depends on GENERIC_CLOCKEVENTS
  512. depends on !BFIN_SCRATCH_REG_CYCLES
  513. depends on !SMP
  514. help
  515. If you say Y here, you will enable support for using the 'cycles'
  516. registers as a clock source. Doing so means you will be unable to
  517. safely write to the 'cycles' register during runtime. You will
  518. still be able to read it (such as for performance monitoring), but
  519. writing the registers will most likely crash the kernel.
  520. config GPTMR0_CLOCKSOURCE
  521. bool "Use GPTimer0 as a clocksource"
  522. select BFIN_GPTIMERS
  523. depends on GENERIC_CLOCKEVENTS
  524. depends on !TICKSOURCE_GPTMR0
  525. config ARCH_USES_GETTIMEOFFSET
  526. depends on !GENERIC_CLOCKEVENTS
  527. def_bool y
  528. source kernel/time/Kconfig
  529. comment "Misc"
  530. choice
  531. prompt "Blackfin Exception Scratch Register"
  532. default BFIN_SCRATCH_REG_RETN
  533. help
  534. Select the resource to reserve for the Exception handler:
  535. - RETN: Non-Maskable Interrupt (NMI)
  536. - RETE: Exception Return (JTAG/ICE)
  537. - CYCLES: Performance counter
  538. If you are unsure, please select "RETN".
  539. config BFIN_SCRATCH_REG_RETN
  540. bool "RETN"
  541. help
  542. Use the RETN register in the Blackfin exception handler
  543. as a stack scratch register. This means you cannot
  544. safely use NMI on the Blackfin while running Linux, but
  545. you can debug the system with a JTAG ICE and use the
  546. CYCLES performance registers.
  547. If you are unsure, please select "RETN".
  548. config BFIN_SCRATCH_REG_RETE
  549. bool "RETE"
  550. help
  551. Use the RETE register in the Blackfin exception handler
  552. as a stack scratch register. This means you cannot
  553. safely use a JTAG ICE while debugging a Blackfin board,
  554. but you can safely use the CYCLES performance registers
  555. and the NMI.
  556. If you are unsure, please select "RETN".
  557. config BFIN_SCRATCH_REG_CYCLES
  558. bool "CYCLES"
  559. help
  560. Use the CYCLES register in the Blackfin exception handler
  561. as a stack scratch register. This means you cannot
  562. safely use the CYCLES performance registers on a Blackfin
  563. board at anytime, but you can debug the system with a JTAG
  564. ICE and use the NMI.
  565. If you are unsure, please select "RETN".
  566. endchoice
  567. endmenu
  568. menu "Blackfin Kernel Optimizations"
  569. depends on !SMP
  570. comment "Memory Optimizations"
  571. config I_ENTRY_L1
  572. bool "Locate interrupt entry code in L1 Memory"
  573. default y
  574. help
  575. If enabled, interrupt entry code (STORE/RESTORE CONTEXT) is linked
  576. into L1 instruction memory. (less latency)
  577. config EXCPT_IRQ_SYSC_L1
  578. bool "Locate entire ASM lowlevel exception / interrupt - Syscall and CPLB handler code in L1 Memory"
  579. default y
  580. help
  581. If enabled, the entire ASM lowlevel exception and interrupt entry code
  582. (STORE/RESTORE CONTEXT) is linked into L1 instruction memory.
  583. (less latency)
  584. config DO_IRQ_L1
  585. bool "Locate frequently called do_irq dispatcher function in L1 Memory"
  586. default y
  587. help
  588. If enabled, the frequently called do_irq dispatcher function is linked
  589. into L1 instruction memory. (less latency)
  590. config CORE_TIMER_IRQ_L1
  591. bool "Locate frequently called timer_interrupt() function in L1 Memory"
  592. default y
  593. help
  594. If enabled, the frequently called timer_interrupt() function is linked
  595. into L1 instruction memory. (less latency)
  596. config IDLE_L1
  597. bool "Locate frequently idle function in L1 Memory"
  598. default y
  599. help
  600. If enabled, the frequently called idle function is linked
  601. into L1 instruction memory. (less latency)
  602. config SCHEDULE_L1
  603. bool "Locate kernel schedule function in L1 Memory"
  604. default y
  605. help
  606. If enabled, the frequently called kernel schedule is linked
  607. into L1 instruction memory. (less latency)
  608. config ARITHMETIC_OPS_L1
  609. bool "Locate kernel owned arithmetic functions in L1 Memory"
  610. default y
  611. help
  612. If enabled, arithmetic functions are linked
  613. into L1 instruction memory. (less latency)
  614. config ACCESS_OK_L1
  615. bool "Locate access_ok function in L1 Memory"
  616. default y
  617. help
  618. If enabled, the access_ok function is linked
  619. into L1 instruction memory. (less latency)
  620. config MEMSET_L1
  621. bool "Locate memset function in L1 Memory"
  622. default y
  623. help
  624. If enabled, the memset function is linked
  625. into L1 instruction memory. (less latency)
  626. config MEMCPY_L1
  627. bool "Locate memcpy function in L1 Memory"
  628. default y
  629. help
  630. If enabled, the memcpy function is linked
  631. into L1 instruction memory. (less latency)
  632. config SYS_BFIN_SPINLOCK_L1
  633. bool "Locate sys_bfin_spinlock function in L1 Memory"
  634. default y
  635. help
  636. If enabled, sys_bfin_spinlock function is linked
  637. into L1 instruction memory. (less latency)
  638. config IP_CHECKSUM_L1
  639. bool "Locate IP Checksum function in L1 Memory"
  640. default n
  641. help
  642. If enabled, the IP Checksum function is linked
  643. into L1 instruction memory. (less latency)
  644. config CACHELINE_ALIGNED_L1
  645. bool "Locate cacheline_aligned data to L1 Data Memory"
  646. default y if !BF54x
  647. default n if BF54x
  648. depends on !BF531
  649. help
  650. If enabled, cacheline_aligned data is linked
  651. into L1 data memory. (less latency)
  652. config SYSCALL_TAB_L1
  653. bool "Locate Syscall Table L1 Data Memory"
  654. default n
  655. depends on !BF531
  656. help
  657. If enabled, the Syscall LUT is linked
  658. into L1 data memory. (less latency)
  659. config CPLB_SWITCH_TAB_L1
  660. bool "Locate CPLB Switch Tables L1 Data Memory"
  661. default n
  662. depends on !BF531
  663. help
  664. If enabled, the CPLB Switch Tables are linked
  665. into L1 data memory. (less latency)
  666. config APP_STACK_L1
  667. bool "Support locating application stack in L1 Scratch Memory"
  668. default y
  669. help
  670. If enabled the application stack can be located in L1
  671. scratch memory (less latency).
  672. Currently only works with FLAT binaries.
  673. config EXCEPTION_L1_SCRATCH
  674. bool "Locate exception stack in L1 Scratch Memory"
  675. default n
  676. depends on !APP_STACK_L1
  677. help
  678. Whenever an exception occurs, use the L1 Scratch memory for
  679. stack storage. You cannot place the stacks of FLAT binaries
  680. in L1 when using this option.
  681. If you don't use L1 Scratch, then you should say Y here.
  682. comment "Speed Optimizations"
  683. config BFIN_INS_LOWOVERHEAD
  684. bool "ins[bwl] low overhead, higher interrupt latency"
  685. default y
  686. help
  687. Reads on the Blackfin are speculative. In Blackfin terms, this means
  688. they can be interrupted at any time (even after they have been issued
  689. on to the external bus), and re-issued after the interrupt occurs.
  690. For memory - this is not a big deal, since memory does not change if
  691. it sees a read.
  692. If a FIFO is sitting on the end of the read, it will see two reads,
  693. when the core only sees one since the FIFO receives both the read
  694. which is cancelled (and not delivered to the core) and the one which
  695. is re-issued (which is delivered to the core).
  696. To solve this, interrupts are turned off before reads occur to
  697. I/O space. This option controls which the overhead/latency of
  698. controlling interrupts during this time
  699. "n" turns interrupts off every read
  700. (higher overhead, but lower interrupt latency)
  701. "y" turns interrupts off every loop
  702. (low overhead, but longer interrupt latency)
  703. default behavior is to leave this set to on (type "Y"). If you are experiencing
  704. interrupt latency issues, it is safe and OK to turn this off.
  705. endmenu
  706. choice
  707. prompt "Kernel executes from"
  708. help
  709. Choose the memory type that the kernel will be running in.
  710. config RAMKERNEL
  711. bool "RAM"
  712. help
  713. The kernel will be resident in RAM when running.
  714. config ROMKERNEL
  715. bool "ROM"
  716. help
  717. The kernel will be resident in FLASH/ROM when running.
  718. endchoice
  719. source "mm/Kconfig"
  720. config BFIN_GPTIMERS
  721. tristate "Enable Blackfin General Purpose Timers API"
  722. default n
  723. help
  724. Enable support for the General Purpose Timers API. If you
  725. are unsure, say N.
  726. To compile this driver as a module, choose M here: the module
  727. will be called gptimers.
  728. choice
  729. prompt "Uncached DMA region"
  730. default DMA_UNCACHED_1M
  731. config DMA_UNCACHED_4M
  732. bool "Enable 4M DMA region"
  733. config DMA_UNCACHED_2M
  734. bool "Enable 2M DMA region"
  735. config DMA_UNCACHED_1M
  736. bool "Enable 1M DMA region"
  737. config DMA_UNCACHED_NONE
  738. bool "Disable DMA region"
  739. endchoice
  740. comment "Cache Support"
  741. config BFIN_ICACHE
  742. bool "Enable ICACHE"
  743. default y
  744. config BFIN_EXTMEM_ICACHEABLE
  745. bool "Enable ICACHE for external memory"
  746. depends on BFIN_ICACHE
  747. default y
  748. config BFIN_L2_ICACHEABLE
  749. bool "Enable ICACHE for L2 SRAM"
  750. depends on BFIN_ICACHE
  751. depends on BF54x || BF561
  752. default n
  753. config BFIN_DCACHE
  754. bool "Enable DCACHE"
  755. default y
  756. config BFIN_DCACHE_BANKA
  757. bool "Enable only 16k BankA DCACHE - BankB is SRAM"
  758. depends on BFIN_DCACHE && !BF531
  759. default n
  760. config BFIN_EXTMEM_DCACHEABLE
  761. bool "Enable DCACHE for external memory"
  762. depends on BFIN_DCACHE
  763. default y
  764. choice
  765. prompt "External memory DCACHE policy"
  766. depends on BFIN_EXTMEM_DCACHEABLE
  767. default BFIN_EXTMEM_WRITEBACK if !SMP
  768. default BFIN_EXTMEM_WRITETHROUGH if SMP
  769. config BFIN_EXTMEM_WRITEBACK
  770. bool "Write back"
  771. depends on !SMP
  772. help
  773. Write Back Policy:
  774. Cached data will be written back to SDRAM only when needed.
  775. This can give a nice increase in performance, but beware of
  776. broken drivers that do not properly invalidate/flush their
  777. cache.
  778. Write Through Policy:
  779. Cached data will always be written back to SDRAM when the
  780. cache is updated. This is a completely safe setting, but
  781. performance is worse than Write Back.
  782. If you are unsure of the options and you want to be safe,
  783. then go with Write Through.
  784. config BFIN_EXTMEM_WRITETHROUGH
  785. bool "Write through"
  786. help
  787. Write Back Policy:
  788. Cached data will be written back to SDRAM only when needed.
  789. This can give a nice increase in performance, but beware of
  790. broken drivers that do not properly invalidate/flush their
  791. cache.
  792. Write Through Policy:
  793. Cached data will always be written back to SDRAM when the
  794. cache is updated. This is a completely safe setting, but
  795. performance is worse than Write Back.
  796. If you are unsure of the options and you want to be safe,
  797. then go with Write Through.
  798. endchoice
  799. config BFIN_L2_DCACHEABLE
  800. bool "Enable DCACHE for L2 SRAM"
  801. depends on BFIN_DCACHE
  802. depends on (BF54x || BF561) && !SMP
  803. default n
  804. choice
  805. prompt "L2 SRAM DCACHE policy"
  806. depends on BFIN_L2_DCACHEABLE
  807. default BFIN_L2_WRITEBACK
  808. config BFIN_L2_WRITEBACK
  809. bool "Write back"
  810. config BFIN_L2_WRITETHROUGH
  811. bool "Write through"
  812. endchoice
  813. comment "Memory Protection Unit"
  814. config MPU
  815. bool "Enable the memory protection unit (EXPERIMENTAL)"
  816. default n
  817. help
  818. Use the processor's MPU to protect applications from accessing
  819. memory they do not own. This comes at a performance penalty
  820. and is recommended only for debugging.
  821. comment "Asynchronous Memory Configuration"
  822. menu "EBIU_AMGCTL Global Control"
  823. config C_AMCKEN
  824. bool "Enable CLKOUT"
  825. default y
  826. config C_CDPRIO
  827. bool "DMA has priority over core for ext. accesses"
  828. default n
  829. config C_B0PEN
  830. depends on BF561
  831. bool "Bank 0 16 bit packing enable"
  832. default y
  833. config C_B1PEN
  834. depends on BF561
  835. bool "Bank 1 16 bit packing enable"
  836. default y
  837. config C_B2PEN
  838. depends on BF561
  839. bool "Bank 2 16 bit packing enable"
  840. default y
  841. config C_B3PEN
  842. depends on BF561
  843. bool "Bank 3 16 bit packing enable"
  844. default n
  845. choice
  846. prompt "Enable Asynchronous Memory Banks"
  847. default C_AMBEN_ALL
  848. config C_AMBEN
  849. bool "Disable All Banks"
  850. config C_AMBEN_B0
  851. bool "Enable Bank 0"
  852. config C_AMBEN_B0_B1
  853. bool "Enable Bank 0 & 1"
  854. config C_AMBEN_B0_B1_B2
  855. bool "Enable Bank 0 & 1 & 2"
  856. config C_AMBEN_ALL
  857. bool "Enable All Banks"
  858. endchoice
  859. endmenu
  860. menu "EBIU_AMBCTL Control"
  861. config BANK_0
  862. hex "Bank 0 (AMBCTL0.L)"
  863. default 0x7BB0
  864. help
  865. These are the low 16 bits of the EBIU_AMBCTL0 MMR which are
  866. used to control the Asynchronous Memory Bank 0 settings.
  867. config BANK_1
  868. hex "Bank 1 (AMBCTL0.H)"
  869. default 0x7BB0
  870. default 0x5558 if BF54x
  871. help
  872. These are the high 16 bits of the EBIU_AMBCTL0 MMR which are
  873. used to control the Asynchronous Memory Bank 1 settings.
  874. config BANK_2
  875. hex "Bank 2 (AMBCTL1.L)"
  876. default 0x7BB0
  877. help
  878. These are the low 16 bits of the EBIU_AMBCTL1 MMR which are
  879. used to control the Asynchronous Memory Bank 2 settings.
  880. config BANK_3
  881. hex "Bank 3 (AMBCTL1.H)"
  882. default 0x99B3
  883. help
  884. These are the high 16 bits of the EBIU_AMBCTL1 MMR which are
  885. used to control the Asynchronous Memory Bank 3 settings.
  886. endmenu
  887. config EBIU_MBSCTLVAL
  888. hex "EBIU Bank Select Control Register"
  889. depends on BF54x
  890. default 0
  891. config EBIU_MODEVAL
  892. hex "Flash Memory Mode Control Register"
  893. depends on BF54x
  894. default 1
  895. config EBIU_FCTLVAL
  896. hex "Flash Memory Bank Control Register"
  897. depends on BF54x
  898. default 6
  899. endmenu
  900. #############################################################################
  901. menu "Bus options (PCI, PCMCIA, EISA, MCA, ISA)"
  902. config PCI
  903. bool "PCI support"
  904. depends on BROKEN
  905. help
  906. Support for PCI bus.
  907. source "drivers/pci/Kconfig"
  908. config HOTPLUG
  909. bool "Support for hot-pluggable device"
  910. help
  911. Say Y here if you want to plug devices into your computer while
  912. the system is running, and be able to use them quickly. In many
  913. cases, the devices can likewise be unplugged at any time too.
  914. One well known example of this is PCMCIA- or PC-cards, credit-card
  915. size devices such as network cards, modems or hard drives which are
  916. plugged into slots found on all modern laptop computers. Another
  917. example, used on modern desktops as well as laptops, is USB.
  918. Enable HOTPLUG and build a modular kernel. Get agent software
  919. (from <http://linux-hotplug.sourceforge.net/>) and install it.
  920. Then your kernel will automatically call out to a user mode "policy
  921. agent" (/sbin/hotplug) to load modules and set up software needed
  922. to use devices as you hotplug them.
  923. source "drivers/pcmcia/Kconfig"
  924. source "drivers/pci/hotplug/Kconfig"
  925. endmenu
  926. menu "Executable file formats"
  927. source "fs/Kconfig.binfmt"
  928. endmenu
  929. menu "Power management options"
  930. depends on !SMP
  931. source "kernel/power/Kconfig"
  932. config ARCH_SUSPEND_POSSIBLE
  933. def_bool y
  934. choice
  935. prompt "Standby Power Saving Mode"
  936. depends on PM
  937. default PM_BFIN_SLEEP_DEEPER
  938. config PM_BFIN_SLEEP_DEEPER
  939. bool "Sleep Deeper"
  940. help
  941. Sleep "Deeper" Mode (High Power Savings) - This mode reduces dynamic
  942. power dissipation by disabling the clock to the processor core (CCLK).
  943. Furthermore, Standby sets the internal power supply voltage (VDDINT)
  944. to 0.85 V to provide the greatest power savings, while preserving the
  945. processor state.
  946. The PLL and system clock (SCLK) continue to operate at a very low
  947. frequency of about 3.3 MHz. To preserve data integrity in the SDRAM,
  948. the SDRAM is put into Self Refresh Mode. Typically an external event
  949. such as GPIO interrupt or RTC activity wakes up the processor.
  950. Various Peripherals such as UART, SPORT, PPI may not function as
  951. normal during Sleep Deeper, due to the reduced SCLK frequency.
  952. When in the sleep mode, system DMA access to L1 memory is not supported.
  953. If unsure, select "Sleep Deeper".
  954. config PM_BFIN_SLEEP
  955. bool "Sleep"
  956. help
  957. Sleep Mode (High Power Savings) - The sleep mode reduces power
  958. dissipation by disabling the clock to the processor core (CCLK).
  959. The PLL and system clock (SCLK), however, continue to operate in
  960. this mode. Typically an external event or RTC activity will wake
  961. up the processor. When in the sleep mode, system DMA access to L1
  962. memory is not supported.
  963. If unsure, select "Sleep Deeper".
  964. endchoice
  965. config PM_WAKEUP_BY_GPIO
  966. bool "Allow Wakeup from Standby by GPIO"
  967. depends on PM && !BF54x
  968. config PM_WAKEUP_GPIO_NUMBER
  969. int "GPIO number"
  970. range 0 47
  971. depends on PM_WAKEUP_BY_GPIO
  972. default 2
  973. choice
  974. prompt "GPIO Polarity"
  975. depends on PM_WAKEUP_BY_GPIO
  976. default PM_WAKEUP_GPIO_POLAR_H
  977. config PM_WAKEUP_GPIO_POLAR_H
  978. bool "Active High"
  979. config PM_WAKEUP_GPIO_POLAR_L
  980. bool "Active Low"
  981. config PM_WAKEUP_GPIO_POLAR_EDGE_F
  982. bool "Falling EDGE"
  983. config PM_WAKEUP_GPIO_POLAR_EDGE_R
  984. bool "Rising EDGE"
  985. config PM_WAKEUP_GPIO_POLAR_EDGE_B
  986. bool "Both EDGE"
  987. endchoice
  988. comment "Possible Suspend Mem / Hibernate Wake-Up Sources"
  989. depends on PM
  990. config PM_BFIN_WAKE_PH6
  991. bool "Allow Wake-Up from on-chip PHY or PH6 GP"
  992. depends on PM && (BF51x || BF52x || BF534 || BF536 || BF537)
  993. default n
  994. help
  995. Enable PHY and PH6 GP Wake-Up (Voltage Regulator Power-Up)
  996. config PM_BFIN_WAKE_GP
  997. bool "Allow Wake-Up from GPIOs"
  998. depends on PM && BF54x
  999. default n
  1000. help
  1001. Enable General-Purpose Wake-Up (Voltage Regulator Power-Up)
  1002. (all processors, except ADSP-BF549). This option sets
  1003. the general-purpose wake-up enable (GPWE) control bit to enable
  1004. wake-up upon detection of an active low signal on the /GPW (PH7) pin.
  1005. On ADSP-BF549 this option enables the the same functionality on the
  1006. /MRXON pin also PH7.
  1007. endmenu
  1008. menu "CPU Frequency scaling"
  1009. depends on !SMP
  1010. source "drivers/cpufreq/Kconfig"
  1011. config BFIN_CPU_FREQ
  1012. bool
  1013. depends on CPU_FREQ
  1014. select CPU_FREQ_TABLE
  1015. default y
  1016. config CPU_VOLTAGE
  1017. bool "CPU Voltage scaling"
  1018. depends on EXPERIMENTAL
  1019. depends on CPU_FREQ
  1020. default n
  1021. help
  1022. Say Y here if you want CPU voltage scaling according to the CPU frequency.
  1023. This option violates the PLL BYPASS recommendation in the Blackfin Processor
  1024. manuals. There is a theoretical risk that during VDDINT transitions
  1025. the PLL may unlock.
  1026. endmenu
  1027. source "net/Kconfig"
  1028. source "drivers/Kconfig"
  1029. source "fs/Kconfig"
  1030. source "arch/blackfin/Kconfig.debug"
  1031. source "security/Kconfig"
  1032. source "crypto/Kconfig"
  1033. source "lib/Kconfig"