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