Kconfig 25 KB

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