Kconfig 26 KB

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