Kconfig 24 KB

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