Kconfig 27 KB

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