diff options
author | Michal Simek <monstr@monstr.eu> | 2009-03-27 09:25:50 -0400 |
---|---|---|
committer | Michal Simek <monstr@monstr.eu> | 2009-03-27 09:25:50 -0400 |
commit | 575ca2883ed7652aba09d7b77332004e45d56f69 (patch) | |
tree | 6f932b145a2727d99be12b28d95364cdee618ed2 | |
parent | eedbdab99fffb8ed71cac75a722088b8ace2583c (diff) |
microblaze_v8: Kconfig patches
Reviewed-by: Ingo Molnar <mingo@elte.hu>
Acked-by: Randy Dunlap <randy.dunlap@oracle.com>
Acked-by: John Linn <john.linn@xilinx.com>
Acked-by: Stephen Neuendorffer <stephen.neuendorffer@xilinx.com>
Acked-by: John Williams <john.williams@petalogix.com>
Signed-off-by: Michal Simek <monstr@monstr.eu>
-rw-r--r-- | arch/microblaze/Kconfig | 141 | ||||
-rw-r--r-- | arch/microblaze/Kconfig.debug | 26 | ||||
-rw-r--r-- | arch/microblaze/platform/Kconfig.platform | 85 | ||||
-rw-r--r-- | arch/microblaze/platform/generic/Kconfig.auto | 62 |
4 files changed, 314 insertions, 0 deletions
diff --git a/arch/microblaze/Kconfig b/arch/microblaze/Kconfig new file mode 100644 index 000000000000..8cc312b5d4dc --- /dev/null +++ b/arch/microblaze/Kconfig | |||
@@ -0,0 +1,141 @@ | |||
1 | # For a description of the syntax of this configuration file, | ||
2 | # see Documentation/kbuild/kconfig-language.txt. | ||
3 | |||
4 | mainmenu "Linux/Microblaze Kernel Configuration" | ||
5 | |||
6 | config MICROBLAZE | ||
7 | def_bool y | ||
8 | select HAVE_LMB | ||
9 | |||
10 | config SWAP | ||
11 | def_bool n | ||
12 | |||
13 | config RWSEM_GENERIC_SPINLOCK | ||
14 | def_bool y | ||
15 | |||
16 | config RWSEM_XCHGADD_ALGORITHM | ||
17 | bool | ||
18 | |||
19 | config ARCH_HAS_ILOG2_U32 | ||
20 | def_bool n | ||
21 | |||
22 | config ARCH_HAS_ILOG2_U64 | ||
23 | def_bool n | ||
24 | |||
25 | config GENERIC_FIND_NEXT_BIT | ||
26 | def_bool y | ||
27 | |||
28 | config GENERIC_HWEIGHT | ||
29 | def_bool y | ||
30 | |||
31 | config GENERIC_HARDIRQS | ||
32 | def_bool y | ||
33 | |||
34 | config GENERIC_IRQ_PROBE | ||
35 | def_bool y | ||
36 | |||
37 | config GENERIC_CALIBRATE_DELAY | ||
38 | def_bool y | ||
39 | |||
40 | config GENERIC_TIME | ||
41 | def_bool y | ||
42 | |||
43 | config GENERIC_TIME_VSYSCALL | ||
44 | def_bool n | ||
45 | |||
46 | config GENERIC_CLOCKEVENTS | ||
47 | def_bool y | ||
48 | |||
49 | config GENERIC_HARDIRQS_NO__DO_IRQ | ||
50 | def_bool y | ||
51 | |||
52 | config PCI | ||
53 | depends on !MMU | ||
54 | def_bool n | ||
55 | |||
56 | config NO_DMA | ||
57 | depends on !MMU | ||
58 | def_bool n | ||
59 | |||
60 | source "init/Kconfig" | ||
61 | |||
62 | source "kernel/Kconfig.freezer" | ||
63 | |||
64 | source "arch/microblaze/platform/Kconfig.platform" | ||
65 | |||
66 | menu "Processor type and features" | ||
67 | |||
68 | source kernel/time/Kconfig | ||
69 | |||
70 | source "kernel/Kconfig.preempt" | ||
71 | |||
72 | source "kernel/Kconfig.hz" | ||
73 | |||
74 | config MMU | ||
75 | def_bool n | ||
76 | |||
77 | config NO_MMU | ||
78 | bool | ||
79 | depends on !MMU | ||
80 | default y | ||
81 | |||
82 | comment "Boot options" | ||
83 | |||
84 | config CMDLINE_BOOL | ||
85 | bool "Default bootloader kernel arguments" | ||
86 | |||
87 | config CMDLINE | ||
88 | string "Default kernel command string" | ||
89 | depends on CMDLINE_BOOL | ||
90 | default "console=ttyUL0,115200" | ||
91 | help | ||
92 | On some architectures there is currently no way for the boot loader | ||
93 | to pass arguments to the kernel. For these architectures, you should | ||
94 | supply some command-line options at build time by entering them | ||
95 | here. | ||
96 | |||
97 | config CMDLINE_FORCE | ||
98 | bool "Force default kernel command string" | ||
99 | depends on CMDLINE_BOOL | ||
100 | default n | ||
101 | help | ||
102 | Set this to have arguments from the default kernel command string | ||
103 | override those passed by the boot loader. | ||
104 | |||
105 | config OF | ||
106 | def_bool y | ||
107 | |||
108 | config OF_DEVICE | ||
109 | def_bool y | ||
110 | |||
111 | config PROC_DEVICETREE | ||
112 | bool "Support for device tree in /proc" | ||
113 | depends on PROC_FS | ||
114 | help | ||
115 | This option adds a device-tree directory under /proc which contains | ||
116 | an image of the device tree that the kernel copies from Open | ||
117 | Firmware or other boot firmware. If unsure, say Y here. | ||
118 | |||
119 | endmenu | ||
120 | |||
121 | source "mm/Kconfig" | ||
122 | |||
123 | menu "Exectuable file formats" | ||
124 | |||
125 | source "fs/Kconfig.binfmt" | ||
126 | |||
127 | endmenu | ||
128 | |||
129 | source "net/Kconfig" | ||
130 | |||
131 | source "drivers/Kconfig" | ||
132 | |||
133 | source "fs/Kconfig" | ||
134 | |||
135 | source "arch/microblaze/Kconfig.debug" | ||
136 | |||
137 | source "security/Kconfig" | ||
138 | |||
139 | source "crypto/Kconfig" | ||
140 | |||
141 | source "lib/Kconfig" | ||
diff --git a/arch/microblaze/Kconfig.debug b/arch/microblaze/Kconfig.debug new file mode 100644 index 000000000000..242cd35bdb4b --- /dev/null +++ b/arch/microblaze/Kconfig.debug | |||
@@ -0,0 +1,26 @@ | |||
1 | # For a description of the syntax of this configuration file, | ||
2 | # see Documentation/kbuild/kconfig-language.txt. | ||
3 | |||
4 | menu "Kernel hacking" | ||
5 | |||
6 | source "lib/Kconfig.debug" | ||
7 | |||
8 | config EARLY_PRINTK | ||
9 | bool "Early printk function for kernel" | ||
10 | default n | ||
11 | help | ||
12 | This option turns on/off early printk messages to console. | ||
13 | First Uartlite node is taken. | ||
14 | |||
15 | config HEART_BEAT | ||
16 | bool "Heart beat function for kernel" | ||
17 | default n | ||
18 | help | ||
19 | This option turns on/off heart beat kernel functionality. | ||
20 | First GPIO node is taken. | ||
21 | |||
22 | config DEBUG_BOOTMEM | ||
23 | depends on DEBUG_KERNEL | ||
24 | bool "Debug BOOTMEM initialization" | ||
25 | |||
26 | endmenu | ||
diff --git a/arch/microblaze/platform/Kconfig.platform b/arch/microblaze/platform/Kconfig.platform new file mode 100644 index 000000000000..8e9b4752d3ff --- /dev/null +++ b/arch/microblaze/platform/Kconfig.platform | |||
@@ -0,0 +1,85 @@ | |||
1 | # For a description of the syntax of this configuration file, | ||
2 | # see Documentation/kbuild/kconfig-language.txt. | ||
3 | # | ||
4 | # Platform selection Kconfig menu for MicroBlaze targets | ||
5 | # | ||
6 | |||
7 | menu "Platform options" | ||
8 | choice | ||
9 | prompt "Platform" | ||
10 | default PLATFORM_MICROBLAZE_AUTO | ||
11 | help | ||
12 | Choose which hardware board/platform you are targeting. | ||
13 | |||
14 | config PLATFORM_GENERIC | ||
15 | bool "Generic" | ||
16 | help | ||
17 | Choose this option for the Generic platform. | ||
18 | |||
19 | endchoice | ||
20 | |||
21 | config SELFMOD | ||
22 | bool "Use self modified code for intc/timer" | ||
23 | depends on EXPERIMENTAL && NO_MMU | ||
24 | default n | ||
25 | help | ||
26 | This choice enables self-modified code for interrupt controller | ||
27 | and timer. | ||
28 | |||
29 | config SELFMOD_INTC | ||
30 | bool "Use self modified code for intc" | ||
31 | depends on SELFMOD | ||
32 | default y | ||
33 | help | ||
34 | This choice enables self-modified code for interrupt controller. | ||
35 | |||
36 | config SELFMOD_TIMER | ||
37 | bool "Use self modified code for timer" | ||
38 | depends on SELFMOD | ||
39 | default y | ||
40 | help | ||
41 | This choice enables self-modified code for timer. | ||
42 | |||
43 | config OPT_LIB_FUNCTION | ||
44 | bool "Optimalized lib function" | ||
45 | default y | ||
46 | help | ||
47 | Allows turn on optimalized library function (memcpy and memmove). | ||
48 | They are optimized by using word alignment. This will work | ||
49 | fine if both source and destination are aligned on the same | ||
50 | boundary. However, if they are aligned on different boundaries | ||
51 | shifts will be necessary. This might result in bad performance | ||
52 | on MicroBlaze systems without a barrel shifter. | ||
53 | |||
54 | config OPT_LIB_ASM | ||
55 | bool "Optimalized lib function ASM" | ||
56 | depends on OPT_LIB_FUNCTION | ||
57 | default n | ||
58 | help | ||
59 | Allows turn on optimalized library function (memcpy and memmove). | ||
60 | Function are written in asm code. | ||
61 | |||
62 | # This is still a bit broken - disabling for now JW 20070504 | ||
63 | config ALLOW_EDIT_AUTO | ||
64 | bool "Permit Display/edit of Kconfig.auto platform settings" | ||
65 | default n | ||
66 | help | ||
67 | Allows the editing of auto-generated platform settings from | ||
68 | the Kconfig.auto file. Obviously this does not change the | ||
69 | underlying hardware, so be very careful if you go editing | ||
70 | these settings. | ||
71 | |||
72 | Also, if you enable this, and edit various Kconfig.auto | ||
73 | settings, YOUR CHANGES WILL BE LOST if you then disable it | ||
74 | again. You have been warned! | ||
75 | |||
76 | If unsure, say no. | ||
77 | |||
78 | comment "Automatic platform settings from Kconfig.auto" | ||
79 | depends on ALLOW_EDIT_AUTO | ||
80 | |||
81 | if PLATFORM_GENERIC=y | ||
82 | source "arch/microblaze/platform/generic/Kconfig.auto" | ||
83 | endif | ||
84 | |||
85 | endmenu | ||
diff --git a/arch/microblaze/platform/generic/Kconfig.auto b/arch/microblaze/platform/generic/Kconfig.auto new file mode 100644 index 000000000000..fbca22d9c8b9 --- /dev/null +++ b/arch/microblaze/platform/generic/Kconfig.auto | |||
@@ -0,0 +1,62 @@ | |||
1 | # | ||
2 | # (C) Copyright 2007 Michal Simek | ||
3 | # | ||
4 | # Michal SIMEK <monstr@monstr.eu> | ||
5 | # | ||
6 | # This program is free software; you can redistribute it and/or | ||
7 | # modify it under the terms of the GNU General Public License as | ||
8 | # published by the Free Software Foundation; either version 2 of | ||
9 | # the License, or (at your option) any later version. | ||
10 | # | ||
11 | # This program is distributed in the hope that it will be useful, | ||
12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
14 | # GNU General Public License for more details. | ||
15 | # | ||
16 | # You should have received a copy of the GNU General Public License | ||
17 | # along with this program; if not, write to the Free Software | ||
18 | # Foundation, Inc., 59 Temple Place, Suite 330, Boston, | ||
19 | # MA 02111-1307 USA | ||
20 | # | ||
21 | |||
22 | # Definitions for MICROBLAZE0 | ||
23 | comment "Definitions for MICROBLAZE0" | ||
24 | depends on ALLOW_EDIT_AUTO | ||
25 | |||
26 | config KERNEL_BASE_ADDR | ||
27 | hex "Physical address where Linux Kernel is" | ||
28 | default "0x90000000" | ||
29 | help | ||
30 | BASE Address for kernel | ||
31 | |||
32 | config XILINX_MICROBLAZE0_FAMILY | ||
33 | string "Targetted FPGA family" if ALLOW_EDIT_AUTO | ||
34 | default "virtex5" | ||
35 | |||
36 | config XILINX_MICROBLAZE0_USE_MSR_INSTR | ||
37 | int "USE_MSR_INSTR range (0:1)" if ALLOW_EDIT_AUTO | ||
38 | default 1 | ||
39 | |||
40 | config XILINX_MICROBLAZE0_USE_PCMP_INSTR | ||
41 | int "USE_PCMP_INSTR range (0:1)" if ALLOW_EDIT_AUTO | ||
42 | default 1 | ||
43 | |||
44 | config XILINX_MICROBLAZE0_USE_BARREL | ||
45 | int "USE_BARREL range (0:1)" if ALLOW_EDIT_AUTO | ||
46 | default 1 | ||
47 | |||
48 | config XILINX_MICROBLAZE0_USE_DIV | ||
49 | int "USE_DIV range (0:1)" if ALLOW_EDIT_AUTO | ||
50 | default 1 | ||
51 | |||
52 | config XILINX_MICROBLAZE0_USE_HW_MUL | ||
53 | int "USE_HW_MUL values (0=NONE, 1=MUL32, 2=MUL64)" if ALLOW_EDIT_AUTO | ||
54 | default 2 | ||
55 | |||
56 | config XILINX_MICROBLAZE0_USE_FPU | ||
57 | int "USE_FPU values (0=NONE, 1=BASIC, 2=EXTENDED)" if ALLOW_EDIT_AUTO | ||
58 | default 2 | ||
59 | |||
60 | config XILINX_MICROBLAZE0_HW_VER | ||
61 | string "Core version number" if ALLOW_EDIT_AUTO | ||
62 | default 7.10.d | ||