Kconfig 27 KB

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