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