Kconfig 30 KB

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