Kconfig 30 KB

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