Kconfig 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251
  1. #
  2. # For a description of the syntax of this configuration file,
  3. # see Documentation/kbuild/kconfig-language.txt.
  4. #
  5. mainmenu "uClinux/Blackfin (w/o MMU) Kernel Configuration"
  6. config MMU
  7. bool
  8. default n
  9. config FPU
  10. bool
  11. default n
  12. config RWSEM_GENERIC_SPINLOCK
  13. bool
  14. default y
  15. config RWSEM_XCHGADD_ALGORITHM
  16. bool
  17. default n
  18. config BLACKFIN
  19. bool
  20. default y
  21. config ZONE_DMA
  22. bool
  23. default y
  24. config BFIN
  25. bool
  26. default y
  27. config SEMAPHORE_SLEEPERS
  28. bool
  29. default y
  30. config GENERIC_FIND_NEXT_BIT
  31. bool
  32. default y
  33. config GENERIC_HWEIGHT
  34. bool
  35. default y
  36. config GENERIC_HARDIRQS
  37. bool
  38. default y
  39. config GENERIC_IRQ_PROBE
  40. bool
  41. default y
  42. config GENERIC_TIME
  43. bool
  44. default n
  45. config GENERIC_GPIO
  46. bool
  47. default y
  48. config FORCE_MAX_ZONEORDER
  49. int
  50. default "14"
  51. config GENERIC_CALIBRATE_DELAY
  52. bool
  53. default y
  54. config IRQCHIP_DEMUX_GPIO
  55. bool
  56. depends on (BF52x || BF53x || BF561 || BF54x)
  57. default y
  58. source "init/Kconfig"
  59. source "kernel/Kconfig.preempt"
  60. menu "Blackfin Processor Options"
  61. comment "Processor and Board Settings"
  62. choice
  63. prompt "CPU"
  64. default BF533
  65. config BF522
  66. bool "BF522"
  67. help
  68. BF522 Processor Support.
  69. config BF525
  70. bool "BF525"
  71. help
  72. BF525 Processor Support.
  73. config BF527
  74. bool "BF527"
  75. help
  76. BF527 Processor Support.
  77. config BF531
  78. bool "BF531"
  79. help
  80. BF531 Processor Support.
  81. config BF532
  82. bool "BF532"
  83. help
  84. BF532 Processor Support.
  85. config BF533
  86. bool "BF533"
  87. help
  88. BF533 Processor Support.
  89. config BF534
  90. bool "BF534"
  91. help
  92. BF534 Processor Support.
  93. config BF536
  94. bool "BF536"
  95. help
  96. BF536 Processor Support.
  97. config BF537
  98. bool "BF537"
  99. help
  100. BF537 Processor Support.
  101. config BF542
  102. bool "BF542"
  103. help
  104. BF542 Processor Support.
  105. config BF544
  106. bool "BF544"
  107. help
  108. BF544 Processor Support.
  109. config BF548
  110. bool "BF548"
  111. help
  112. BF548 Processor Support.
  113. config BF549
  114. bool "BF549"
  115. help
  116. BF549 Processor Support.
  117. config BF561
  118. bool "BF561"
  119. help
  120. Not Supported Yet - Work in progress - BF561 Processor Support.
  121. endchoice
  122. choice
  123. prompt "Silicon Rev"
  124. default BF_REV_0_1 if BF527
  125. default BF_REV_0_2 if BF537
  126. default BF_REV_0_3 if BF533
  127. default BF_REV_0_0 if BF549
  128. config BF_REV_0_0
  129. bool "0.0"
  130. depends on (BF549 || BF527)
  131. config BF_REV_0_1
  132. bool "0.2"
  133. depends on (BF549 || BF527)
  134. config BF_REV_0_2
  135. bool "0.2"
  136. depends on (BF537 || BF536 || BF534)
  137. config BF_REV_0_3
  138. bool "0.3"
  139. depends on (BF561 || BF537 || BF536 || BF534 || BF533 || BF532 || BF531)
  140. config BF_REV_0_4
  141. bool "0.4"
  142. depends on (BF561 || BF533 || BF532 || BF531)
  143. config BF_REV_0_5
  144. bool "0.5"
  145. depends on (BF561 || BF533 || BF532 || BF531)
  146. config BF_REV_ANY
  147. bool "any"
  148. config BF_REV_NONE
  149. bool "none"
  150. endchoice
  151. config BF52x
  152. bool
  153. depends on (BF522 || BF525 || BF527)
  154. default y
  155. config BF53x
  156. bool
  157. depends on (BF531 || BF532 || BF533 || BF534 || BF536 || BF537)
  158. default y
  159. config BF54x
  160. bool
  161. depends on (BF542 || BF544 || BF548 || BF549)
  162. default y
  163. config BFIN_DUAL_CORE
  164. bool
  165. depends on (BF561)
  166. default y
  167. config BFIN_SINGLE_CORE
  168. bool
  169. depends on !BFIN_DUAL_CORE
  170. default y
  171. choice
  172. prompt "System type"
  173. default BFIN533_STAMP
  174. help
  175. Do NOT change the board here. Please use the top level
  176. configuration to ensure that all the other settings are
  177. correct.
  178. config BFIN527_EZKIT
  179. bool "BF527-EZKIT"
  180. depends on (BF522 || BF525 || BF527)
  181. help
  182. BF533-EZKIT-LITE board Support.
  183. config BFIN533_EZKIT
  184. bool "BF533-EZKIT"
  185. depends on (BF533 || BF532 || BF531)
  186. help
  187. BF533-EZKIT-LITE board Support.
  188. config BFIN533_STAMP
  189. bool "BF533-STAMP"
  190. depends on (BF533 || BF532 || BF531)
  191. help
  192. BF533-STAMP board Support.
  193. config BFIN537_STAMP
  194. bool "BF537-STAMP"
  195. depends on (BF537 || BF536 || BF534)
  196. help
  197. BF537-STAMP board Support.
  198. config BFIN533_BLUETECHNIX_CM
  199. bool "Bluetechnix CM-BF533"
  200. depends on (BF533)
  201. help
  202. CM-BF533 support for EVAL- and DEV-Board.
  203. config BFIN537_BLUETECHNIX_CM
  204. bool "Bluetechnix CM-BF537"
  205. depends on (BF537)
  206. help
  207. CM-BF537 support for EVAL- and DEV-Board.
  208. config BFIN548_EZKIT
  209. bool "BF548-EZKIT"
  210. depends on (BF548 || BF549)
  211. help
  212. BFIN548-EZKIT board Support.
  213. config BFIN561_BLUETECHNIX_CM
  214. bool "Bluetechnix CM-BF561"
  215. depends on (BF561)
  216. help
  217. CM-BF561 support for EVAL- and DEV-Board.
  218. config BFIN561_EZKIT
  219. bool "BF561-EZKIT"
  220. depends on (BF561)
  221. help
  222. BF561-EZKIT-LITE board Support.
  223. config BFIN561_TEPLA
  224. bool "BF561-TEPLA"
  225. depends on (BF561)
  226. help
  227. BF561-TEPLA board Support.
  228. config PNAV10
  229. bool "PNAV 1.0 board"
  230. depends on (BF537)
  231. help
  232. PNAV 1.0 board Support.
  233. config H8606_HVSISTEMAS
  234. bool "HV Sistemas H8606"
  235. depends on (BF532)
  236. help
  237. HV Sistemas H8606 board support.
  238. config GENERIC_BOARD
  239. bool "Custom"
  240. depends on (BF537 || BF536 \
  241. || BF534 || BF561 || BF535 || BF533 || BF532 || BF531)
  242. help
  243. GENERIC or Custom board Support.
  244. endchoice
  245. config MEM_GENERIC_BOARD
  246. bool
  247. depends on GENERIC_BOARD
  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 \
  257. || H8606_HVSISTEMAS)
  258. default y
  259. config MEM_MT48LC32M8A2_75
  260. bool
  261. depends on (BFIN537_STAMP || PNAV10)
  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)
  270. default y
  271. config BFIN_SHARED_FLASH_ENET
  272. bool
  273. depends on (BFIN533_STAMP)
  274. default y
  275. source "arch/blackfin/mach-bf527/Kconfig"
  276. source "arch/blackfin/mach-bf533/Kconfig"
  277. source "arch/blackfin/mach-bf561/Kconfig"
  278. source "arch/blackfin/mach-bf537/Kconfig"
  279. source "arch/blackfin/mach-bf548/Kconfig"
  280. menu "Board customizations"
  281. config CMDLINE_BOOL
  282. bool "Default bootloader kernel arguments"
  283. config CMDLINE
  284. string "Initial kernel command string"
  285. depends on CMDLINE_BOOL
  286. default "console=ttyBF0,57600"
  287. help
  288. If you don't have a boot loader capable of passing a command line string
  289. to the kernel, you may specify one here. As a minimum, you should specify
  290. the memory size and the root device (e.g., mem=8M, root=/dev/nfs).
  291. comment "Clock/PLL Setup"
  292. config CLKIN_HZ
  293. int "Crystal Frequency in Hz"
  294. default "11059200" if BFIN533_STAMP
  295. default "27000000" if BFIN533_EZKIT
  296. default "25000000" if (BFIN537_STAMP || BFIN527_EZKIT || H8606_HVSISTEMAS)
  297. default "30000000" if BFIN561_EZKIT
  298. default "24576000" if PNAV10
  299. help
  300. The frequency of CLKIN crystal oscillator on the board in Hz.
  301. config BFIN_KERNEL_CLOCK
  302. bool "Re-program Clocks while Kernel boots?"
  303. default n
  304. help
  305. This option decides if kernel clocks are re-programed from the
  306. bootloader settings. If the clocks are not set, the SDRAM settings
  307. are also not changed, and the Bootloader does 100% of the hardware
  308. configuration.
  309. config PLL_BYPASS
  310. bool "Bypass PLL"
  311. depends on BFIN_KERNEL_CLOCK
  312. default n
  313. config CLKIN_HALF
  314. bool "Half Clock In"
  315. depends on BFIN_KERNEL_CLOCK && (! PLL_BYPASS)
  316. default n
  317. help
  318. If this is set the clock will be divided by 2, before it goes to the PLL.
  319. config VCO_MULT
  320. int "VCO Multiplier"
  321. depends on BFIN_KERNEL_CLOCK && (! PLL_BYPASS)
  322. range 1 64
  323. default "22" if BFIN533_EZKIT
  324. default "45" if BFIN533_STAMP
  325. default "20" if (BFIN537_STAMP || BFIN527_EZKIT)
  326. default "22" if BFIN533_BLUETECHNIX_CM
  327. default "20" if BFIN537_BLUETECHNIX_CM
  328. default "20" if BFIN561_BLUETECHNIX_CM
  329. default "20" if BFIN561_EZKIT
  330. default "16" if H8606_HVSISTEMAS
  331. help
  332. This controls the frequency of the on-chip PLL. This can be between 1 and 64.
  333. PLL Frequency = (Crystal Frequency) * (this setting)
  334. choice
  335. prompt "Core Clock Divider"
  336. depends on BFIN_KERNEL_CLOCK
  337. default CCLK_DIV_1
  338. help
  339. This sets the frequency of the core. It can be 1, 2, 4 or 8
  340. Core Frequency = (PLL frequency) / (this setting)
  341. config CCLK_DIV_1
  342. bool "1"
  343. config CCLK_DIV_2
  344. bool "2"
  345. config CCLK_DIV_4
  346. bool "4"
  347. config CCLK_DIV_8
  348. bool "8"
  349. endchoice
  350. config SCLK_DIV
  351. int "System Clock Divider"
  352. depends on BFIN_KERNEL_CLOCK
  353. range 1 15
  354. default 5 if BFIN533_EZKIT
  355. default 5 if BFIN533_STAMP
  356. default 4 if (BFIN537_STAMP || BFIN527_EZKIT)
  357. default 5 if BFIN533_BLUETECHNIX_CM
  358. default 4 if BFIN537_BLUETECHNIX_CM
  359. default 4 if BFIN561_BLUETECHNIX_CM
  360. default 5 if BFIN561_EZKIT
  361. default 3 if H8606_HVSISTEMAS
  362. help
  363. This sets the frequency of the system clock (including SDRAM or DDR).
  364. This can be between 1 and 15
  365. System Clock = (PLL frequency) / (this setting)
  366. #
  367. # Max & Min Speeds for various Chips
  368. #
  369. config MAX_VCO_HZ
  370. int
  371. default 600000000 if BF522
  372. default 600000000 if BF525
  373. default 600000000 if BF527
  374. default 400000000 if BF531
  375. default 400000000 if BF532
  376. default 750000000 if BF533
  377. default 500000000 if BF534
  378. default 400000000 if BF536
  379. default 600000000 if BF537
  380. default 533000000 if BF538
  381. default 533000000 if BF539
  382. default 600000000 if BF542
  383. default 533000000 if BF544
  384. default 533000000 if BF549
  385. default 600000000 if BF561
  386. config MIN_VCO_HZ
  387. int
  388. default 50000000
  389. config MAX_SCLK_HZ
  390. int
  391. default 133000000
  392. config MIN_SCLK_HZ
  393. int
  394. default 27000000
  395. comment "Kernel Timer/Scheduler"
  396. source kernel/Kconfig.hz
  397. comment "Memory Setup"
  398. config MEM_SIZE
  399. int "SDRAM Memory Size in MBytes"
  400. default 32 if BFIN533_EZKIT
  401. default 64 if BFIN527_EZKIT
  402. default 64 if BFIN537_STAMP
  403. default 64 if BFIN561_EZKIT
  404. default 128 if BFIN533_STAMP
  405. default 64 if PNAV10
  406. default 32 if H8606_HVSISTEMAS
  407. config MEM_ADD_WIDTH
  408. int "SDRAM Memory Address Width"
  409. default 9 if BFIN533_EZKIT
  410. default 9 if BFIN561_EZKIT
  411. default 9 if H8606_HVSISTEMAS
  412. default 10 if BFIN527_EZKIT
  413. default 10 if BFIN537_STAMP
  414. default 11 if BFIN533_STAMP
  415. default 10 if PNAV10
  416. config ENET_FLASH_PIN
  417. int "PF port/pin used for flash and ethernet sharing"
  418. depends on (BFIN533_STAMP)
  419. default 0
  420. help
  421. PF port/pin used for flash and ethernet sharing to allow other PF
  422. pins to be used on other platforms without having to touch common
  423. code.
  424. For example: PF0 --> 0,PF1 --> 1,PF2 --> 2, etc.
  425. config BOOT_LOAD
  426. hex "Kernel load address for booting"
  427. default "0x1000"
  428. range 0x1000 0x20000000
  429. help
  430. This option allows you to set the load address of the kernel.
  431. This can be useful if you are on a board which has a small amount
  432. of memory or you wish to reserve some memory at the beginning of
  433. the address space.
  434. Note that you need to keep this value above 4k (0x1000) as this
  435. memory region is used to capture NULL pointer references as well
  436. as some core kernel functions.
  437. comment "LED Status Indicators"
  438. depends on (BFIN533_STAMP || BFIN533_BLUETECHNIX_CM)
  439. config BFIN_ALIVE_LED
  440. bool "Enable Board Alive"
  441. depends on (BFIN533_STAMP || BFIN533_BLUETECHNIX_CM)
  442. default n
  443. help
  444. Blink the LEDs you select when the kernel is running. Helps detect
  445. a hung kernel.
  446. config BFIN_ALIVE_LED_NUM
  447. int "LED"
  448. depends on BFIN_ALIVE_LED
  449. range 1 3 if BFIN533_STAMP
  450. default "3" if BFIN533_STAMP
  451. help
  452. Select the LED (marked on the board) for you to blink.
  453. config BFIN_IDLE_LED
  454. bool "Enable System Load/Idle LED"
  455. depends on (BFIN533_STAMP || BFIN533_BLUETECHNIX_CM)
  456. default n
  457. help
  458. Blinks the LED you select when to determine kernel load.
  459. config BFIN_IDLE_LED_NUM
  460. int "LED"
  461. depends on BFIN_IDLE_LED
  462. range 1 3 if BFIN533_STAMP
  463. default "2" if BFIN533_STAMP
  464. help
  465. Select the LED (marked on the board) for you to blink.
  466. choice
  467. prompt "Blackfin Exception Scratch Register"
  468. default BFIN_SCRATCH_REG_RETN
  469. help
  470. Select the resource to reserve for the Exception handler:
  471. - RETN: Non-Maskable Interrupt (NMI)
  472. - RETE: Exception Return (JTAG/ICE)
  473. - CYCLES: Performance counter
  474. If you are unsure, please select "RETN".
  475. config BFIN_SCRATCH_REG_RETN
  476. bool "RETN"
  477. help
  478. Use the RETN register in the Blackfin exception handler
  479. as a stack scratch register. This means you cannot
  480. safely use NMI on the Blackfin while running Linux, but
  481. you can debug the system with a JTAG ICE and use the
  482. CYCLES performance registers.
  483. If you are unsure, please select "RETN".
  484. config BFIN_SCRATCH_REG_RETE
  485. bool "RETE"
  486. help
  487. Use the RETE register in the Blackfin exception handler
  488. as a stack scratch register. This means you cannot
  489. safely use a JTAG ICE while debugging a Blackfin board,
  490. but you can safely use the CYCLES performance registers
  491. and the NMI.
  492. If you are unsure, please select "RETN".
  493. config BFIN_SCRATCH_REG_CYCLES
  494. bool "CYCLES"
  495. help
  496. Use the CYCLES register in the Blackfin exception handler
  497. as a stack scratch register. This means you cannot
  498. safely use the CYCLES performance registers on a Blackfin
  499. board at anytime, but you can debug the system with a JTAG
  500. ICE and use the NMI.
  501. If you are unsure, please select "RETN".
  502. endchoice
  503. #
  504. # Sorry - but you need to put the hex address here -
  505. #
  506. # Flag Data register
  507. config BFIN_ALIVE_LED_PORT
  508. hex
  509. default 0xFFC00700 if (BFIN533_STAMP)
  510. # Peripheral Flag Direction Register
  511. config BFIN_ALIVE_LED_DPORT
  512. hex
  513. default 0xFFC00730 if (BFIN533_STAMP)
  514. config BFIN_ALIVE_LED_PIN
  515. hex
  516. default 0x04 if (BFIN533_STAMP && BFIN_ALIVE_LED_NUM = 1)
  517. default 0x08 if (BFIN533_STAMP && BFIN_ALIVE_LED_NUM = 2)
  518. default 0x10 if (BFIN533_STAMP && BFIN_ALIVE_LED_NUM = 3)
  519. config BFIN_IDLE_LED_PORT
  520. hex
  521. default 0xFFC00700 if (BFIN533_STAMP)
  522. # Peripheral Flag Direction Register
  523. config BFIN_IDLE_LED_DPORT
  524. hex
  525. default 0xFFC00730 if (BFIN533_STAMP)
  526. config BFIN_IDLE_LED_PIN
  527. hex
  528. default 0x04 if (BFIN533_STAMP && BFIN_IDLE_LED_NUM = 1)
  529. default 0x08 if (BFIN533_STAMP && BFIN_IDLE_LED_NUM = 2)
  530. default 0x10 if (BFIN533_STAMP && BFIN_IDLE_LED_NUM = 3)
  531. endmenu
  532. menu "Blackfin Kernel Optimizations"
  533. comment "Memory Optimizations"
  534. config I_ENTRY_L1
  535. bool "Locate interrupt entry code in L1 Memory"
  536. default y
  537. help
  538. If enabled, interrupt entry code (STORE/RESTORE CONTEXT) is linked
  539. into L1 instruction memory. (less latency)
  540. config EXCPT_IRQ_SYSC_L1
  541. bool "Locate entire ASM lowlevel exception / interrupt - Syscall and CPLB handler code in L1 Memory"
  542. default y
  543. help
  544. If enabled, the entire ASM lowlevel exception and interrupt entry code
  545. (STORE/RESTORE CONTEXT) is linked into L1 instruction memory.
  546. (less latency)
  547. config DO_IRQ_L1
  548. bool "Locate frequently called do_irq dispatcher function in L1 Memory"
  549. default y
  550. help
  551. If enabled, the frequently called do_irq dispatcher function is linked
  552. into L1 instruction memory. (less latency)
  553. config CORE_TIMER_IRQ_L1
  554. bool "Locate frequently called timer_interrupt() function in L1 Memory"
  555. default y
  556. help
  557. If enabled, the frequently called timer_interrupt() function is linked
  558. into L1 instruction memory. (less latency)
  559. config IDLE_L1
  560. bool "Locate frequently idle function in L1 Memory"
  561. default y
  562. help
  563. If enabled, the frequently called idle function is linked
  564. into L1 instruction memory. (less latency)
  565. config SCHEDULE_L1
  566. bool "Locate kernel schedule function in L1 Memory"
  567. default y
  568. help
  569. If enabled, the frequently called kernel schedule is linked
  570. into L1 instruction memory. (less latency)
  571. config ARITHMETIC_OPS_L1
  572. bool "Locate kernel owned arithmetic functions in L1 Memory"
  573. default y
  574. help
  575. If enabled, arithmetic functions are linked
  576. into L1 instruction memory. (less latency)
  577. config ACCESS_OK_L1
  578. bool "Locate access_ok function in L1 Memory"
  579. default y
  580. help
  581. If enabled, the access_ok function is linked
  582. into L1 instruction memory. (less latency)
  583. config MEMSET_L1
  584. bool "Locate memset function in L1 Memory"
  585. default y
  586. help
  587. If enabled, the memset function is linked
  588. into L1 instruction memory. (less latency)
  589. config MEMCPY_L1
  590. bool "Locate memcpy function in L1 Memory"
  591. default y
  592. help
  593. If enabled, the memcpy function is linked
  594. into L1 instruction memory. (less latency)
  595. config SYS_BFIN_SPINLOCK_L1
  596. bool "Locate sys_bfin_spinlock function in L1 Memory"
  597. default y
  598. help
  599. If enabled, sys_bfin_spinlock function is linked
  600. into L1 instruction memory. (less latency)
  601. config IP_CHECKSUM_L1
  602. bool "Locate IP Checksum function in L1 Memory"
  603. default n
  604. help
  605. If enabled, the IP Checksum function is linked
  606. into L1 instruction memory. (less latency)
  607. config CACHELINE_ALIGNED_L1
  608. bool "Locate cacheline_aligned data to L1 Data Memory"
  609. default y if !BF54x
  610. default n if BF54x
  611. depends on !BF531
  612. help
  613. If enabled, cacheline_anligned data is linked
  614. into L1 data memory. (less latency)
  615. config SYSCALL_TAB_L1
  616. bool "Locate Syscall Table L1 Data Memory"
  617. default n
  618. depends on !BF531
  619. help
  620. If enabled, the Syscall LUT is linked
  621. into L1 data memory. (less latency)
  622. config CPLB_SWITCH_TAB_L1
  623. bool "Locate CPLB Switch Tables L1 Data Memory"
  624. default n
  625. depends on !BF531
  626. help
  627. If enabled, the CPLB Switch Tables are linked
  628. into L1 data memory. (less latency)
  629. endmenu
  630. choice
  631. prompt "Kernel executes from"
  632. help
  633. Choose the memory type that the kernel will be running in.
  634. config RAMKERNEL
  635. bool "RAM"
  636. help
  637. The kernel will be resident in RAM when running.
  638. config ROMKERNEL
  639. bool "ROM"
  640. help
  641. The kernel will be resident in FLASH/ROM when running.
  642. endchoice
  643. source "mm/Kconfig"
  644. config LARGE_ALLOCS
  645. bool "Allow allocating large blocks (> 1MB) of memory"
  646. help
  647. Allow the slab memory allocator to keep chains for very large
  648. memory sizes - upto 32MB. You may need this if your system has
  649. a lot of RAM, and you need to able to allocate very large
  650. contiguous chunks. If unsure, say N.
  651. config BFIN_GPTIMERS
  652. tristate "Enable Blackfin General Purpose Timers API"
  653. default n
  654. help
  655. Enable support for the General Purpose Timers API. If you
  656. are unsure, say N.
  657. To compile this driver as a module, choose M here: the module
  658. will be called gptimers.ko.
  659. config BFIN_DMA_5XX
  660. bool "Enable DMA Support"
  661. depends on (BF52x || BF53x || BF561 || BF54x)
  662. default y
  663. help
  664. DMA driver for BF5xx.
  665. choice
  666. prompt "Uncached SDRAM region"
  667. default DMA_UNCACHED_1M
  668. depends on BFIN_DMA_5XX
  669. config DMA_UNCACHED_2M
  670. bool "Enable 2M DMA region"
  671. config DMA_UNCACHED_1M
  672. bool "Enable 1M DMA region"
  673. config DMA_UNCACHED_NONE
  674. bool "Disable DMA region"
  675. endchoice
  676. comment "Cache Support"
  677. config BFIN_ICACHE
  678. bool "Enable ICACHE"
  679. config BFIN_DCACHE
  680. bool "Enable DCACHE"
  681. config BFIN_DCACHE_BANKA
  682. bool "Enable only 16k BankA DCACHE - BankB is SRAM"
  683. depends on BFIN_DCACHE && !BF531
  684. default n
  685. config BFIN_ICACHE_LOCK
  686. bool "Enable Instruction Cache Locking"
  687. choice
  688. prompt "Policy"
  689. depends on BFIN_DCACHE
  690. default BFIN_WB
  691. config BFIN_WB
  692. bool "Write back"
  693. help
  694. Write Back Policy:
  695. Cached data will be written back to SDRAM only when needed.
  696. This can give a nice increase in performance, but beware of
  697. broken drivers that do not properly invalidate/flush their
  698. cache.
  699. Write Through Policy:
  700. Cached data will always be written back to SDRAM when the
  701. cache is updated. This is a completely safe setting, but
  702. performance is worse than Write Back.
  703. If you are unsure of the options and you want to be safe,
  704. then go with Write Through.
  705. config BFIN_WT
  706. bool "Write through"
  707. help
  708. Write Back Policy:
  709. Cached data will be written back to SDRAM only when needed.
  710. This can give a nice increase in performance, but beware of
  711. broken drivers that do not properly invalidate/flush their
  712. cache.
  713. Write Through Policy:
  714. Cached data will always be written back to SDRAM when the
  715. cache is updated. This is a completely safe setting, but
  716. performance is worse than Write Back.
  717. If you are unsure of the options and you want to be safe,
  718. then go with Write Through.
  719. endchoice
  720. config L1_MAX_PIECE
  721. int "Set the max L1 SRAM pieces"
  722. default 16
  723. help
  724. Set the max memory pieces for the L1 SRAM allocation algorithm.
  725. Min value is 16. Max value is 1024.
  726. comment "Asynchonous Memory Configuration"
  727. menu "EBIU_AMGCTL Global Control"
  728. config C_AMCKEN
  729. bool "Enable CLKOUT"
  730. default y
  731. config C_CDPRIO
  732. bool "DMA has priority over core for ext. accesses"
  733. depends on !BF54x
  734. default n
  735. config C_B0PEN
  736. depends on BF561
  737. bool "Bank 0 16 bit packing enable"
  738. default y
  739. config C_B1PEN
  740. depends on BF561
  741. bool "Bank 1 16 bit packing enable"
  742. default y
  743. config C_B2PEN
  744. depends on BF561
  745. bool "Bank 2 16 bit packing enable"
  746. default y
  747. config C_B3PEN
  748. depends on BF561
  749. bool "Bank 3 16 bit packing enable"
  750. default n
  751. choice
  752. prompt"Enable Asynchonous Memory Banks"
  753. default C_AMBEN_ALL
  754. config C_AMBEN
  755. bool "Disable All Banks"
  756. config C_AMBEN_B0
  757. bool "Enable Bank 0"
  758. config C_AMBEN_B0_B1
  759. bool "Enable Bank 0 & 1"
  760. config C_AMBEN_B0_B1_B2
  761. bool "Enable Bank 0 & 1 & 2"
  762. config C_AMBEN_ALL
  763. bool "Enable All Banks"
  764. endchoice
  765. endmenu
  766. menu "EBIU_AMBCTL Control"
  767. config BANK_0
  768. hex "Bank 0"
  769. default 0x7BB0
  770. config BANK_1
  771. hex "Bank 1"
  772. default 0x7BB0
  773. config BANK_2
  774. hex "Bank 2"
  775. default 0x7BB0
  776. config BANK_3
  777. hex "Bank 3"
  778. default 0x99B3
  779. endmenu
  780. endmenu
  781. #############################################################################
  782. menu "Bus options (PCI, PCMCIA, EISA, MCA, ISA)"
  783. config PCI
  784. bool "PCI support"
  785. help
  786. Support for PCI bus.
  787. source "drivers/pci/Kconfig"
  788. config HOTPLUG
  789. bool "Support for hot-pluggable device"
  790. help
  791. Say Y here if you want to plug devices into your computer while
  792. the system is running, and be able to use them quickly. In many
  793. cases, the devices can likewise be unplugged at any time too.
  794. One well known example of this is PCMCIA- or PC-cards, credit-card
  795. size devices such as network cards, modems or hard drives which are
  796. plugged into slots found on all modern laptop computers. Another
  797. example, used on modern desktops as well as laptops, is USB.
  798. Enable HOTPLUG and KMOD, and build a modular kernel. Get agent
  799. software (at <http://linux-hotplug.sourceforge.net/>) and install it.
  800. Then your kernel will automatically call out to a user mode "policy
  801. agent" (/sbin/hotplug) to load modules and set up software needed
  802. to use devices as you hotplug them.
  803. source "drivers/pcmcia/Kconfig"
  804. source "drivers/pci/hotplug/Kconfig"
  805. endmenu
  806. menu "Executable file formats"
  807. source "fs/Kconfig.binfmt"
  808. endmenu
  809. menu "Power management options"
  810. source "kernel/power/Kconfig"
  811. choice
  812. prompt "Select PM Wakeup Event Source"
  813. default PM_WAKEUP_GPIO_BY_SIC_IWR
  814. depends on PM
  815. help
  816. If you have a GPIO already configured as input with the corresponding PORTx_MASK
  817. bit set - "Specify Wakeup Event by SIC_IWR value"
  818. config PM_WAKEUP_GPIO_BY_SIC_IWR
  819. bool "Specify Wakeup Event by SIC_IWR value"
  820. config PM_WAKEUP_BY_GPIO
  821. bool "Cause Wakeup Event by GPIO"
  822. config PM_WAKEUP_GPIO_API
  823. bool "Configure Wakeup Event by PM GPIO API"
  824. endchoice
  825. config PM_WAKEUP_SIC_IWR
  826. hex "Wakeup Events (SIC_IWR)"
  827. depends on PM_WAKEUP_GPIO_BY_SIC_IWR
  828. default 0x80000000 if (BF537 || BF536 || BF534)
  829. default 0x100000 if (BF533 || BF532 || BF531)
  830. config PM_WAKEUP_GPIO_NUMBER
  831. int "Wakeup GPIO number"
  832. range 0 47
  833. depends on PM_WAKEUP_BY_GPIO
  834. default 2 if BFIN537_STAMP
  835. choice
  836. prompt "GPIO Polarity"
  837. depends on PM_WAKEUP_BY_GPIO
  838. default PM_WAKEUP_GPIO_POLAR_H
  839. config PM_WAKEUP_GPIO_POLAR_H
  840. bool "Active High"
  841. config PM_WAKEUP_GPIO_POLAR_L
  842. bool "Active Low"
  843. config PM_WAKEUP_GPIO_POLAR_EDGE_F
  844. bool "Falling EDGE"
  845. config PM_WAKEUP_GPIO_POLAR_EDGE_R
  846. bool "Rising EDGE"
  847. config PM_WAKEUP_GPIO_POLAR_EDGE_B
  848. bool "Both EDGE"
  849. endchoice
  850. endmenu
  851. if (BF537 || BF533 || BF54x)
  852. menu "CPU Frequency scaling"
  853. source "drivers/cpufreq/Kconfig"
  854. config CPU_FREQ
  855. bool
  856. default n
  857. help
  858. If you want to enable this option, you should select the
  859. DPMC driver from Character Devices.
  860. endmenu
  861. endif
  862. source "net/Kconfig"
  863. source "drivers/Kconfig"
  864. source "fs/Kconfig"
  865. source "kernel/Kconfig.instrumentation"
  866. menu "Kernel hacking"
  867. source "lib/Kconfig.debug"
  868. config DEBUG_HWERR
  869. bool "Hardware error interrupt debugging"
  870. depends on DEBUG_KERNEL
  871. help
  872. When enabled, the hardware error interrupt is never disabled, and
  873. will happen immediately when an error condition occurs. This comes
  874. at a slight cost in code size, but is necessary if you are getting
  875. hardware error interrupts and need to know where they are coming
  876. from.
  877. config DEBUG_ICACHE_CHECK
  878. bool "Check Instruction cache coherency"
  879. depends on DEBUG_KERNEL
  880. depends on DEBUG_HWERR
  881. help
  882. Say Y here if you are getting weird unexplained errors. This will
  883. ensure that icache is what SDRAM says it should be by doing a
  884. byte wise comparison between SDRAM and instruction cache. This
  885. also relocates the irq_panic() function to L1 memory, (which is
  886. un-cached).
  887. config DEBUG_HUNT_FOR_ZERO
  888. bool "Catch NULL pointer reads/writes"
  889. default y
  890. help
  891. Say Y here to catch reads/writes to anywhere in the memory range
  892. from 0x0000 - 0x0FFF (the first 4k) of memory. This is useful in
  893. catching common programming errors such as NULL pointer dereferences.
  894. Misbehaving applications will be killed (generate a SEGV) while the
  895. kernel will trigger a panic.
  896. Enabling this option will take up an extra entry in CPLB table.
  897. Otherwise, there is no extra overhead.
  898. config DEBUG_BFIN_HWTRACE_ON
  899. bool "Turn on Blackfin's Hardware Trace"
  900. default y
  901. help
  902. All Blackfins include a Trace Unit which stores a history of the last
  903. 16 changes in program flow taken by the program sequencer. The history
  904. allows the user to recreate the program sequencer’s recent path. This
  905. can be handy when an application dies - we print out the execution
  906. path of how it got to the offending instruction.
  907. By turning this off, you may save a tiny amount of power.
  908. choice
  909. prompt "Omit loop Tracing"
  910. default DEBUG_BFIN_HWTRACE_COMPRESSION_OFF
  911. depends on DEBUG_BFIN_HWTRACE_ON
  912. help
  913. The trace buffer can be configured to omit recording of changes in
  914. program flow that match either the last entry or one of the last
  915. two entries. Omitting one of these entries from the record prevents
  916. the trace buffer from overflowing because of any sort of loop (for, do
  917. while, etc) in the program.
  918. Because zero-overhead Hardware loops are not recorded in the trace buffer,
  919. this feature can be used to prevent trace overflow from loops that
  920. are nested four deep.
  921. config DEBUG_BFIN_HWTRACE_COMPRESSION_OFF
  922. bool "Trace all Loops"
  923. help
  924. The trace buffer records all changes of flow
  925. config DEBUG_BFIN_HWTRACE_COMPRESSION_ONE
  926. bool "Compress single-level loops"
  927. help
  928. The trace buffer does not record single loops - helpful if trace
  929. is spinning on a while or do loop.
  930. config DEBUG_BFIN_HWTRACE_COMPRESSION_TWO
  931. bool "Compress two-level loops"
  932. help
  933. The trace buffer does not record loops two levels deep. Helpful if
  934. the trace is spinning in a nested loop
  935. endchoice
  936. config DEBUG_BFIN_HWTRACE_COMPRESSION
  937. int
  938. depends on DEBUG_BFIN_HWTRACE_ON
  939. default 0 if DEBUG_BFIN_HWTRACE_COMPRESSION_OFF
  940. default 1 if DEBUG_BFIN_HWTRACE_COMPRESSION_ONE
  941. default 2 if DEBUG_BFIN_HWTRACE_COMPRESSION_TWO
  942. config DEBUG_BFIN_HWTRACE_EXPAND
  943. bool "Expand Trace Buffer greater than 16 entries"
  944. depends on DEBUG_BFIN_HWTRACE_ON
  945. default n
  946. help
  947. By selecting this option, every time the 16 hardware entries in
  948. the Blackfin's HW Trace buffer are full, the kernel will move them
  949. into a software buffer, for dumping when there is an issue. This
  950. has a great impact on performance, (an interrupt every 16 change of
  951. flows) and should normally be turned off, except in those nasty
  952. debugging sessions
  953. config DEBUG_BFIN_HWTRACE_EXPAND_LEN
  954. int "Size of Trace buffer (in power of 2k)"
  955. range 0 4
  956. depends on DEBUG_BFIN_HWTRACE_EXPAND
  957. default 1
  958. help
  959. This sets the size of the software buffer that the trace information
  960. is kept in.
  961. 0 for (2^0) 1k, or 256 entries,
  962. 1 for (2^1) 2k, or 512 entries,
  963. 2 for (2^2) 4k, or 1024 entries,
  964. 3 for (2^3) 8k, or 2048 entries,
  965. 4 for (2^4) 16k, or 4096 entries
  966. config DEBUG_BFIN_NO_KERN_HWTRACE
  967. bool "Trace user apps (turn off hwtrace in kernel)"
  968. depends on DEBUG_BFIN_HWTRACE_ON
  969. default n
  970. help
  971. Some pieces of the kernel contain a lot of flow changes which can
  972. quickly fill up the hardware trace buffer. When debugging crashes,
  973. the hardware trace may indicate that the problem lies in kernel
  974. space when in reality an application is buggy.
  975. Say Y here to disable hardware tracing in some known "jumpy" pieces
  976. of code so that the trace buffer will extend further back.
  977. config EARLY_PRINTK
  978. bool "Early printk"
  979. default n
  980. help
  981. This option enables special console drivers which allow the kernel
  982. to print messages very early in the bootup process.
  983. This is useful for kernel debugging when your machine crashes very
  984. early before the console code is initialized. After enabling this
  985. feature, you must add "earlyprintk=serial,uart0,57600" to the
  986. command line (bootargs). It is safe to say Y here in all cases, as
  987. all of this lives in the init section and is thrown away after the
  988. kernel boots completely.
  989. config DUAL_CORE_TEST_MODULE
  990. tristate "Dual Core Test Module"
  991. depends on (BF561)
  992. default n
  993. help
  994. Say Y here to build-in dual core test module for dual core test.
  995. config CPLB_INFO
  996. bool "Display the CPLB information"
  997. help
  998. Display the CPLB information.
  999. config ACCESS_CHECK
  1000. bool "Check the user pointer address"
  1001. default y
  1002. help
  1003. Usually the pointer transfer from user space is checked to see if its
  1004. address is in the kernel space.
  1005. Say N here to disable that check to improve the performance.
  1006. endmenu
  1007. source "security/Kconfig"
  1008. source "crypto/Kconfig"
  1009. source "lib/Kconfig"