Kconfig 29 KB

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