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 |
Jonas Bonn | b4c4c6e | 2012-04-06 12:52:54 +0200 | [diff] [blame] | 10 | select IRQ_DOMAIN |
Marc Zyngier | d1f6f28 | 2014-08-26 11:03:19 +0100 | [diff] [blame] | 11 | select HANDLE_DOMAIN_IRQ |
Jonas Bonn | f8c4a27 | 2011-06-04 21:52:05 +0300 | [diff] [blame] | 12 | select HAVE_MEMBLOCK |
Jonas Bonn | d4cb776 | 2013-02-28 06:55:22 +0100 | [diff] [blame] | 13 | select ARCH_REQUIRE_GPIOLIB |
Jonas Bonn | f8c4a27 | 2011-06-04 21:52:05 +0300 | [diff] [blame] | 14 | select HAVE_ARCH_TRACEHOOK |
Jonas Bonn | f8c4a27 | 2011-06-04 21:52:05 +0300 | [diff] [blame] | 15 | select GENERIC_IRQ_CHIP |
| 16 | select GENERIC_IRQ_PROBE |
| 17 | select GENERIC_IRQ_SHOW |
| 18 | select GENERIC_IOMAP |
Ben Hutchings | 9f13a1f | 2012-01-10 03:04:32 +0000 | [diff] [blame] | 19 | select GENERIC_CPU_DEVICES |
Andrew Morton | 04ea1e9 | 2015-07-17 16:23:28 -0700 | [diff] [blame] | 20 | select HAVE_UID16 |
Richard Weinberger | 0662d33 | 2012-03-02 01:55:11 +0100 | [diff] [blame] | 21 | select GENERIC_ATOMIC64 |
Anna-Maria Gleixner | 5bf8f6b | 2012-05-18 16:45:51 +0000 | [diff] [blame] | 22 | select GENERIC_CLOCKEVENTS |
Jonas Bonn | 603d663 | 2012-05-25 08:24:49 +0200 | [diff] [blame] | 23 | select GENERIC_STRNCPY_FROM_USER |
Jonas Bonn | b48b2c3 | 2012-05-27 10:25:47 +0200 | [diff] [blame] | 24 | select GENERIC_STRNLEN_USER |
David Howells | 786d35d | 2012-09-28 14:31:03 +0930 | [diff] [blame] | 25 | select MODULES_USE_ELF_RELA |
Dave Hansen | d1a1dc0 | 2013-07-01 13:04:42 -0700 | [diff] [blame] | 26 | select HAVE_DEBUG_STACKOVERFLOW |
Stefan Kristiansson | 4db8e6d | 2014-05-26 23:31:42 +0300 | [diff] [blame] | 27 | select OR1K_PIC |
Zhaoxiu Zeng | fff7fb0 | 2016-05-20 17:03:57 -0700 | [diff] [blame] | 28 | select CPU_NO_EFFICIENT_FFS if !OPENRISC_HAVE_INST_FF1 |
Jonas Bonn | f8c4a27 | 2011-06-04 21:52:05 +0300 | [diff] [blame] | 29 | |
| 30 | config MMU |
| 31 | def_bool y |
| 32 | |
Jonas Bonn | f8c4a27 | 2011-06-04 21:52:05 +0300 | [diff] [blame] | 33 | config RWSEM_GENERIC_SPINLOCK |
| 34 | def_bool y |
| 35 | |
| 36 | config RWSEM_XCHGADD_ALGORITHM |
| 37 | def_bool n |
| 38 | |
| 39 | config GENERIC_HWEIGHT |
| 40 | def_bool y |
| 41 | |
Uwe Kleine-König | ce816fa | 2014-04-07 15:39:19 -0700 | [diff] [blame] | 42 | config NO_IOPORT_MAP |
Jonas Bonn | f8c4a27 | 2011-06-04 21:52:05 +0300 | [diff] [blame] | 43 | def_bool y |
| 44 | |
Jonas Bonn | f8c4a27 | 2011-06-04 21:52:05 +0300 | [diff] [blame] | 45 | config TRACE_IRQFLAGS_SUPPORT |
| 46 | def_bool y |
| 47 | |
| 48 | # For now, use generic checksum functions |
| 49 | #These can be reimplemented in assembly later if so inclined |
| 50 | config GENERIC_CSUM |
| 51 | def_bool y |
| 52 | |
Jonas Bonn | f8c4a27 | 2011-06-04 21:52:05 +0300 | [diff] [blame] | 53 | source "init/Kconfig" |
| 54 | |
Chen Gang | 57a1a19 | 2013-08-13 16:01:02 -0700 | [diff] [blame] | 55 | source "kernel/Kconfig.freezer" |
Jonas Bonn | f8c4a27 | 2011-06-04 21:52:05 +0300 | [diff] [blame] | 56 | |
| 57 | menu "Processor type and features" |
| 58 | |
| 59 | choice |
| 60 | prompt "Subarchitecture" |
| 61 | default OR1K_1200 |
| 62 | |
| 63 | config OR1K_1200 |
| 64 | bool "OR1200" |
| 65 | help |
| 66 | Generic OpenRISC 1200 architecture |
| 67 | |
| 68 | endchoice |
| 69 | |
| 70 | config OPENRISC_BUILTIN_DTB |
| 71 | string "Builtin DTB" |
| 72 | default "" |
| 73 | |
| 74 | menu "Class II Instructions" |
| 75 | |
| 76 | config OPENRISC_HAVE_INST_FF1 |
| 77 | bool "Have instruction l.ff1" |
| 78 | default y |
| 79 | help |
| 80 | Select this if your implementation has the Class II instruction l.ff1 |
| 81 | |
| 82 | config OPENRISC_HAVE_INST_FL1 |
| 83 | bool "Have instruction l.fl1" |
| 84 | default y |
| 85 | help |
| 86 | Select this if your implementation has the Class II instruction l.fl1 |
| 87 | |
| 88 | config OPENRISC_HAVE_INST_MUL |
| 89 | bool "Have instruction l.mul for hardware multiply" |
| 90 | default y |
| 91 | help |
| 92 | Select this if your implementation has a hardware multiply instruction |
| 93 | |
| 94 | config OPENRISC_HAVE_INST_DIV |
| 95 | bool "Have instruction l.div for hardware divide" |
| 96 | default y |
| 97 | help |
| 98 | Select this if your implementation has a hardware divide instruction |
| 99 | endmenu |
| 100 | |
| 101 | |
Jonas Bonn | f8c4a27 | 2011-06-04 21:52:05 +0300 | [diff] [blame] | 102 | source kernel/Kconfig.hz |
| 103 | source kernel/Kconfig.preempt |
| 104 | source "mm/Kconfig" |
| 105 | |
| 106 | config OPENRISC_NO_SPR_SR_DSX |
| 107 | bool "use SPR_SR_DSX software emulation" if OR1K_1200 |
| 108 | default y |
| 109 | help |
| 110 | SPR_SR_DSX bit is status register bit indicating whether |
| 111 | the last exception has happened in delay slot. |
| 112 | |
| 113 | OpenRISC architecture makes it optional to have it implemented |
| 114 | in hardware and the OR1200 does not have it. |
| 115 | |
| 116 | Say N here if you know that your OpenRISC processor has |
| 117 | SPR_SR_DSX bit implemented. Say Y if you are unsure. |
| 118 | |
| 119 | config CMDLINE |
| 120 | string "Default kernel command string" |
| 121 | default "" |
| 122 | help |
| 123 | On some architectures there is currently no way for the boot loader |
| 124 | to pass arguments to the kernel. For these architectures, you should |
| 125 | supply some command-line options at build time by entering them |
| 126 | here. |
| 127 | |
| 128 | menu "Debugging options" |
| 129 | |
Jonas Bonn | f8c4a27 | 2011-06-04 21:52:05 +0300 | [diff] [blame] | 130 | config JUMP_UPON_UNHANDLED_EXCEPTION |
| 131 | bool "Try to die gracefully" |
| 132 | default y |
| 133 | help |
| 134 | Now this puts kernel into infinite loop after first oops. Till |
| 135 | your kernel crashes this doesn't have any influence. |
| 136 | |
| 137 | Say Y if you are unsure. |
| 138 | |
Jonas Bonn | f8c4a27 | 2011-06-04 21:52:05 +0300 | [diff] [blame] | 139 | config OPENRISC_ESR_EXCEPTION_BUG_CHECK |
| 140 | bool "Check for possible ESR exception bug" |
| 141 | default n |
| 142 | help |
| 143 | This option enables some checks that might expose some problems |
| 144 | in kernel. |
| 145 | |
| 146 | Say N if you are unsure. |
| 147 | |
| 148 | endmenu |
| 149 | |
| 150 | endmenu |
| 151 | |
| 152 | menu "Executable file formats" |
| 153 | |
| 154 | source "fs/Kconfig.binfmt" |
| 155 | |
| 156 | endmenu |
| 157 | |
| 158 | source "net/Kconfig" |
| 159 | |
| 160 | source "drivers/Kconfig" |
| 161 | |
| 162 | source "fs/Kconfig" |
| 163 | |
| 164 | source "security/Kconfig" |
| 165 | |
| 166 | source "crypto/Kconfig" |
| 167 | |
| 168 | source "lib/Kconfig" |
| 169 | |
| 170 | menu "Kernel hacking" |
| 171 | |
| 172 | source "lib/Kconfig.debug" |
| 173 | |
| 174 | endmenu |