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