Kconfig 27 KB

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