Kconfig 28 KB

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