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