2017-11-01 15:07:57 +01:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
2011-06-04 21:52:05 +03:00
|
|
|
#
|
|
|
|
|
# For a description of the syntax of this configuration file,
|
2011-08-15 02:02:26 +02:00
|
|
|
# see Documentation/kbuild/kconfig-language.txt.
|
2011-06-04 21:52:05 +03:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
config OPENRISC
|
|
|
|
|
def_bool y
|
2018-07-19 06:02:32 -07:00
|
|
|
select ARCH_HAS_SYNC_DMA_FOR_DEVICE
|
2018-09-08 11:22:43 +02:00
|
|
|
select DMA_DIRECT_OPS
|
2011-06-04 21:52:05 +03:00
|
|
|
select OF
|
|
|
|
|
select OF_EARLY_FLATTREE
|
2012-04-06 12:52:54 +02:00
|
|
|
select IRQ_DOMAIN
|
2014-08-26 11:03:19 +01:00
|
|
|
select HANDLE_DOMAIN_IRQ
|
2016-04-19 13:15:43 +02:00
|
|
|
select GPIOLIB
|
2011-06-04 21:52:05 +03:00
|
|
|
select HAVE_ARCH_TRACEHOOK
|
2012-05-09 23:19:44 +02:00
|
|
|
select SPARSE_IRQ
|
2011-06-04 21:52:05 +03:00
|
|
|
select GENERIC_IRQ_CHIP
|
|
|
|
|
select GENERIC_IRQ_PROBE
|
|
|
|
|
select GENERIC_IRQ_SHOW
|
|
|
|
|
select GENERIC_IOMAP
|
2012-01-10 03:04:32 +00:00
|
|
|
select GENERIC_CPU_DEVICES
|
2015-07-17 16:23:28 -07:00
|
|
|
select HAVE_UID16
|
2012-03-02 01:55:11 +01:00
|
|
|
select GENERIC_ATOMIC64
|
2012-05-18 16:45:51 +00:00
|
|
|
select GENERIC_CLOCKEVENTS
|
2014-05-11 21:49:34 +03:00
|
|
|
select GENERIC_CLOCKEVENTS_BROADCAST
|
2012-05-25 08:24:49 +02:00
|
|
|
select GENERIC_STRNCPY_FROM_USER
|
2012-05-27 10:25:47 +02:00
|
|
|
select GENERIC_STRNLEN_USER
|
2014-05-11 21:49:34 +03:00
|
|
|
select GENERIC_SMP_IDLE_THREAD
|
2012-09-28 14:31:03 +09:30
|
|
|
select MODULES_USE_ELF_RELA
|
2013-07-01 13:04:42 -07:00
|
|
|
select HAVE_DEBUG_STACKOVERFLOW
|
2014-05-26 23:31:42 +03:00
|
|
|
select OR1K_PIC
|
2016-05-20 17:03:57 -07:00
|
|
|
select CPU_NO_EFFICIENT_FFS if !OPENRISC_HAVE_INST_FF1
|
2017-03-24 07:13:03 +09:00
|
|
|
select ARCH_USE_QUEUED_SPINLOCKS
|
|
|
|
|
select ARCH_USE_QUEUED_RWLOCKS
|
2017-10-30 21:38:35 +09:00
|
|
|
select OMPIC if SMP
|
2017-07-24 21:44:35 +09:00
|
|
|
select ARCH_WANT_FRAME_POINTERS
|
2018-06-22 10:01:25 -07:00
|
|
|
select GENERIC_IRQ_MULTI_HANDLER
|
2011-06-04 21:52:05 +03:00
|
|
|
|
2017-09-08 16:14:22 -07:00
|
|
|
config CPU_BIG_ENDIAN
|
|
|
|
|
def_bool y
|
|
|
|
|
|
2011-06-04 21:52:05 +03:00
|
|
|
config MMU
|
|
|
|
|
def_bool y
|
|
|
|
|
|
|
|
|
|
config RWSEM_GENERIC_SPINLOCK
|
|
|
|
|
def_bool y
|
|
|
|
|
|
|
|
|
|
config RWSEM_XCHGADD_ALGORITHM
|
|
|
|
|
def_bool n
|
|
|
|
|
|
|
|
|
|
config GENERIC_HWEIGHT
|
|
|
|
|
def_bool y
|
|
|
|
|
|
2014-04-07 15:39:19 -07:00
|
|
|
config NO_IOPORT_MAP
|
2011-06-04 21:52:05 +03:00
|
|
|
def_bool y
|
|
|
|
|
|
|
|
|
|
config TRACE_IRQFLAGS_SUPPORT
|
|
|
|
|
def_bool y
|
|
|
|
|
|
|
|
|
|
# For now, use generic checksum functions
|
|
|
|
|
#These can be reimplemented in assembly later if so inclined
|
|
|
|
|
config GENERIC_CSUM
|
|
|
|
|
def_bool y
|
|
|
|
|
|
2017-07-24 21:44:35 +09:00
|
|
|
config STACKTRACE_SUPPORT
|
|
|
|
|
def_bool y
|
|
|
|
|
|
2017-07-24 21:55:16 +09:00
|
|
|
config LOCKDEP_SUPPORT
|
|
|
|
|
def_bool y
|
|
|
|
|
|
2011-06-04 21:52:05 +03:00
|
|
|
menu "Processor type and features"
|
|
|
|
|
|
|
|
|
|
choice
|
|
|
|
|
prompt "Subarchitecture"
|
|
|
|
|
default OR1K_1200
|
|
|
|
|
|
|
|
|
|
config OR1K_1200
|
|
|
|
|
bool "OR1200"
|
|
|
|
|
help
|
|
|
|
|
Generic OpenRISC 1200 architecture
|
|
|
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
|
2015-11-04 17:26:10 +01:00
|
|
|
config DCACHE_WRITETHROUGH
|
|
|
|
|
bool "Have write through data caches"
|
|
|
|
|
default n
|
|
|
|
|
help
|
|
|
|
|
Select this if your implementation features write through data caches.
|
|
|
|
|
Selecting 'N' here will allow the kernel to force flushing of data
|
|
|
|
|
caches at relevant times. Most OpenRISC implementations support write-
|
|
|
|
|
through data caches.
|
|
|
|
|
|
|
|
|
|
If unsure say N here
|
|
|
|
|
|
2011-06-04 21:52:05 +03:00
|
|
|
config OPENRISC_BUILTIN_DTB
|
|
|
|
|
string "Builtin DTB"
|
|
|
|
|
default ""
|
|
|
|
|
|
|
|
|
|
menu "Class II Instructions"
|
|
|
|
|
|
|
|
|
|
config OPENRISC_HAVE_INST_FF1
|
|
|
|
|
bool "Have instruction l.ff1"
|
|
|
|
|
default y
|
|
|
|
|
help
|
|
|
|
|
Select this if your implementation has the Class II instruction l.ff1
|
|
|
|
|
|
|
|
|
|
config OPENRISC_HAVE_INST_FL1
|
|
|
|
|
bool "Have instruction l.fl1"
|
|
|
|
|
default y
|
|
|
|
|
help
|
|
|
|
|
Select this if your implementation has the Class II instruction l.fl1
|
|
|
|
|
|
|
|
|
|
config OPENRISC_HAVE_INST_MUL
|
|
|
|
|
bool "Have instruction l.mul for hardware multiply"
|
|
|
|
|
default y
|
|
|
|
|
help
|
|
|
|
|
Select this if your implementation has a hardware multiply instruction
|
|
|
|
|
|
|
|
|
|
config OPENRISC_HAVE_INST_DIV
|
|
|
|
|
bool "Have instruction l.div for hardware divide"
|
|
|
|
|
default y
|
|
|
|
|
help
|
|
|
|
|
Select this if your implementation has a hardware divide instruction
|
|
|
|
|
endmenu
|
|
|
|
|
|
2016-09-24 22:20:42 +09:00
|
|
|
config NR_CPUS
|
2014-05-11 21:49:34 +03:00
|
|
|
int "Maximum number of CPUs (2-32)"
|
|
|
|
|
range 2 32
|
|
|
|
|
depends on SMP
|
|
|
|
|
default "2"
|
|
|
|
|
|
|
|
|
|
config SMP
|
|
|
|
|
bool "Symmetric Multi-Processing support"
|
|
|
|
|
help
|
|
|
|
|
This enables support for systems with more than one CPU. If you have
|
|
|
|
|
a system with only one CPU, say N. If you have a system with more
|
|
|
|
|
than one CPU, say Y.
|
|
|
|
|
|
|
|
|
|
If you don't know what to do here, say N.
|
2011-06-04 21:52:05 +03:00
|
|
|
|
|
|
|
|
source kernel/Kconfig.hz
|
|
|
|
|
|
|
|
|
|
config OPENRISC_NO_SPR_SR_DSX
|
|
|
|
|
bool "use SPR_SR_DSX software emulation" if OR1K_1200
|
|
|
|
|
default y
|
|
|
|
|
help
|
|
|
|
|
SPR_SR_DSX bit is status register bit indicating whether
|
|
|
|
|
the last exception has happened in delay slot.
|
|
|
|
|
|
|
|
|
|
OpenRISC architecture makes it optional to have it implemented
|
|
|
|
|
in hardware and the OR1200 does not have it.
|
|
|
|
|
|
|
|
|
|
Say N here if you know that your OpenRISC processor has
|
|
|
|
|
SPR_SR_DSX bit implemented. Say Y if you are unsure.
|
|
|
|
|
|
2014-05-11 12:08:37 +03:00
|
|
|
config OPENRISC_HAVE_SHADOW_GPRS
|
|
|
|
|
bool "Support for shadow gpr files" if !SMP
|
|
|
|
|
default y if SMP
|
|
|
|
|
help
|
|
|
|
|
Say Y here if your OpenRISC processor features shadowed
|
|
|
|
|
register files. They will in such case be used as a
|
|
|
|
|
scratch reg storage on exception entry.
|
|
|
|
|
|
|
|
|
|
On SMP systems, this feature is mandatory.
|
|
|
|
|
On a unicore system it's safe to say N here if you are unsure.
|
|
|
|
|
|
2011-06-04 21:52:05 +03:00
|
|
|
config CMDLINE
|
|
|
|
|
string "Default kernel command string"
|
|
|
|
|
default ""
|
|
|
|
|
help
|
|
|
|
|
On some architectures there is currently no way for the boot loader
|
|
|
|
|
to pass arguments to the kernel. For these architectures, you should
|
|
|
|
|
supply some command-line options at build time by entering them
|
|
|
|
|
here.
|
|
|
|
|
|
|
|
|
|
menu "Debugging options"
|
|
|
|
|
|
|
|
|
|
config JUMP_UPON_UNHANDLED_EXCEPTION
|
|
|
|
|
bool "Try to die gracefully"
|
|
|
|
|
default y
|
|
|
|
|
help
|
|
|
|
|
Now this puts kernel into infinite loop after first oops. Till
|
|
|
|
|
your kernel crashes this doesn't have any influence.
|
|
|
|
|
|
|
|
|
|
Say Y if you are unsure.
|
|
|
|
|
|
|
|
|
|
config OPENRISC_ESR_EXCEPTION_BUG_CHECK
|
|
|
|
|
bool "Check for possible ESR exception bug"
|
|
|
|
|
default n
|
|
|
|
|
help
|
|
|
|
|
This option enables some checks that might expose some problems
|
|
|
|
|
in kernel.
|
|
|
|
|
|
|
|
|
|
Say N if you are unsure.
|
|
|
|
|
|
|
|
|
|
endmenu
|
|
|
|
|
|
|
|
|
|
endmenu
|