Kconfig 29 KB

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