Kconfig 31 KB

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