Kconfig 30 KB

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