Kconfig 30 KB

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