Kconfig 29 KB

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