Kconfig 29 KB

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