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 /arch/microblaze/platform | |
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>
Diffstat (limited to 'arch/microblaze/platform')
-rw-r--r-- | arch/microblaze/platform/Kconfig.platform | 85 | ||||
-rw-r--r-- | arch/microblaze/platform/generic/Kconfig.auto | 62 |
2 files changed, 147 insertions, 0 deletions
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 | ||