Kconfig 22 KB

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