123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606 |
- #
- # 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
- select ARCH_SUPPORTS_ATOMIC_RMW if ARC_HAS_LLSC
- select BUILDTIME_EXTABLE_SORT
- select CLKSRC_OF
- select CLONE_BACKWARDS
- select COMMON_CLK
- select GENERIC_ATOMIC64 if !ISA_ARCV2 || !(ARC_HAS_LL64 && ARC_HAS_LLSC)
- 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_PCI_IOMAP
- select GENERIC_PENDING_IRQ if SMP
- select GENERIC_SMP_IDLE_THREAD
- select HAVE_ARCH_KGDB
- select HAVE_ARCH_TRACEHOOK
- select HAVE_FUTEX_CMPXCHG
- select HAVE_IOREMAP_PROT
- select HAVE_KPROBES
- select HAVE_KRETPROBES
- select HAVE_MEMBLOCK
- select HAVE_MOD_ARCH_SPECIFIC
- select HAVE_OPROFILE
- select HAVE_PERF_EVENTS
- select HANDLE_DOMAIN_IRQ
- select IRQ_DOMAIN
- select MODULES_USE_ELF_RELA
- select NO_BOOTMEM
- select OF
- select OF_EARLY_FLATTREE
- select OF_RESERVED_MEM
- select PERF_USE_VMALLOC
- select HAVE_DEBUG_STACKOVERFLOW
- select HAVE_GENERIC_DMA_COHERENT
- select HAVE_KERNEL_GZIP
- select HAVE_KERNEL_LZMA
- config MIGHT_HAVE_PCI
- bool
- config TRACE_IRQFLAGS_SUPPORT
- def_bool y
- config LOCKDEP_SUPPORT
- def_bool y
- config SCHED_OMIT_FRAME_POINTER
- def_bool y
- config GENERIC_CSUM
- def_bool y
- config RWSEM_GENERIC_SPINLOCK
- def_bool y
- config ARCH_DISCONTIGMEM_ENABLE
- def_bool n
- config ARCH_FLATMEM_ENABLE
- def_bool y
- config MMU
- def_bool y
- config NO_IOPORT_MAP
- def_bool y
- config GENERIC_CALIBRATE_DELAY
- def_bool y
- config GENERIC_HWEIGHT
- def_bool y
- config STACKTRACE_SUPPORT
- def_bool y
- select STACKTRACE
- config HAVE_ARCH_TRANSPARENT_HUGEPAGE
- def_bool y
- depends on ARC_MMU_V4
- source "init/Kconfig"
- source "kernel/Kconfig.freezer"
- menu "ARC Architecture Configuration"
- menu "ARC Platform/SoC/Board"
- source "arch/arc/plat-sim/Kconfig"
- source "arch/arc/plat-tb10x/Kconfig"
- source "arch/arc/plat-axs10x/Kconfig"
- #New platform adds here
- source "arch/arc/plat-eznps/Kconfig"
- endmenu
- choice
- prompt "ARC Instruction Set"
- default ISA_ARCOMPACT
- config ISA_ARCOMPACT
- bool "ARCompact ISA"
- select CPU_NO_EFFICIENT_FFS
- help
- The original ARC ISA of ARC600/700 cores
- config ISA_ARCV2
- bool "ARC ISA v2"
- help
- ISA for the Next Generation ARC-HS cores
- endchoice
- menu "ARC CPU Configuration"
- choice
- prompt "ARC Core"
- default ARC_CPU_770 if ISA_ARCOMPACT
- default ARC_CPU_HS if ISA_ARCV2
- if ISA_ARCOMPACT
- config ARC_CPU_750D
- bool "ARC750D"
- select ARC_CANT_LLSC
- help
- Support for ARC750 core
- config ARC_CPU_770
- bool "ARC770"
- select ARC_HAS_SWAPE
- 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
- endif #ISA_ARCOMPACT
- config ARC_CPU_HS
- bool "ARC-HS"
- depends on ISA_ARCV2
- help
- Support for ARC HS38x Cores based on ARCv2 ISA
- The notable features are:
- - SMP configurations of upto 4 core with coherency
- - Optional L2 Cache and IO-Coherency
- - Revised Interrupt Architecture (multiple priorites, reg banks,
- auto stack switch, auto regfile save/restore)
- - MMUv4 (PIPT dcache, Huge Pages)
- - Instructions for
- * 64bit load/store: LDD, STD
- * Hardware assisted divide/remainder: DIV, REM
- * Function prologue/epilogue: ENTER_S, LEAVE_S
- * IRQ enable/disable: CLRI, SETI
- * pop count: FFS, FLS
- * SETcc, BMSKN, XBFU...
- endchoice
- config CPU_BIG_ENDIAN
- bool "Enable Big Endian Mode"
- default n
- help
- Build kernel for Big Endian Mode of ARC CPU
- config SMP
- bool "Symmetric Multi-Processing"
- default n
- select ARC_HAS_COH_CACHES if ISA_ARCV2
- select ARC_MCIP if ISA_ARCV2
- help
- This enables support for systems with more than one CPU.
- if SMP
- config ARC_HAS_COH_CACHES
- def_bool n
- config NR_CPUS
- int "Maximum number of CPUs (2-4096)"
- range 2 4096
- default "4"
- config ARC_SMP_HALT_ON_RESET
- bool "Enable Halt-on-reset boot mode"
- default y if ARC_UBOOT_SUPPORT
- help
- In SMP configuration cores can be configured as Halt-on-reset
- or they could all start at same time. For Halt-on-reset, non
- masters are parked until Master kicks them so they can start of
- at designated entry point. For other case, all jump to common
- entry point and spin wait for Master's signal.
- endif #SMP
- config ARC_MCIP
- bool "ARConnect Multicore IP (MCIP) Support "
- depends on ISA_ARCV2
- default y if SMP
- help
- This IP block enables SMP in ARC-HS38 cores.
- It provides for cross-core interrupts, multi-core debug
- hardware semaphores, shared memory,....
- menuconfig ARC_CACHE
- bool "Enable Cache Support"
- default y
- # if SMP, cache enabled ONLY if ARC implementation has cache coherency
- depends on !SMP || ARC_HAS_COH_CACHES
- 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
- config ARC_CACHE_VIPT_ALIASING
- bool "Support VIPT Aliasing D$"
- depends on ARC_HAS_DCACHE && ISA_ARCOMPACT
- default n
- endif #ARC_CACHE
- 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
- choice
- prompt "MMU Version"
- default ARC_MMU_V3 if ARC_CPU_770
- default ARC_MMU_V2 if ARC_CPU_750D
- default ARC_MMU_V4 if ARC_CPU_HS
- if ISA_ARCOMPACT
- 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)
- endif
- config ARC_MMU_V4
- bool "MMU v4"
- depends on ISA_ARCV2
- 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 || ARC_MMU_V4
- config ARC_PAGE_SIZE_4K
- bool "4KB"
- depends on ARC_MMU_V3 || ARC_MMU_V4
- endchoice
- choice
- prompt "MMU Super Page Size"
- depends on ISA_ARCV2 && TRANSPARENT_HUGEPAGE
- default ARC_HUGEPAGE_2M
- config ARC_HUGEPAGE_2M
- bool "2MB"
- config ARC_HUGEPAGE_16M
- bool "16MB"
- endchoice
- config NODES_SHIFT
- int "Maximum NUMA Nodes (as a power of 2)"
- default "0" if !DISCONTIGMEM
- default "1" if DISCONTIGMEM
- depends on NEED_MULTIPLE_NODES
- ---help---
- Accessing memory beyond 1GB (with or w/o PAE) requires 2 memory
- zones.
- if ISA_ARCOMPACT
- config ARC_COMPACT_IRQ_LEVELS
- bool "Setup Timer IRQ as high Priority"
- default n
- # if SMP, LV2 enabled ONLY if ARC implementation has LV2 re-entrancy
- depends on !SMP
- 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.
- endif #ISA_ARCOMPACT
- config ARC_CANT_LLSC
- def_bool n
- config ARC_HAS_LLSC
- bool "Insn: LLOCK/SCOND (efficient atomic ops)"
- default y
- depends on !ARC_CANT_LLSC
- config ARC_HAS_SWAPE
- bool "Insn: SWAPE (endian-swap)"
- default y
- if ISA_ARCV2
- config ARC_HAS_LL64
- bool "Insn: 64bit LDD/STD"
- help
- Enable gcc to generate 64-bit load/store instructions
- ISA mandates even/odd registers to allow encoding of two
- dest operands with 2 possible source operands.
- default y
- config ARC_HAS_DIV_REM
- bool "Insn: div, divu, rem, remu"
- default y
- config ARC_HAS_RTC
- bool "Local 64-bit r/o cycle counter"
- default n
- depends on !SMP
- config ARC_HAS_GFRC
- bool "SMP synchronized 64-bit cycle counter"
- default y
- depends on SMP
- config ARC_NUMBER_OF_INTERRUPTS
- int "Number of interrupts"
- range 8 240
- default 32
- help
- This defines the number of interrupts on the ARCv2HS core.
- It affects the size of vector table.
- The initial 8 IRQs are fixed (Timer, ICI etc) and although configurable
- in hardware, it keep things simple for Linux to assume they are always
- present.
- endif # ISA_ARCV2
- 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.
- This needs to match memory start address specified in Device Tree
- config HIGHMEM
- bool "High Memory Support"
- select ARCH_DISCONTIGMEM_ENABLE
- help
- With ARC 2G:2G address split, only upper 2G is directly addressable by
- kernel. Enable this to potentially allow access to rest of 2G and PAE
- in future
- config ARC_HAS_PAE40
- bool "Support for the 40-bit Physical Address Extension"
- default n
- depends on ISA_ARCV2
- help
- Enable access to physical memory beyond 4G, only supported on
- ARC cores with 40 bit Physical Addressing support
- config ARCH_PHYS_ADDR_T_64BIT
- def_bool ARC_HAS_PAE40
- config ARCH_DMA_ADDR_T_64BIT
- bool
- config ARC_PLAT_NEEDS_PHYS_TO_DMA
- bool
- config ARC_KVADDR_SIZE
- int "Kernel Virtaul Address Space size (MB)"
- range 0 512
- default "256"
- help
- The kernel address space is carved out of 256MB of translated address
- space for catering to vmalloc, modules, pkmap, fixmap. This however may
- not suffice vmalloc requirements of a 4K CPU EZChip system. So allow
- this to be stretched to 512 MB (by extending into the reserved
- kernel-user gutter)
- 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
- config ARC_EMUL_UNALIGNED
- bool "Emulate unaligned memory access (userspace only)"
- select SYSCTL_ARCH_UNALIGN_NO_WARN
- select SYSCTL_ARCH_UNALIGN_ALLOW
- depends on ISA_ARCOMPACT
- 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
- config HZ
- int "Timer Frequency"
- default 100
- 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.
- menuconfig ARC_DBG
- bool "ARC debugging"
- default y
- if ARC_DBG
- config ARC_DW2_UNWIND
- bool "Enable DWARF specific kernel stack unwind"
- 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
- config ARC_DBG_TLB_PARANOIA
- bool "Paranoia Checks in Low Level TLB Handlers"
- default n
- endif
- config ARC_UBOOT_SUPPORT
- bool "Support uboot arg Handling"
- default n
- help
- ARC Linux by default checks for uboot provided args as pointers to
- external cmdline or DTB. This however breaks in absence of uboot,
- when booting from Metaware debugger directly, as the registers are
- not zeroed out on reset by mdb and/or ARCv2 based cores. The bogus
- registers look like uboot args to kernel which then chokes.
- So only enable the uboot arg checking/processing if users are sure
- of uboot being in play.
- 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
- source "kernel/Kconfig.preempt"
- menu "Executable file formats"
- source "fs/Kconfig.binfmt"
- endmenu
- endmenu # "ARC Architecture Configuration"
- source "mm/Kconfig"
- config FORCE_MAX_ZONEORDER
- int "Maximum zone order"
- default "12" if ARC_HUGEPAGE_16M
- default "11"
- source "net/Kconfig"
- source "drivers/Kconfig"
- menu "Bus Support"
- config PCI
- bool "PCI support" if MIGHT_HAVE_PCI
- help
- PCI is the name of a bus system, i.e., the way the CPU talks to
- the other stuff inside your box. Find out if your board/platform
- has PCI.
- Note: PCIe support for Synopsys Device will be available only
- when HAPS DX is configured with PCIe RC bitmap. If you have PCI,
- say Y, otherwise N.
- config PCI_SYSCALL
- def_bool PCI
- source "drivers/pci/Kconfig"
- endmenu
- source "fs/Kconfig"
- source "arch/arc/Kconfig.debug"
- source "security/Kconfig"
- source "crypto/Kconfig"
- source "lib/Kconfig"
- source "kernel/power/Kconfig"
|