Kconfig 23 KB

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