Jonas Bonn | f8c4a27 | 2011-06-04 21:52:05 +0300 | [diff] [blame] | 1 | # |
| 2 | # For a description of the syntax of this configuration file, |
Paul Bolle | 395cf96 | 2011-08-15 02:02:26 +0200 | [diff] [blame] | 3 | # see Documentation/kbuild/kconfig-language.txt. |
Jonas Bonn | f8c4a27 | 2011-06-04 21:52:05 +0300 | [diff] [blame] | 4 | # |
| 5 | |
| 6 | config OPENRISC |
| 7 | def_bool y |
| 8 | select OF |
| 9 | select OF_EARLY_FLATTREE |
| 10 | select HAVE_MEMBLOCK |
| 11 | select ARCH_WANT_OPTIONAL_GPIOLIB |
| 12 | select HAVE_ARCH_TRACEHOOK |
| 13 | select HAVE_GENERIC_HARDIRQS |
| 14 | select GENERIC_IRQ_CHIP |
| 15 | select GENERIC_IRQ_PROBE |
| 16 | select GENERIC_IRQ_SHOW |
| 17 | select GENERIC_IOMAP |
Ben Hutchings | 9f13a1f | 2012-01-10 03:04:32 +0000 | [diff] [blame] | 18 | select GENERIC_CPU_DEVICES |
Richard Weinberger | 0662d33 | 2012-03-02 01:55:11 +0100 | [diff] [blame] | 19 | select GENERIC_ATOMIC64 |
Anna-Maria Gleixner | 5bf8f6b | 2012-05-18 16:45:51 +0000 | [diff] [blame^] | 20 | select GENERIC_CLOCKEVENTS |
Jonas Bonn | f8c4a27 | 2011-06-04 21:52:05 +0300 | [diff] [blame] | 21 | |
| 22 | config MMU |
| 23 | def_bool y |
| 24 | |
Jonas Bonn | f8c4a27 | 2011-06-04 21:52:05 +0300 | [diff] [blame] | 25 | config SYMBOL_PREFIX |
| 26 | string |
| 27 | default "" |
| 28 | |
| 29 | config HAVE_DMA_ATTRS |
| 30 | def_bool y |
| 31 | |
| 32 | config UID16 |
| 33 | def_bool y |
| 34 | |
| 35 | config RWSEM_GENERIC_SPINLOCK |
| 36 | def_bool y |
| 37 | |
| 38 | config RWSEM_XCHGADD_ALGORITHM |
| 39 | def_bool n |
| 40 | |
| 41 | config GENERIC_HWEIGHT |
| 42 | def_bool y |
| 43 | |
Jonas Bonn | f8c4a27 | 2011-06-04 21:52:05 +0300 | [diff] [blame] | 44 | config NO_IOPORT |
| 45 | def_bool y |
| 46 | |
| 47 | config GENERIC_GPIO |
| 48 | def_bool y |
| 49 | |
Jonas Bonn | f8c4a27 | 2011-06-04 21:52:05 +0300 | [diff] [blame] | 50 | config TRACE_IRQFLAGS_SUPPORT |
| 51 | def_bool y |
| 52 | |
| 53 | # For now, use generic checksum functions |
| 54 | #These can be reimplemented in assembly later if so inclined |
| 55 | config GENERIC_CSUM |
| 56 | def_bool y |
| 57 | |
| 58 | config GENERIC_FIND_NEXT_BIT |
| 59 | def_bool y |
| 60 | |
| 61 | source "init/Kconfig" |
| 62 | |
| 63 | |
| 64 | menu "Processor type and features" |
| 65 | |
| 66 | choice |
| 67 | prompt "Subarchitecture" |
| 68 | default OR1K_1200 |
| 69 | |
| 70 | config OR1K_1200 |
| 71 | bool "OR1200" |
| 72 | help |
| 73 | Generic OpenRISC 1200 architecture |
| 74 | |
| 75 | endchoice |
| 76 | |
| 77 | config OPENRISC_BUILTIN_DTB |
| 78 | string "Builtin DTB" |
| 79 | default "" |
| 80 | |
| 81 | menu "Class II Instructions" |
| 82 | |
| 83 | config OPENRISC_HAVE_INST_FF1 |
| 84 | bool "Have instruction l.ff1" |
| 85 | default y |
| 86 | help |
| 87 | Select this if your implementation has the Class II instruction l.ff1 |
| 88 | |
| 89 | config OPENRISC_HAVE_INST_FL1 |
| 90 | bool "Have instruction l.fl1" |
| 91 | default y |
| 92 | help |
| 93 | Select this if your implementation has the Class II instruction l.fl1 |
| 94 | |
| 95 | config OPENRISC_HAVE_INST_MUL |
| 96 | bool "Have instruction l.mul for hardware multiply" |
| 97 | default y |
| 98 | help |
| 99 | Select this if your implementation has a hardware multiply instruction |
| 100 | |
| 101 | config OPENRISC_HAVE_INST_DIV |
| 102 | bool "Have instruction l.div for hardware divide" |
| 103 | default y |
| 104 | help |
| 105 | Select this if your implementation has a hardware divide instruction |
| 106 | endmenu |
| 107 | |
| 108 | |
| 109 | source "kernel/time/Kconfig" |
| 110 | source kernel/Kconfig.hz |
| 111 | source kernel/Kconfig.preempt |
| 112 | source "mm/Kconfig" |
| 113 | |
| 114 | config OPENRISC_NO_SPR_SR_DSX |
| 115 | bool "use SPR_SR_DSX software emulation" if OR1K_1200 |
| 116 | default y |
| 117 | help |
| 118 | SPR_SR_DSX bit is status register bit indicating whether |
| 119 | the last exception has happened in delay slot. |
| 120 | |
| 121 | OpenRISC architecture makes it optional to have it implemented |
| 122 | in hardware and the OR1200 does not have it. |
| 123 | |
| 124 | Say N here if you know that your OpenRISC processor has |
| 125 | SPR_SR_DSX bit implemented. Say Y if you are unsure. |
| 126 | |
| 127 | config CMDLINE |
| 128 | string "Default kernel command string" |
| 129 | default "" |
| 130 | help |
| 131 | On some architectures there is currently no way for the boot loader |
| 132 | to pass arguments to the kernel. For these architectures, you should |
| 133 | supply some command-line options at build time by entering them |
| 134 | here. |
| 135 | |
| 136 | menu "Debugging options" |
| 137 | |
| 138 | config DEBUG_STACKOVERFLOW |
| 139 | bool "Check for kernel stack overflow" |
| 140 | default y |
| 141 | help |
| 142 | Make extra checks for space avaliable on stack in some |
| 143 | critical functions. This will cause kernel to run a bit slower, |
| 144 | but will catch most of kernel stack overruns and exit gracefuly. |
| 145 | |
| 146 | Say Y if you are unsure. |
| 147 | |
| 148 | config JUMP_UPON_UNHANDLED_EXCEPTION |
| 149 | bool "Try to die gracefully" |
| 150 | default y |
| 151 | help |
| 152 | Now this puts kernel into infinite loop after first oops. Till |
| 153 | your kernel crashes this doesn't have any influence. |
| 154 | |
| 155 | Say Y if you are unsure. |
| 156 | |
Jonas Bonn | f8c4a27 | 2011-06-04 21:52:05 +0300 | [diff] [blame] | 157 | config OPENRISC_ESR_EXCEPTION_BUG_CHECK |
| 158 | bool "Check for possible ESR exception bug" |
| 159 | default n |
| 160 | help |
| 161 | This option enables some checks that might expose some problems |
| 162 | in kernel. |
| 163 | |
| 164 | Say N if you are unsure. |
| 165 | |
| 166 | endmenu |
| 167 | |
| 168 | endmenu |
| 169 | |
| 170 | menu "Executable file formats" |
| 171 | |
| 172 | source "fs/Kconfig.binfmt" |
| 173 | |
| 174 | endmenu |
| 175 | |
| 176 | source "net/Kconfig" |
| 177 | |
| 178 | source "drivers/Kconfig" |
| 179 | |
| 180 | source "fs/Kconfig" |
| 181 | |
| 182 | source "security/Kconfig" |
| 183 | |
| 184 | source "crypto/Kconfig" |
| 185 | |
| 186 | source "lib/Kconfig" |
| 187 | |
| 188 | menu "Kernel hacking" |
| 189 | |
| 190 | source "lib/Kconfig.debug" |
| 191 | |
| 192 | endmenu |