xref: /openbmc/linux/arch/sparc/Kconfig (revision 1ac731c529cd4d6adbce134754b51ff7d822b145)
1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only
2761b6026SBastian Blankconfig 64BIT
3104daea1SMasahiro Yamada	bool "64-bit kernel" if "$(ARCH)" = "sparc"
4104daea1SMasahiro Yamada	default "$(ARCH)" = "sparc64"
5761b6026SBastian Blank	help
6761b6026SBastian Blank	  SPARC is a family of RISC microprocessors designed and marketed by
7761b6026SBastian Blank	  Sun Microsystems, incorporated.  They are very widely found in Sun
8761b6026SBastian Blank	  workstations and clones.
9761b6026SBastian Blank
10761b6026SBastian Blank	  Say yes to build a 64-bit kernel - formerly known as sparc64
11761b6026SBastian Blank	  Say no to build a 32-bit kernel - formerly known as sparc
12761b6026SBastian Blank
1335da3e39SSam Ravnborgconfig SPARC
1435da3e39SSam Ravnborg	bool
1535da3e39SSam Ravnborg	default y
16ff649a6fSMark Salter	select ARCH_MIGHT_HAVE_PC_PARPORT if SPARC64 && PCI
17a5252c28SMark Salter	select ARCH_MIGHT_HAVE_PC_SERIO
182f9237d4SChristoph Hellwig	select DMA_OPS
197b14c647SStephen Rothwell	select OF
203cfc535cSAndres Salomon	select OF_PROMTREE
212ff2b7ecSMasahiro Yamada	select HAVE_ASM_MODVERSIONS
2226b4c912SSam Ravnborg	select HAVE_ARCH_KGDB if !SMP || SPARC64
2335da3e39SSam Ravnborg	select HAVE_ARCH_TRACEHOOK
24282a181bSYiFei Zhu	select HAVE_ARCH_SECCOMP if SPARC64
255f56a5dfSJiri Slaby	select HAVE_EXIT_THREAD
26eb01d42aSChristoph Hellwig	select HAVE_PCI
277ac57a89SCatalin Marinas	select SYSCTL_EXCEPTION_TRACE
2835da3e39SSam Ravnborg	select RTC_CLASS
2935da3e39SSam Ravnborg	select RTC_DRV_M48T59
30460ea8d7SXunlei Pang	select RTC_SYSTOHC
314f6500ffSPaul Gortmaker	select HAVE_ARCH_JUMP_LABEL if SPARC64
326baa9b20SSam Ravnborg	select GENERIC_IRQ_SHOW
33c1d7e01dSWill Deacon	select ARCH_WANT_IPC_PARSE_VERSION
34a21a2fd4SMichael S. Tsirkin	select GENERIC_PCI_IOMAP
35fcbfe812SNiklas Schnelle	select HAS_IOPORT
36d314d74cSCong Wang	select HAVE_HARDLOCKUP_DETECTOR_SPARC64 if SPARC64
377a12b503SDavid S. Miller	select HAVE_CBPF_JIT if SPARC32
387a12b503SDavid S. Miller	select HAVE_EBPF_JIT if SPARC64
399b2a60c4SCatalin Marinas	select HAVE_DEBUG_BUGVERBOSE
40f0a2bc7eSThomas Gleixner	select GENERIC_SMP_IDLE_THREAD
41786d35d4SDavid Howells	select MODULES_USE_ELF_RELA
4220f1b79dSChristoph Hellwig	select PCI_SYSCALL if PCI
43981aa1d3SThomas Gleixner	select PCI_MSI_ARCH_FALLBACKS if PCI_MSI
44eaca6eaeSAl Viro	select ODD_RT_SIGACTION
4552ad6b3fSAl Viro	select OLD_SIGSUSPEND
46fff7fb0bSZhaoxiu Zeng	select CPU_NO_EFFICIENT_FFS
47395102dbSDaniel Jordan	select LOCKDEP_SMALL if LOCKDEP
48f616ab59SChristoph Hellwig	select NEED_DMA_MAP_STATE
4986596f0aSChristoph Hellwig	select NEED_SG_DMA_LENGTH
504aae683fSMasahiro Yamada	select TRACE_IRQFLAGS_SUPPORT
5135da3e39SSam Ravnborg
5235da3e39SSam Ravnborgconfig SPARC32
53761b6026SBastian Blank	def_bool !64BIT
54942fa985SYury Norov	select ARCH_32BIT_OFF_T
55dfaad39cSChristoph Hellwig	select ARCH_HAS_CPU_FINALIZE_INIT if !SMP
56c6df4b17SDavid Miller	select ARCH_HAS_SYNC_DMA_FOR_CPU
577d6db80bSChristoph Hellwig	select CLZ_TAB
587d6db80bSChristoph Hellwig	select DMA_DIRECT_REMAP
59af1839ebSCatalin Marinas	select GENERIC_ATOMIC64
60a274bd49SAl Viro	select HAVE_UID16
6163703f37SKefeng Wang	select LOCK_MM_AND_FIND_VMA
6235da3e39SSam Ravnborg	select OLD_SIGACTION
6326b4c912SSam Ravnborg	select ZONE_DMA
64761b6026SBastian Blank
6512700c17SArnd Bergmannconfig SPARC64
6626b4c912SSam Ravnborg	def_bool 64BIT
679960e9e8SDavid S. Miller	select ALTERNATE_USER_ADDRESS_SPACE
6826b4c912SSam Ravnborg	select HAVE_FUNCTION_TRACER
6926b4c912SSam Ravnborg	select HAVE_FUNCTION_GRAPH_TRACER
70ff2e6d72SPeter Zijlstra	select HAVE_KRETPROBES
711e9fdf21SPeter Zijlstra	select HAVE_KPROBES
721e9fdf21SPeter Zijlstra	select MMU_GATHER_RCU_TABLE_FREE if SMP
73b9156ebbSDavid S. Miller	select MMU_GATHER_MERGE_VMAS
749be12f9bSDavid S. Miller	select MMU_GATHER_NO_FLUSH_CACHE
759be12f9bSDavid S. Miller	select HAVE_ARCH_TRANSPARENT_HUGEPAGE
76c658ad1bSDavid S. Miller	select HAVE_DYNAMIC_FTRACE
7724a9c541SFrederic Weisbecker	select HAVE_FTRACE_MCOUNT_RECORD
78490f561bSFrederic Weisbecker	select HAVE_SYSCALL_TRACEPOINTS
79b69ec42bSCatalin Marinas	select HAVE_CONTEXT_TRACKING_USER
80a4ce5a48SChristoph Hellwig	select HAVE_TIF_NOHZ
81ee6a9333Sbob picco	select HAVE_DEBUG_KMEMLEAK
8226b4c912SSam Ravnborg	select IOMMU_HELPER
8326b4c912SSam Ravnborg	select SPARSE_IRQ
8426b4c912SSam Ravnborg	select RTC_DRV_CMOS
8526b4c912SSam Ravnborg	select RTC_DRV_BQ4802
86cdd6c482SIngo Molnar	select RTC_DRV_SUN4V
87906010b2SPeter Zijlstra	select RTC_DRV_STARFIRE
88df013ffbSHuang Ying	select HAVE_PERF_EVENTS
89178a2960SDavid S. Miller	select PERF_USE_VMALLOC
907a017721SAKASHI Takahiro	select ARCH_HAVE_NMI_SAFE_CMPXCHG
914badad35SPeter Zijlstra	select HAVE_C_RECORDMCOUNT
925d6ad668SMike Rapoport	select HAVE_ARCH_AUDITSYSCALL
9342a0bb3fSPetr Mladek	select ARCH_SUPPORTS_ATOMIC_RMW
94b7c02b73SDavid S. Miller	select ARCH_SUPPORTS_DEBUG_PAGEALLOC
95a37594f1SBabu Moger	select HAVE_NMI
96145d9785SBabu Moger	select HAVE_REGS_AND_STACK_ACCESS_API
979a08862aSNagarathnam Muthusamy	select ARCH_USE_QUEUED_RWLOCKS
989a08862aSNagarathnam Muthusamy	select ARCH_USE_QUEUED_SPINLOCKS
993010a5eaSLaurent Dufour	select GENERIC_TIME_VSYSCALL
1002eac9c2dSChristoph Hellwig	select ARCH_CLOCKSOURCE_DATA
1014eb0716eSAlexandre Ghiti	select ARCH_HAS_PTE_SPECIAL
102cd1a41ceSThomas Gleixner	select PCI_DOMAINS if PCI
1037ecd19cfSKefeng Wang	select ARCH_HAS_GIGANTIC_PAGE
1047ecd19cfSKefeng Wang	select HAVE_SOFTIRQ_ON_OWN_STACK
1057ecd19cfSKefeng Wang	select HAVE_SETUP_PER_CPU_AREA
10626b4c912SSam Ravnborg	select NEED_PER_CPU_EMBED_FIRST_CHUNK
1073c08158eSDavid S. Miller	select NEED_PER_CPU_PAGE_FIRST_CHUNK
1083c08158eSDavid S. Miller
1093c08158eSDavid S. Millerconfig ARCH_PROC_KCORE_TEXT
11097d9f969SBabu Moger	def_bool y
11197d9f969SBabu Moger
11297d9f969SBabu Mogerconfig CPU_BIG_ENDIAN
113c88c545bSDave Kleikamp	def_bool y
114c88c545bSDave Kleikamp
115c88c545bSDave Kleikampconfig ARCH_ATU
116c88c545bSDave Kleikamp	bool
11726b4c912SSam Ravnborg	default y if SPARC64
11826b4c912SSam Ravnborg
11926b4c912SSam Ravnborgconfig STACKTRACE_SUPPORT
12026b4c912SSam Ravnborg	bool
12126b4c912SSam Ravnborg	default y if SPARC64
12226b4c912SSam Ravnborg
12326b4c912SSam Ravnborgconfig LOCKDEP_SUPPORT
12426b4c912SSam Ravnborg	bool
125bdde6b3cSTkhai Kirill	default y if SPARC64
126bdde6b3cSTkhai Kirill
127bdde6b3cSTkhai Kirillconfig ARCH_HIBERNATION_POSSIBLE
12826b4c912SSam Ravnborg	def_bool y if SPARC64
12926b4c912SSam Ravnborg
1307e7e93a2SDavid S. Millerconfig AUDIT_ARCH
13126b4c912SSam Ravnborg	bool
1321da177e4SLinus Torvalds	default y
1331da177e4SLinus Torvalds
1341da177e4SLinus Torvaldsconfig MMU
1351da177e4SLinus Torvalds	bool
1361da177e4SLinus Torvalds	default y
1371da177e4SLinus Torvalds
13826b4c912SSam Ravnborgconfig HIGHMEM
1393293efa9SThomas Gleixner	bool
1401da177e4SLinus Torvalds	default y if SPARC32
1411da177e4SLinus Torvalds	select KMAP_LOCAL
1421da177e4SLinus Torvalds
14326b4c912SSam Ravnborgconfig GENERIC_ISA_DMA
1441da177e4SLinus Torvalds	bool
14581a2936cSKirill A. Shutemov	default y if SPARC32
14681a2936cSKirill A. Shutemov
14781a2936cSKirill A. Shutemovconfig PGTABLE_LEVELS
14881a2936cSKirill A. Shutemov	default 4 if 64BIT
149e8f4aa60SAllen Pais	default 3
150e8f4aa60SAllen Pais
151e8f4aa60SAllen Paisconfig ARCH_SUPPORTS_UPROBES
15226b4c912SSam Ravnborg	def_bool y if SPARC64
1531da177e4SLinus Torvalds
1541da177e4SLinus Torvaldsmenu "Processor type and features"
1556b7679ddSDavid S. Miller
156a7f7f624SMasahiro Yamadaconfig SMP
1571da177e4SLinus Torvalds	bool "Symmetric multi-processing support"
1581da177e4SLinus Torvalds	help
1591da177e4SLinus Torvalds	  This enables support for systems with more than one CPU. If you have
1601da177e4SLinus Torvalds	  a system with only one CPU, say N. If you have a system with more
1614a474157SRobert Graffham	  than one CPU, say Y.
1621da177e4SLinus Torvalds
1631da177e4SLinus Torvalds	  If you say N here, the kernel will run on uni- and multiprocessor
1644a474157SRobert Graffham	  machines, but will use only one CPU of a multiprocessor machine. If
1651da177e4SLinus Torvalds	  you say Y here, the kernel will run on many, but not all,
1661da177e4SLinus Torvalds	  uniprocessor machines. On a uniprocessor machine, the kernel
1671da177e4SLinus Torvalds	  will run faster if you say N here.
1681da177e4SLinus Torvalds
1691da177e4SLinus Torvalds	  People using multiprocessor machines who say Y here should also say
1701da177e4SLinus Torvalds	  Y to "Enhanced Real Time Clock Support", below. The "Advanced Power
1714f4cfa6cSMauro Carvalho Chehab	  Management" code will be disabled if you say Y here.
17237719576SAlexander A. Klimov
1731da177e4SLinus Torvalds	  See also <file:Documentation/admin-guide/lockup-watchdogs.rst> and the SMP-HOWTO
1741da177e4SLinus Torvalds	  available at <https://www.tldp.org/docs.html#howto>.
1751da177e4SLinus Torvalds
1761da177e4SLinus Torvalds	  If you don't know what to do here, say N.
17726b4c912SSam Ravnborg
1781da177e4SLinus Torvaldsconfig NR_CPUS
17926b4c912SSam Ravnborg	int "Maximum number of CPUs"
180c79a1373SJane Chu	depends on SMP
18126b4c912SSam Ravnborg	range 2 32 if SPARC32
182c79a1373SJane Chu	range 2 4096 if SPARC64
1831da177e4SLinus Torvalds	default 32 if SPARC32
1848636a1f9SMasahiro Yamada	default 4096 if SPARC64
18526b4c912SSam Ravnborg
18626b4c912SSam Ravnborgsource "kernel/Kconfig.hz"
18726b4c912SSam Ravnborg
188e0b20296SPaul Bolleconfig GENERIC_HWEIGHT
18926b4c912SSam Ravnborg	bool
19026b4c912SSam Ravnborg	default y
19126b4c912SSam Ravnborg
19226b4c912SSam Ravnborgconfig GENERIC_CALIBRATE_DELAY
19326b4c912SSam Ravnborg	bool
19426b4c912SSam Ravnborg	default y
19526b4c912SSam Ravnborg
19626b4c912SSam Ravnborgconfig ARCH_MAY_HAVE_PC_FDC
19726b4c912SSam Ravnborg	bool
19826b4c912SSam Ravnborg	default y
19926b4c912SSam Ravnborg
20026b4c912SSam Ravnborgconfig EMULATED_CMPXCHG
20126b4c912SSam Ravnborg	bool
20226b4c912SSam Ravnborg	default y if SPARC32
20326b4c912SSam Ravnborg	help
20426b4c912SSam Ravnborg	  Sparc32 does not have a CAS instruction like sparc64. cmpxchg()
205d670bd4fSSam Ravnborg	  is emulated, and therefore it is not completely atomic.
206d670bd4fSSam Ravnborg
207d670bd4fSSam Ravnborg# Makefile helpers
208d670bd4fSSam Ravnborgconfig SPARC32_SMP
209d670bd4fSSam Ravnborg	bool
210d670bd4fSSam Ravnborg	default y
211d670bd4fSSam Ravnborg	depends on SPARC32 && SMP
212d670bd4fSSam Ravnborg
213d670bd4fSSam Ravnborgconfig SPARC64_SMP
214d670bd4fSSam Ravnborg	bool
215d670bd4fSSam Ravnborg	default y
216c57ec52fSDavid S. Miller	depends on SPARC64 && SMP
217c57ec52fSDavid S. Miller
218c57ec52fSDavid S. Millerconfig EARLYFB
219c57ec52fSDavid S. Miller	bool "Support for early boot text console"
220c57ec52fSDavid S. Miller	default y
221c57ec52fSDavid S. Miller	depends on SPARC64
222c57ec52fSDavid S. Miller	help
22326b4c912SSam Ravnborg	  Say Y here to enable a faster early framebuffer boot console.
22426b4c912SSam Ravnborg
22526b4c912SSam Ravnborgconfig HOTPLUG_CPU
22626b4c912SSam Ravnborg	bool "Support for hot-pluggable CPUs"
22726b4c912SSam Ravnborg	depends on SPARC64 && SMP
22826b4c912SSam Ravnborg	help
22926b4c912SSam Ravnborg	  Say Y here to experiment with turning CPUs off and on.  CPUs
23026b4c912SSam Ravnborg	  can be controlled through /sys/devices/system/cpu/cpu#.
23126b4c912SSam Ravnborg	  Say N if you want to disable CPU hotplug.
23226b4c912SSam Ravnborg
23326b4c912SSam Ravnborgif SPARC64
23426b4c912SSam Ravnborgsource "drivers/cpufreq/Kconfig"
23526b4c912SSam Ravnborgendif
23626b4c912SSam Ravnborg
23726b4c912SSam Ravnborgconfig US3_MC
23826b4c912SSam Ravnborg	tristate "UltraSPARC-III Memory Controller driver"
23926b4c912SSam Ravnborg	depends on SPARC64
24026b4c912SSam Ravnborg	default y
24126b4c912SSam Ravnborg	help
24226b4c912SSam Ravnborg	  This adds a driver for the UltraSPARC-III memory controller.
24326b4c912SSam Ravnborg	  Loading this driver allows exact mnemonic strings to be
24426b4c912SSam Ravnborg	  printed in the event of a memory error, so that the faulty DIMM
24526b4c912SSam Ravnborg	  on the motherboard can be matched to the error.
2461da177e4SLinus Torvalds
2471da177e4SLinus Torvalds	  If in doubt, say Y, as this information can be very useful.
24826b4c912SSam Ravnborg
24926b4c912SSam Ravnborg# Global things across all Sun machines.
25026b4c912SSam Ravnborgconfig GENERIC_LOCKBREAK
25185a683d0SThomas Gleixner	bool
25226b4c912SSam Ravnborg	default y
25326b4c912SSam Ravnborg	depends on SPARC64 && SMP && PREEMPTION
25426b4c912SSam Ravnborg
25526b4c912SSam Ravnborgconfig NUMA
25626b4c912SSam Ravnborg	bool "NUMA support"
25726b4c912SSam Ravnborg	depends on SPARC64 && SMP
2587485af89SJane Chu
2597485af89SJane Chuconfig NODES_SHIFT
2607485af89SJane Chu	int "Maximum NUMA Nodes (as a power of 2)"
261a9ee6cf5SMike Rapoport	range 4 5 if SPARC64
2627485af89SJane Chu	default "5"
2637485af89SJane Chu	depends on NUMA
2647485af89SJane Chu	help
26526b4c912SSam Ravnborg	  Specify the maximum number of NUMA Nodes available on the target
26626b4c912SSam Ravnborg	  system.  Increases memory reserved to accommodate various tables.
26726b4c912SSam Ravnborg
26826b4c912SSam Ravnborgconfig ARCH_SPARSEMEM_ENABLE
26926b4c912SSam Ravnborg	def_bool y if SPARC64
27026b4c912SSam Ravnborg	select SPARSEMEM_VMEMMAP_ENABLE
27126b4c912SSam Ravnborg
27226b4c912SSam Ravnborgconfig ARCH_SPARSEMEM_DEFAULT
2730192445cSZi Yan	def_bool y if SPARC64
274*8def4c05SMike Rapoport (IBM)
27523baf831SKirill A. Shutemovconfig ARCH_FORCE_MAX_ORDER
276c88c545bSDave Kleikamp	int "Order of maximal physically contiguous allocations"
277*8def4c05SMike Rapoport (IBM)	default "12"
278*8def4c05SMike Rapoport (IBM)	help
279*8def4c05SMike Rapoport (IBM)	  The kernel page allocator limits the size of maximal physically
280*8def4c05SMike Rapoport (IBM)	  contiguous allocations. The limit is called MAX_ORDER and it
281*8def4c05SMike Rapoport (IBM)	  defines the maximal power of two of number of pages that can be
282*8def4c05SMike Rapoport (IBM)	  allocated as a single contiguous block. This option allows
283c88c545bSDave Kleikamp	  overriding the default setting when ability to allocate very
284*8def4c05SMike Rapoport (IBM)	  large blocks of physically contiguous memory is required.
285c88c545bSDave Kleikamp
2867be6a87cSRandy Dunlap	  Don't change if unsure.
287bdde6b3cSTkhai Kirill
288bdde6b3cSTkhai Kirillif SPARC64 || COMPILE_TEST
289bdde6b3cSTkhai Kirillsource "kernel/power/Kconfig"
29026b4c912SSam Ravnborgendif
29126b4c912SSam Ravnborg
29226b4c912SSam Ravnborgconfig SCHED_SMT
29326b4c912SSam Ravnborg	bool "SMT (Hyperthreading) scheduler support"
29426b4c912SSam Ravnborg	depends on SPARC64 && SMP
29526b4c912SSam Ravnborg	default y
29626b4c912SSam Ravnborg	help
29726b4c912SSam Ravnborg	  SMT scheduler support improves the CPU scheduler's decision making
29826b4c912SSam Ravnborg	  when dealing with SPARC cpus at a cost of slightly increased overhead
29926b4c912SSam Ravnborg	  in some places. If unsure say N here.
30026b4c912SSam Ravnborg
30126b4c912SSam Ravnborgconfig SCHED_MC
30226b4c912SSam Ravnborg	bool "Multi-core scheduler support"
30326b4c912SSam Ravnborg	depends on SPARC64 && SMP
30426b4c912SSam Ravnborg	default y
30526b4c912SSam Ravnborg	help
30626b4c912SSam Ravnborg	  Multi-core scheduler support improves the CPU scheduler's decision
30726b4c912SSam Ravnborg	  making when dealing with multi-core CPU chips at a cost of slightly
30826b4c912SSam Ravnborg	  increased overhead in some places. If unsure say N here.
30926b4c912SSam Ravnborg
31026b4c912SSam Ravnborgconfig CMDLINE_BOOL
31126b4c912SSam Ravnborg	bool "Default bootloader kernel arguments"
31226b4c912SSam Ravnborg	depends on SPARC64
31326b4c912SSam Ravnborg
31426b4c912SSam Ravnborgconfig CMDLINE
31526b4c912SSam Ravnborg	string "Initial kernel command string"
31626b4c912SSam Ravnborg	depends on CMDLINE_BOOL
31726b4c912SSam Ravnborg	default "console=ttyS0,9600 root=/dev/sda1"
31826b4c912SSam Ravnborg	help
31926b4c912SSam Ravnborg	  Say Y here if you want to be able to pass default arguments to
32026b4c912SSam Ravnborg	  the kernel. This will be overridden by the bootloader, if you
32126b4c912SSam Ravnborg	  use one (such as SILO). This is most useful if you want to boot
32226b4c912SSam Ravnborg	  a kernel from TFTP, and want default options to be available
32326b4c912SSam Ravnborg	  with having them passed on the command line.
32426b4c912SSam Ravnborg
32526b4c912SSam Ravnborg	  NOTE: This option WILL override the PROM bootargs setting!
32626b4c912SSam Ravnborg
32726b4c912SSam Ravnborgconfig SUN_PM
32826b4c912SSam Ravnborg	bool
32926b4c912SSam Ravnborg	default y if SPARC32
33026b4c912SSam Ravnborg	help
33126b4c912SSam Ravnborg	  Enable power management and CPU standby features on supported
33226b4c912SSam Ravnborg	  SPARC platforms.
33326b4c912SSam Ravnborg
33426b4c912SSam Ravnborgconfig SPARC_LED
33526b4c912SSam Ravnborg	tristate "Sun4m LED driver"
33626b4c912SSam Ravnborg	depends on SPARC32
33726b4c912SSam Ravnborg	help
33826b4c912SSam Ravnborg	  This driver toggles the front-panel LED on sun4m systems
33926b4c912SSam Ravnborg	  in a user-specifiable manner.  Its state can be probed
34026b4c912SSam Ravnborg	  by reading /proc/led and its blinking mode can be changed
3411da177e4SLinus Torvalds	  via writes to /proc/led
3421da177e4SLinus Torvalds
34326b4c912SSam Ravnborgconfig SERIAL_CONSOLE
3441da177e4SLinus Torvalds	bool
345a7f7f624SMasahiro Yamada	depends on SPARC32
3461da177e4SLinus Torvalds	default y
3471da177e4SLinus Torvalds	help
3481da177e4SLinus Torvalds	  If you say Y here, it will be possible to use a serial port as the
3491da177e4SLinus Torvalds	  system console (the system console is the device which receives all
3501da177e4SLinus Torvalds	  kernel messages and warnings and which allows logins in single user
3511da177e4SLinus Torvalds	  mode). This could be useful if some terminal or printer is connected
3521da177e4SLinus Torvalds	  to that serial port.
3531da177e4SLinus Torvalds
3541da177e4SLinus Torvalds	  Even if you say Y here, the currently visible virtual console
3551da177e4SLinus Torvalds	  (/dev/tty0) will still be used as the system console by default, but
3561da177e4SLinus Torvalds	  you can alter that using a kernel command line option such as
3571da177e4SLinus Torvalds	  "console=ttyS1". (Try "man bootparam" or see the documentation of
3581da177e4SLinus Torvalds	  your boot loader (silo) about how to pass options to the kernel at
3591da177e4SLinus Torvalds	  boot time.)
3601da177e4SLinus Torvalds
3611da177e4SLinus Torvalds	  If you don't have a graphics card installed and you say Y here, the
3621da177e4SLinus Torvalds	  kernel will automatically use the first serial line, /dev/ttyS0, as
3631da177e4SLinus Torvalds	  system console.
3641da177e4SLinus Torvalds
3655213a780SKonrad Eisele	  If unsure, say N.
3665213a780SKonrad Eisele
3675213a780SKonrad Eiseleconfig SPARC_LEON
3689296d94dSFlorian Fainelli	bool "Sparc Leon processor family"
3699296d94dSFlorian Fainelli	depends on SPARC32
3705efad9eeSJames Hogan	select USB_EHCI_BIG_ENDIAN_MMIO
3715efad9eeSJames Hogan	select USB_EHCI_BIG_ENDIAN_DESC
372a7f7f624SMasahiro Yamada	select USB_UHCI_BIG_ENDIAN_MMIO
3735213a780SKonrad Eisele	select USB_UHCI_BIG_ENDIAN_DESC
3745213a780SKonrad Eisele	help
3755213a780SKonrad Eisele	  If you say Y here if you are running on a SPARC-LEON processor.
3765213a780SKonrad Eisele	  The LEON processor is a synthesizable VHDL model of the
3775213a780SKonrad Eisele	  SPARC-v8 standard. LEON is  part of the GRLIB collection of
3785213a780SKonrad Eisele	  IP cores that are distributed under GPL. GRLIB can be downloaded
3795213a780SKonrad Eisele	  from www.gaisler.com. You can download a sparc-linux cross-compilation
380684151a7SDaniel Hellstrom	  toolchain at www.gaisler.com.
381684151a7SDaniel Hellstrom
382684151a7SDaniel Hellstromif SPARC_LEON
383684151a7SDaniel Hellstrommenu "U-Boot options"
384684151a7SDaniel Hellstrom
385684151a7SDaniel Hellstromconfig UBOOT_LOAD_ADDR
386a7f7f624SMasahiro Yamada	hex "uImage Load Address"
387684151a7SDaniel Hellstrom	default 0x40004000
388684151a7SDaniel Hellstrom	help
389684151a7SDaniel Hellstrom	 U-Boot kernel load address, the address in physical address space
390684151a7SDaniel Hellstrom	 where u-boot will place the Linux kernel before booting it.
391684151a7SDaniel Hellstrom	 This address is normally the base address of main memory + 0x4000.
392684151a7SDaniel Hellstrom
393684151a7SDaniel Hellstromconfig UBOOT_FLASH_ADDR
394a7f7f624SMasahiro Yamada	hex "uImage.o Load Address"
395684151a7SDaniel Hellstrom	default 0x00080000
396684151a7SDaniel Hellstrom	help
397684151a7SDaniel Hellstrom	 Optional setting only affecting the uImage.o ELF-image used to
398684151a7SDaniel Hellstrom	 download the uImage file to the target using a ELF-loader other than
399684151a7SDaniel Hellstrom	 U-Boot. It may for example be used to download an uImage to FLASH with
400684151a7SDaniel Hellstrom	 the GRMON utility before even starting u-boot.
401684151a7SDaniel Hellstrom
402684151a7SDaniel Hellstromconfig UBOOT_ENTRY_ADDR
403a7f7f624SMasahiro Yamada	hex "uImage Entry Address"
404684151a7SDaniel Hellstrom	default 0xf0004000
405684151a7SDaniel Hellstrom	help
406684151a7SDaniel Hellstrom	 Do not change this unless you know what you're doing. This is
407684151a7SDaniel Hellstrom	 hardcoded by the SPARC32 and LEON port.
408684151a7SDaniel Hellstrom
409684151a7SDaniel Hellstrom	 This is the virtual address u-boot jumps to when booting the Linux
410684151a7SDaniel Hellstrom	 Kernel.
411684151a7SDaniel Hellstrom
412684151a7SDaniel Hellstromendmenu
4134b27e0e1SSam Ravnborgendif
4144b27e0e1SSam Ravnborg
4154b27e0e1SSam Ravnborgendmenu
4164b27e0e1SSam Ravnborg
4174b27e0e1SSam Ravnborgmenu "Bus options (PCI etc.)"
4184b27e0e1SSam Ravnborgconfig SBUS
4194b27e0e1SSam Ravnborg	bool
4204b27e0e1SSam Ravnborg	default y
4214b27e0e1SSam Ravnborg
4224b27e0e1SSam Ravnborgconfig SBUSCHAR
4234b27e0e1SSam Ravnborg	bool
42426b4c912SSam Ravnborg	default y
42526b4c912SSam Ravnborg
42626b4c912SSam Ravnborgconfig SUN_LDOMS
42726b4c912SSam Ravnborg	bool "Sun Logical Domains support"
42826b4c912SSam Ravnborg	depends on SPARC64
42926b4c912SSam Ravnborg	help
43026b4c912SSam Ravnborg	  Say Y here is you want to support virtual devices via
431cfe3af5dSDaniel Hellstrom	  Logical Domains.
432cfe3af5dSDaniel Hellstrom
4338c47f8d0SDavid S. Millerconfig PCIC_PCI
434cfe3af5dSDaniel Hellstrom	bool
435cfe3af5dSDaniel Hellstrom	depends on PCI && SPARC32 && !SPARC_LEON
43626893c13SDaniel Hellstrom	default y
43726893c13SDaniel Hellstrom
43826893c13SDaniel Hellstromconfig LEON_PCI
43926893c13SDaniel Hellstrom	bool
44026893c13SDaniel Hellstrom	depends on PCI && SPARC_LEON
441d8650106SDaniel Hellstrom	default y
442d8650106SDaniel Hellstrom
443d8650106SDaniel Hellstromconfig SPARC_GRPCI1
444d8650106SDaniel Hellstrom	bool "GRPCI Host Bridge Support"
445d8650106SDaniel Hellstrom	depends on LEON_PCI
446d8650106SDaniel Hellstrom	default y
447d8650106SDaniel Hellstrom	help
448d8650106SDaniel Hellstrom	  Say Y here to include the GRPCI Host Bridge Driver. The GRPCI
449d8650106SDaniel Hellstrom	  PCI host controller is typically found in GRLIB SPARC32/LEON
450d8650106SDaniel Hellstrom	  systems. The driver has one property (all_pci_errors) controlled
451d8650106SDaniel Hellstrom	  from the bootloader that makes the GRPCI to generate interrupts
4521ab0a676SDaniel Hellstrom	  on detected PCI Parity and System errors.
4535d07b786SDaniel Hellstrom
4545d07b786SDaniel Hellstromconfig SPARC_GRPCI2
4555d07b786SDaniel Hellstrom	bool "GRPCI2 Host Bridge Support"
4565d07b786SDaniel Hellstrom	depends on LEON_PCI
4575d07b786SDaniel Hellstrom	default y
4585d07b786SDaniel Hellstrom	help
4591da177e4SLinus Torvalds	  Say Y here to include the GRPCI2 Host Bridge Driver.
4601da177e4SLinus Torvalds
4611da177e4SLinus Torvaldsconfig SUN_OPENPROMFS
4621da177e4SLinus Torvalds	tristate "Openprom tree appears in /proc/openprom"
4631da177e4SLinus Torvalds	help
4641da177e4SLinus Torvalds	  If you say Y, the OpenPROM device tree will be available as a
4651da177e4SLinus Torvalds	  virtual file system, which you can mount to /proc/openprom by "mount
4661da177e4SLinus Torvalds	  -t openpromfs none /proc/openprom".
4671da177e4SLinus Torvalds
4681da177e4SLinus Torvalds	  To compile the /proc/openprom support as a module, choose M here: the
4691da177e4SLinus Torvalds	  module will be called openpromfs.
4701da177e4SLinus Torvalds
4711da177e4SLinus Torvalds	  Only choose N if you know in advance that you will not need to modify
472a988fb80SThomas Petazzoni	  OpenPROM settings on the running system.
473d670bd4fSSam Ravnborg
474d670bd4fSSam Ravnborg# Makefile helpers
475d670bd4fSSam Ravnborgconfig SPARC64_PCI
476d670bd4fSSam Ravnborg	bool
47730aaa808SWilliam Lee Irwin III	default y
478a988fb80SThomas Petazzoni	depends on SPARC64 && PCI
479a988fb80SThomas Petazzoni
480a988fb80SThomas Petazzoniconfig SPARC64_PCI_MSI
481a988fb80SThomas Petazzoni	bool
482a988fb80SThomas Petazzoni	default y
48330aaa808SWilliam Lee Irwin III	depends on SPARC64_PCI && PCI_MSI
48430aaa808SWilliam Lee Irwin III
48526b4c912SSam Ravnborgendmenu
48626b4c912SSam Ravnborg
48726b4c912SSam Ravnborgconfig COMPAT
48826b4c912SSam Ravnborg	bool
489af1839ebSCatalin Marinas	depends on SPARC64
49048b25c43SChris Metcalf	default y
491a274bd49SAl Viro	select HAVE_UID16
49226b4c912SSam Ravnborg	select ARCH_WANT_OLD_COMPAT_IPC
4931da177e4SLinus Torvalds	select COMPAT_OLD_SIGACTION
494
495source "drivers/sbus/char/Kconfig"
496