Kconfig 23 KB

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