Kconfig 30 KB

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