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