Kconfig 29 KB

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