Kconfig 29 KB

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