2013-01-18 09:42:20 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License version 2 as
|
|
|
|
# published by the Free Software Foundation.
|
|
|
|
#
|
|
|
|
|
|
|
|
config ARC
|
|
|
|
def_bool y
|
2013-11-15 06:38:05 +00:00
|
|
|
select BUILDTIME_EXTABLE_SORT
|
2013-01-18 09:42:18 +00:00
|
|
|
select CLONE_BACKWARDS
|
2013-01-18 09:42:20 +00:00
|
|
|
# ARC Busybox based initramfs absolutely relies on DEVTMPFS for /dev
|
|
|
|
select DEVTMPFS if !INITRAMFS_SOURCE=""
|
|
|
|
select GENERIC_ATOMIC64
|
|
|
|
select GENERIC_CLOCKEVENTS
|
|
|
|
select GENERIC_FIND_FIRST_BIT
|
|
|
|
# for now, we don't need GENERIC_IRQ_PROBE, CONFIG_GENERIC_IRQ_CHIP
|
|
|
|
select GENERIC_IRQ_SHOW
|
|
|
|
select GENERIC_PENDING_IRQ if SMP
|
|
|
|
select GENERIC_SMP_IDLE_THREAD
|
2013-01-18 09:42:24 +00:00
|
|
|
select HAVE_ARCH_KGDB
|
2013-01-18 09:42:22 +00:00
|
|
|
select HAVE_ARCH_TRACEHOOK
|
2013-01-22 11:18:45 +00:00
|
|
|
select HAVE_IOREMAP_PROT
|
2013-01-22 11:33:59 +00:00
|
|
|
select HAVE_KPROBES
|
|
|
|
select HAVE_KRETPROBES
|
2013-01-18 09:42:20 +00:00
|
|
|
select HAVE_MEMBLOCK
|
2013-01-22 11:33:19 +00:00
|
|
|
select HAVE_MOD_ARCH_SPECIFIC if ARC_DW2_UNWIND
|
2013-01-22 11:32:38 +00:00
|
|
|
select HAVE_OPROFILE
|
2013-01-18 09:42:24 +00:00
|
|
|
select HAVE_PERF_EVENTS
|
2013-01-22 11:30:52 +00:00
|
|
|
select IRQ_DOMAIN
|
2013-01-18 09:42:20 +00:00
|
|
|
select MODULES_USE_ELF_RELA
|
2013-01-18 09:42:20 +00:00
|
|
|
select NO_BOOTMEM
|
2013-01-22 11:30:52 +00:00
|
|
|
select OF
|
|
|
|
select OF_EARLY_FLATTREE
|
2013-01-18 09:42:24 +00:00
|
|
|
select PERF_USE_VMALLOC
|
2013-07-01 20:04:42 +00:00
|
|
|
select HAVE_DEBUG_STACKOVERFLOW
|
2013-01-18 09:42:20 +00:00
|
|
|
|
2013-09-06 08:48:17 +00:00
|
|
|
config TRACE_IRQFLAGS_SUPPORT
|
|
|
|
def_bool y
|
|
|
|
|
|
|
|
config LOCKDEP_SUPPORT
|
|
|
|
def_bool y
|
|
|
|
|
2013-01-18 09:42:20 +00:00
|
|
|
config SCHED_OMIT_FRAME_POINTER
|
|
|
|
def_bool y
|
|
|
|
|
|
|
|
config GENERIC_CSUM
|
|
|
|
def_bool y
|
|
|
|
|
|
|
|
config RWSEM_GENERIC_SPINLOCK
|
|
|
|
def_bool y
|
|
|
|
|
|
|
|
config ARCH_FLATMEM_ENABLE
|
|
|
|
def_bool y
|
|
|
|
|
|
|
|
config MMU
|
|
|
|
def_bool y
|
|
|
|
|
2014-04-07 22:39:19 +00:00
|
|
|
config NO_IOPORT_MAP
|
2013-01-18 09:42:20 +00:00
|
|
|
def_bool y
|
|
|
|
|
|
|
|
config GENERIC_CALIBRATE_DELAY
|
|
|
|
def_bool y
|
|
|
|
|
|
|
|
config GENERIC_HWEIGHT
|
|
|
|
def_bool y
|
|
|
|
|
2013-01-18 09:42:23 +00:00
|
|
|
config STACKTRACE_SUPPORT
|
|
|
|
def_bool y
|
|
|
|
select STACKTRACE
|
|
|
|
|
2013-01-18 09:42:20 +00:00
|
|
|
config HAVE_LATENCYTOP_SUPPORT
|
|
|
|
def_bool y
|
|
|
|
|
|
|
|
config NO_DMA
|
|
|
|
def_bool n
|
|
|
|
|
|
|
|
source "init/Kconfig"
|
|
|
|
source "kernel/Kconfig.freezer"
|
|
|
|
|
|
|
|
menu "ARC Architecture Configuration"
|
|
|
|
|
2013-01-22 11:21:50 +00:00
|
|
|
menu "ARC Platform/SoC/Board"
|
2013-01-18 09:42:20 +00:00
|
|
|
|
2013-01-22 11:21:50 +00:00
|
|
|
source "arch/arc/plat-arcfpga/Kconfig"
|
2013-04-12 06:40:59 +00:00
|
|
|
source "arch/arc/plat-tb10x/Kconfig"
|
2013-01-18 09:42:20 +00:00
|
|
|
#New platform adds here
|
2013-01-22 11:21:50 +00:00
|
|
|
|
2013-01-18 09:42:25 +00:00
|
|
|
endmenu
|
2013-01-18 09:42:20 +00:00
|
|
|
|
|
|
|
menu "ARC CPU Configuration"
|
|
|
|
|
|
|
|
choice
|
|
|
|
prompt "ARC Core"
|
|
|
|
default ARC_CPU_770
|
|
|
|
|
|
|
|
config ARC_CPU_750D
|
|
|
|
bool "ARC750D"
|
|
|
|
help
|
|
|
|
Support for ARC750 core
|
|
|
|
|
|
|
|
config ARC_CPU_770
|
|
|
|
bool "ARC770"
|
|
|
|
select ARC_CPU_REL_4_10
|
|
|
|
help
|
|
|
|
Support for ARC770 core introduced with Rel 4.10 (Summer 2011)
|
|
|
|
This core has a bunch of cool new features:
|
|
|
|
-MMU-v3: Variable Page Sz (4k, 8k, 16k), bigger J-TLB (128x4)
|
|
|
|
Shared Address Spaces (for sharing TLB entires in MMU)
|
|
|
|
-Caches: New Prog Model, Region Flush
|
|
|
|
-Insns: endian swap, load-locked/store-conditional, time-stamp-ctr
|
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
config CPU_BIG_ENDIAN
|
|
|
|
bool "Enable Big Endian Mode"
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
Build kernel for Big Endian Mode of ARC CPU
|
|
|
|
|
2013-01-22 11:23:57 +00:00
|
|
|
# If a platform can't work with 0x8000_0000 based dma_addr_t
|
|
|
|
config ARC_PLAT_NEEDS_CPU_TO_DMA
|
|
|
|
bool
|
|
|
|
|
2013-01-18 09:42:23 +00:00
|
|
|
config SMP
|
|
|
|
bool "Symmetric Multi-Processing (Incomplete)"
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
This enables support for systems with more than one CPU. If you have
|
2014-01-23 23:55:29 +00:00
|
|
|
a system with only one CPU, say N. If you have a system with more
|
|
|
|
than one CPU, say Y.
|
2013-01-18 09:42:23 +00:00
|
|
|
|
|
|
|
if SMP
|
|
|
|
|
|
|
|
config ARC_HAS_COH_CACHES
|
|
|
|
def_bool n
|
|
|
|
|
|
|
|
config ARC_HAS_REENTRANT_IRQ_LV2
|
|
|
|
def_bool n
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
config NR_CPUS
|
2013-06-03 12:19:59 +00:00
|
|
|
int "Maximum number of CPUs (2-4096)"
|
|
|
|
range 2 4096
|
2013-01-18 09:42:23 +00:00
|
|
|
depends on SMP
|
|
|
|
default "2"
|
|
|
|
|
2013-01-18 09:42:20 +00:00
|
|
|
menuconfig ARC_CACHE
|
|
|
|
bool "Enable Cache Support"
|
|
|
|
default y
|
2013-01-18 09:42:23 +00:00
|
|
|
# if SMP, cache enabled ONLY if ARC implementation has cache coherency
|
|
|
|
depends on !SMP || ARC_HAS_COH_CACHES
|
2013-01-18 09:42:20 +00:00
|
|
|
|
|
|
|
if ARC_CACHE
|
|
|
|
|
|
|
|
config ARC_CACHE_LINE_SHIFT
|
|
|
|
int "Cache Line Length (as power of 2)"
|
|
|
|
range 5 7
|
|
|
|
default "6"
|
|
|
|
help
|
|
|
|
Starting with ARC700 4.9, Cache line length is configurable,
|
|
|
|
This option specifies "N", with Line-len = 2 power N
|
|
|
|
So line lengths of 32, 64, 128 are specified by 5,6,7, respectively
|
|
|
|
Linux only supports same line lengths for I and D caches.
|
|
|
|
|
|
|
|
config ARC_HAS_ICACHE
|
|
|
|
bool "Use Instruction Cache"
|
|
|
|
default y
|
|
|
|
|
|
|
|
config ARC_HAS_DCACHE
|
|
|
|
bool "Use Data Cache"
|
|
|
|
default y
|
|
|
|
|
|
|
|
config ARC_CACHE_PAGES
|
|
|
|
bool "Per Page Cache Control"
|
|
|
|
default y
|
|
|
|
depends on ARC_HAS_ICACHE || ARC_HAS_DCACHE
|
|
|
|
help
|
|
|
|
This can be used to over-ride the global I/D Cache Enable on a
|
|
|
|
per-page basis (but only for pages accessed via MMU such as
|
|
|
|
Kernel Virtual address or User Virtual Address)
|
|
|
|
TLB entries have a per-page Cache Enable Bit.
|
|
|
|
Note that Global I/D ENABLE + Per Page DISABLE works but corollary
|
|
|
|
Global DISABLE + Per Page ENABLE won't work
|
|
|
|
|
2013-05-09 16:24:51 +00:00
|
|
|
config ARC_CACHE_VIPT_ALIASING
|
|
|
|
bool "Support VIPT Aliasing D$"
|
2013-06-18 12:40:29 +00:00
|
|
|
depends on ARC_HAS_DCACHE
|
2013-05-09 16:24:51 +00:00
|
|
|
default n
|
|
|
|
|
2013-01-18 09:42:20 +00:00
|
|
|
endif #ARC_CACHE
|
|
|
|
|
2013-01-18 09:42:25 +00:00
|
|
|
config ARC_HAS_ICCM
|
|
|
|
bool "Use ICCM"
|
|
|
|
help
|
|
|
|
Single Cycle RAMS to store Fast Path Code
|
|
|
|
default n
|
|
|
|
|
|
|
|
config ARC_ICCM_SZ
|
|
|
|
int "ICCM Size in KB"
|
|
|
|
default "64"
|
|
|
|
depends on ARC_HAS_ICCM
|
|
|
|
|
|
|
|
config ARC_HAS_DCCM
|
|
|
|
bool "Use DCCM"
|
|
|
|
help
|
|
|
|
Single Cycle RAMS to store Fast Path Data
|
|
|
|
default n
|
|
|
|
|
|
|
|
config ARC_DCCM_SZ
|
|
|
|
int "DCCM Size in KB"
|
|
|
|
default "64"
|
|
|
|
depends on ARC_HAS_DCCM
|
|
|
|
|
|
|
|
config ARC_DCCM_BASE
|
|
|
|
hex "DCCM map address"
|
|
|
|
default "0xA0000000"
|
|
|
|
depends on ARC_HAS_DCCM
|
|
|
|
|
2013-01-18 09:42:20 +00:00
|
|
|
config ARC_HAS_HW_MPY
|
|
|
|
bool "Use Hardware Multiplier (Normal or Faster XMAC)"
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
Influences how gcc generates code for MPY operations.
|
|
|
|
If enabled, MPYxx insns are generated, provided by Standard/XMAC
|
|
|
|
Multipler. Otherwise software multipy lib is used
|
|
|
|
|
|
|
|
choice
|
|
|
|
prompt "ARC700 MMU Version"
|
|
|
|
default ARC_MMU_V3 if ARC_CPU_770
|
|
|
|
default ARC_MMU_V2 if ARC_CPU_750D
|
|
|
|
|
|
|
|
config ARC_MMU_V1
|
|
|
|
bool "MMU v1"
|
|
|
|
help
|
|
|
|
Orig ARC700 MMU
|
|
|
|
|
|
|
|
config ARC_MMU_V2
|
|
|
|
bool "MMU v2"
|
|
|
|
help
|
|
|
|
Fixed the deficiency of v1 - possible thrashing in memcpy sceanrio
|
|
|
|
when 2 D-TLB and 1 I-TLB entries index into same 2way set.
|
|
|
|
|
|
|
|
config ARC_MMU_V3
|
|
|
|
bool "MMU v3"
|
|
|
|
depends on ARC_CPU_770
|
|
|
|
help
|
|
|
|
Introduced with ARC700 4.10: New Features
|
|
|
|
Variable Page size (1k-16k), var JTLB size 128 x (2 or 4)
|
|
|
|
Shared Address Spaces (SASID)
|
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
|
|
|
|
choice
|
|
|
|
prompt "MMU Page Size"
|
|
|
|
default ARC_PAGE_SIZE_8K
|
|
|
|
|
|
|
|
config ARC_PAGE_SIZE_8K
|
|
|
|
bool "8KB"
|
|
|
|
help
|
|
|
|
Choose between 8k vs 16k
|
|
|
|
|
|
|
|
config ARC_PAGE_SIZE_16K
|
|
|
|
bool "16KB"
|
|
|
|
depends on ARC_MMU_V3
|
|
|
|
|
|
|
|
config ARC_PAGE_SIZE_4K
|
|
|
|
bool "4KB"
|
|
|
|
depends on ARC_MMU_V3
|
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
2013-01-18 09:42:22 +00:00
|
|
|
config ARC_COMPACT_IRQ_LEVELS
|
|
|
|
bool "ARCompact IRQ Priorities: High(2)/Low(1)"
|
|
|
|
default n
|
|
|
|
# Timer HAS to be high priority, for any other high priority config
|
|
|
|
select ARC_IRQ3_LV2
|
2013-01-18 09:42:23 +00:00
|
|
|
# if SMP, LV2 enabled ONLY if ARC implementation has LV2 re-entrancy
|
|
|
|
depends on !SMP || ARC_HAS_REENTRANT_IRQ_LV2
|
2013-01-18 09:42:22 +00:00
|
|
|
|
|
|
|
if ARC_COMPACT_IRQ_LEVELS
|
|
|
|
|
|
|
|
config ARC_IRQ3_LV2
|
|
|
|
bool
|
|
|
|
|
|
|
|
config ARC_IRQ5_LV2
|
|
|
|
bool
|
|
|
|
|
|
|
|
config ARC_IRQ6_LV2
|
|
|
|
bool
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
2013-01-18 09:42:20 +00:00
|
|
|
config ARC_FPU_SAVE_RESTORE
|
|
|
|
bool "Enable FPU state persistence across context switch"
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
Double Precision Floating Point unit had dedictaed regs which
|
|
|
|
need to be saved/restored across context-switch.
|
|
|
|
Note that ARC FPU is overly simplistic, unlike say x86, which has
|
|
|
|
hardware pieces to allow software to conditionally save/restore,
|
|
|
|
based on actual usage of FPU by a task. Thus our implemn does
|
|
|
|
this for all tasks in system.
|
|
|
|
|
2013-03-30 09:37:47 +00:00
|
|
|
config ARC_CANT_LLSC
|
|
|
|
def_bool n
|
|
|
|
|
2013-01-18 09:42:20 +00:00
|
|
|
menuconfig ARC_CPU_REL_4_10
|
|
|
|
bool "Enable support for Rel 4.10 features"
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
-ARC770 (and dependent features) enabled
|
|
|
|
-ARC750 also shares some of the new features with 770
|
|
|
|
|
|
|
|
config ARC_HAS_LLSC
|
|
|
|
bool "Insn: LLOCK/SCOND (efficient atomic ops)"
|
|
|
|
default y
|
2013-03-30 09:37:47 +00:00
|
|
|
depends on ARC_CPU_770 && !ARC_CANT_LLSC
|
2013-01-18 09:42:20 +00:00
|
|
|
|
|
|
|
config ARC_HAS_SWAPE
|
|
|
|
bool "Insn: SWAPE (endian-swap)"
|
|
|
|
default y
|
|
|
|
depends on ARC_CPU_REL_4_10
|
|
|
|
|
|
|
|
config ARC_HAS_RTSC
|
|
|
|
bool "Insn: RTSC (64-bit r/o cycle counter)"
|
|
|
|
default y
|
|
|
|
depends on ARC_CPU_REL_4_10
|
2013-09-09 10:34:15 +00:00
|
|
|
depends on !SMP
|
2013-01-18 09:42:20 +00:00
|
|
|
|
|
|
|
endmenu # "ARC CPU Configuration"
|
|
|
|
|
|
|
|
config LINUX_LINK_BASE
|
|
|
|
hex "Linux Link Address"
|
|
|
|
default "0x80000000"
|
|
|
|
help
|
|
|
|
ARC700 divides the 32 bit phy address space into two equal halves
|
|
|
|
-Lower 2G (0 - 0x7FFF_FFFF ) is user virtual, translated by MMU
|
|
|
|
-Upper 2G (0x8000_0000 onwards) is untranslated, for kernel
|
|
|
|
Typically Linux kernel is linked at the start of untransalted addr,
|
|
|
|
hence the default value of 0x8zs.
|
|
|
|
However some customers have peripherals mapped at this addr, so
|
|
|
|
Linux needs to be scooted a bit.
|
|
|
|
If you don't know what the above means, leave this setting alone.
|
|
|
|
|
2013-02-11 14:22:57 +00:00
|
|
|
config ARC_CURR_IN_REG
|
|
|
|
bool "Dedicate Register r25 for current_task pointer"
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
This reserved Register R25 to point to Current Task in
|
|
|
|
kernel mode. This saves memory access for each such access
|
|
|
|
|
2013-01-23 11:00:36 +00:00
|
|
|
|
|
|
|
config ARC_MISALIGN_ACCESS
|
|
|
|
bool "Emulate unaligned memory access (userspace only)"
|
|
|
|
select SYSCTL_ARCH_UNALIGN_NO_WARN
|
|
|
|
select SYSCTL_ARCH_UNALIGN_ALLOW
|
|
|
|
help
|
|
|
|
This enables misaligned 16 & 32 bit memory access from user space.
|
|
|
|
Use ONLY-IF-ABS-NECESSARY as it will be very slow and also can hide
|
|
|
|
potential bugs in code
|
|
|
|
|
2013-01-18 09:42:20 +00:00
|
|
|
config HZ
|
|
|
|
int "Timer Frequency"
|
|
|
|
default 100
|
|
|
|
|
2013-01-18 09:42:25 +00:00
|
|
|
config ARC_METAWARE_HLINK
|
|
|
|
bool "Support for Metaware debugger assisted Host access"
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
This options allows a Linux userland apps to directly access
|
|
|
|
host file system (open/creat/read/write etc) with help from
|
|
|
|
Metaware Debugger. This can come in handy for Linux-host communication
|
|
|
|
when there is no real usable peripheral such as EMAC.
|
|
|
|
|
2013-01-18 09:42:20 +00:00
|
|
|
menuconfig ARC_DBG
|
|
|
|
bool "ARC debugging"
|
|
|
|
default y
|
|
|
|
|
2013-01-22 11:33:19 +00:00
|
|
|
config ARC_DW2_UNWIND
|
|
|
|
bool "Enable DWARF specific kernel stack unwind"
|
|
|
|
depends on ARC_DBG
|
|
|
|
default y
|
|
|
|
select KALLSYMS
|
|
|
|
help
|
|
|
|
Compiles the kernel with DWARF unwind information and can be used
|
|
|
|
to get stack backtraces.
|
|
|
|
|
|
|
|
If you say Y here the resulting kernel image will be slightly larger
|
|
|
|
but not slower, and it will give very useful debugging information.
|
|
|
|
If you don't debug the kernel, you can say N, but we may not be able
|
|
|
|
to solve problems without frame unwind information
|
|
|
|
|
2013-01-18 09:42:20 +00:00
|
|
|
config ARC_DBG_TLB_PARANOIA
|
|
|
|
bool "Paranoia Checks in Low Level TLB Handlers"
|
2013-01-18 09:42:24 +00:00
|
|
|
depends on ARC_DBG
|
2013-01-18 09:42:20 +00:00
|
|
|
default n
|
|
|
|
|
|
|
|
config ARC_DBG_TLB_MISS_COUNT
|
|
|
|
bool "Profile TLB Misses"
|
|
|
|
default n
|
|
|
|
select DEBUG_FS
|
|
|
|
depends on ARC_DBG
|
|
|
|
help
|
|
|
|
Counts number of I and D TLB Misses and exports them via Debugfs
|
|
|
|
The counters can be cleared via Debugfs as well
|
|
|
|
|
2013-01-22 11:30:52 +00:00
|
|
|
config ARC_BUILTIN_DTB_NAME
|
|
|
|
string "Built in DTB"
|
|
|
|
help
|
|
|
|
Set the name of the DTB to embed in the vmlinux binary
|
|
|
|
Leaving it blank selects the minimal "skeleton" dtb
|
|
|
|
|
2013-01-18 09:42:20 +00:00
|
|
|
source "kernel/Kconfig.preempt"
|
|
|
|
|
2013-04-06 08:46:20 +00:00
|
|
|
menu "Executable file formats"
|
|
|
|
source "fs/Kconfig.binfmt"
|
|
|
|
endmenu
|
|
|
|
|
2013-01-18 09:42:20 +00:00
|
|
|
endmenu # "ARC Architecture Configuration"
|
|
|
|
|
|
|
|
source "mm/Kconfig"
|
|
|
|
source "net/Kconfig"
|
|
|
|
source "drivers/Kconfig"
|
|
|
|
source "fs/Kconfig"
|
|
|
|
source "arch/arc/Kconfig.debug"
|
|
|
|
source "security/Kconfig"
|
|
|
|
source "crypto/Kconfig"
|
|
|
|
source "lib/Kconfig"
|