Kconfig 29 KB

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