Kconfig 29 KB

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