Kconfig 29 KB

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