Kconfig 29 KB

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