xref: /linux/arch/sparc/Kconfig (revision 0fc8f6200d2313278fbf4539bbab74677c685531)
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
16dc2f4d41SThomas Weißschuh	select ARCH_HAS_CC_CAN_LINK
178690bbcfSMathieu Desnoyers	select ARCH_HAS_CPU_CACHE_ALIASING
18de6c85bfSChristoph Hellwig	select ARCH_HAS_DMA_OPS
19ff649a6fSMark Salter	select ARCH_MIGHT_HAVE_PC_PARPORT if SPARC64 && PCI
20a5252c28SMark Salter	select ARCH_MIGHT_HAVE_PC_SERIO
217b14c647SStephen Rothwell	select OF
223cfc535cSAndres Salomon	select OF_PROMTREE
232ff2b7ecSMasahiro Yamada	select HAVE_ASM_MODVERSIONS
2426b4c912SSam Ravnborg	select HAVE_ARCH_KGDB if !SMP || SPARC64
2535da3e39SSam Ravnborg	select HAVE_ARCH_TRACEHOOK
26282a181bSYiFei Zhu	select HAVE_ARCH_SECCOMP if SPARC64
275f56a5dfSJiri Slaby	select HAVE_EXIT_THREAD
28eb01d42aSChristoph Hellwig	select HAVE_PCI
297ac57a89SCatalin Marinas	select SYSCTL_EXCEPTION_TRACE
3035da3e39SSam Ravnborg	select RTC_CLASS
3135da3e39SSam Ravnborg	select RTC_DRV_M48T59
32460ea8d7SXunlei Pang	select RTC_SYSTOHC
334f6500ffSPaul Gortmaker	select HAVE_ARCH_JUMP_LABEL if SPARC64
346baa9b20SSam Ravnborg	select GENERIC_IRQ_SHOW
35c1d7e01dSWill Deacon	select ARCH_WANT_IPC_PARSE_VERSION
36a21a2fd4SMichael S. Tsirkin	select GENERIC_PCI_IOMAP
37fcbfe812SNiklas Schnelle	select HAS_IOPORT
38a5fcc236SPetr Mladek	select HAVE_HARDLOCKUP_DETECTOR_SPARC64 if SPARC64
397a12b503SDavid S. Miller	select HAVE_CBPF_JIT if SPARC32
407a12b503SDavid S. Miller	select HAVE_EBPF_JIT if SPARC64
419b2a60c4SCatalin Marinas	select HAVE_DEBUG_BUGVERBOSE
42f0a2bc7eSThomas Gleixner	select GENERIC_SMP_IDLE_THREAD
43786d35d4SDavid Howells	select MODULES_USE_ELF_RELA
4420f1b79dSChristoph Hellwig	select PCI_SYSCALL if PCI
45981aa1d3SThomas Gleixner	select PCI_MSI_ARCH_FALLBACKS if PCI_MSI
46eaca6eaeSAl Viro	select ODD_RT_SIGACTION
4752ad6b3fSAl Viro	select OLD_SIGSUSPEND
48fff7fb0bSZhaoxiu Zeng	select CPU_NO_EFFICIENT_FFS
49395102dbSDaniel Jordan	select LOCKDEP_SMALL if LOCKDEP
50f616ab59SChristoph Hellwig	select NEED_DMA_MAP_STATE
5186596f0aSChristoph Hellwig	select NEED_SG_DMA_LENGTH
524aae683fSMasahiro Yamada	select TRACE_IRQFLAGS_SUPPORT
5335da3e39SSam Ravnborg
5435da3e39SSam Ravnborgconfig SPARC32
55761b6026SBastian Blank	def_bool !64BIT
56942fa985SYury Norov	select ARCH_32BIT_OFF_T
5744ade508SThomas Gleixner	select ARCH_HAS_CPU_FINALIZE_INIT if !SMP
58dfaad39cSChristoph Hellwig	select ARCH_HAS_SYNC_DMA_FOR_CPU
59c6df4b17SDavid Miller	select CLZ_TAB
607d6db80bSChristoph Hellwig	select DMA_DIRECT_REMAP
617d6db80bSChristoph Hellwig	select GENERIC_ATOMIC64
62802a8874SSam Ravnborg	select GENERIC_LIB_CMPDI2
63802a8874SSam Ravnborg	select GENERIC_LIB_UCMPDI2
64af1839ebSCatalin Marinas	select HAVE_UID16
655394f1e9SArnd Bergmann	select HAVE_PAGE_SIZE_4KB
66a050ba1eSLinus Torvalds	select LOCK_MM_AND_FIND_VMA
67a274bd49SAl Viro	select OLD_SIGACTION
6863703f37SKefeng Wang	select ZONE_DMA
6935da3e39SSam Ravnborg
7026b4c912SSam Ravnborgconfig SPARC64
71761b6026SBastian Blank	def_bool 64BIT
7212700c17SArnd Bergmann	select ALTERNATE_USER_ADDRESS_SPACE
7326b4c912SSam Ravnborg	select HAVE_FUNCTION_TRACER
749960e9e8SDavid S. Miller	select HAVE_FUNCTION_GRAPH_TRACER
7526b4c912SSam Ravnborg	select HAVE_KRETPROBES
7626b4c912SSam Ravnborg	select HAVE_KPROBES
77ff2e6d72SPeter Zijlstra	select MMU_GATHER_RCU_TABLE_FREE if SMP
78086498aeSQi Zheng	select HAVE_ARCH_TLB_REMOVE_TABLE if SMP
791e9fdf21SPeter Zijlstra	select MMU_GATHER_MERGE_VMAS
801e9fdf21SPeter Zijlstra	select MMU_GATHER_NO_FLUSH_CACHE
81b9156ebbSDavid S. Miller	select HAVE_ARCH_TRANSPARENT_HUGEPAGE
829be12f9bSDavid S. Miller	select HAVE_DYNAMIC_FTRACE
835394f1e9SArnd Bergmann	select HAVE_PAGE_SIZE_8KB
84c658ad1bSDavid S. Miller	select HAVE_SYSCALL_TRACEPOINTS
8524a9c541SFrederic Weisbecker	select HAVE_CONTEXT_TRACKING_USER
86490f561bSFrederic Weisbecker	select HAVE_TIF_NOHZ
87b69ec42bSCatalin Marinas	select HAVE_DEBUG_KMEMLEAK
88a4ce5a48SChristoph Hellwig	select IOMMU_HELPER
89ee6a9333Sbob picco	select SPARSE_IRQ
9026b4c912SSam Ravnborg	select RTC_DRV_CMOS
9126b4c912SSam Ravnborg	select RTC_DRV_BQ4802
9226b4c912SSam Ravnborg	select RTC_DRV_SUN4V
9326b4c912SSam Ravnborg	select RTC_DRV_STARFIRE
94cdd6c482SIngo Molnar	select HAVE_PERF_EVENTS
95906010b2SPeter Zijlstra	select PERF_USE_VMALLOC
96df013ffbSHuang Ying	select ARCH_HAVE_NMI_SAFE_CMPXCHG
97178a2960SDavid S. Miller	select HAVE_C_RECORDMCOUNT
987a017721SAKASHI Takahiro	select HAVE_ARCH_AUDITSYSCALL
994badad35SPeter Zijlstra	select ARCH_SUPPORTS_ATOMIC_RMW
1005d6ad668SMike Rapoport	select ARCH_SUPPORTS_DEBUG_PAGEALLOC
1016470fb2bSAnshuman Khandual	select ARCH_SUPPORTS_HUGETLBFS
10242a0bb3fSPetr Mladek	select HAVE_NMI
103b7c02b73SDavid S. Miller	select HAVE_REGS_AND_STACK_ACCESS_API
104a37594f1SBabu Moger	select ARCH_USE_QUEUED_RWLOCKS
105145d9785SBabu Moger	select ARCH_USE_QUEUED_SPINLOCKS
1069a08862aSNagarathnam Muthusamy	select GENERIC_TIME_VSYSCALL
1073010a5eaSLaurent Dufour	select ARCH_HAS_PTE_SPECIAL
1082eac9c2dSChristoph Hellwig	select PCI_DOMAINS if PCI
1094eb0716eSAlexandre Ghiti	select ARCH_HAS_GIGANTIC_PAGE
110cd1a41ceSThomas Gleixner	select HAVE_SOFTIRQ_ON_OWN_STACK
1117ecd19cfSKefeng Wang	select HAVE_SETUP_PER_CPU_AREA
1127ecd19cfSKefeng Wang	select NEED_PER_CPU_EMBED_FIRST_CHUNK
1137ecd19cfSKefeng Wang	select NEED_PER_CPU_PAGE_FIRST_CHUNK
1147bd291abSPeter Zijlstra	select ARCH_SUPPORTS_SCHED_SMT if SMP
1157bd291abSPeter Zijlstra	select ARCH_SUPPORTS_SCHED_MC  if SMP
1167303ecbfSKevin Brodsky	select ARCH_HAS_LAZY_MMU_MODE
117*7c5fc16cSThomas Weißschuh	select HAVE_GENERIC_VDSO
118*7c5fc16cSThomas Weißschuh	select GENERIC_GETTIMEOFDAY
11926b4c912SSam Ravnborg
1203c08158eSDavid S. Millerconfig ARCH_PROC_KCORE_TEXT
1213c08158eSDavid S. Miller	def_bool y
1223c08158eSDavid S. Miller
12397d9f969SBabu Mogerconfig CPU_BIG_ENDIAN
12497d9f969SBabu Moger	def_bool y
12597d9f969SBabu Moger
12626b4c912SSam Ravnborgconfig STACKTRACE_SUPPORT
12726b4c912SSam Ravnborg	bool
12826b4c912SSam Ravnborg	default y if SPARC64
12926b4c912SSam Ravnborg
13026b4c912SSam Ravnborgconfig LOCKDEP_SUPPORT
13126b4c912SSam Ravnborg	bool
13226b4c912SSam Ravnborg	default y if SPARC64
13326b4c912SSam Ravnborg
134bdde6b3cSTkhai Kirillconfig ARCH_HIBERNATION_POSSIBLE
135bdde6b3cSTkhai Kirill	def_bool y if SPARC64
136bdde6b3cSTkhai Kirill
13726b4c912SSam Ravnborgconfig AUDIT_ARCH
13826b4c912SSam Ravnborg	bool
1397e7e93a2SDavid S. Miller	default y
14026b4c912SSam Ravnborg
1411da177e4SLinus Torvaldsconfig MMU
1421da177e4SLinus Torvalds	bool
1431da177e4SLinus Torvalds	default y
1441da177e4SLinus Torvalds
1451da177e4SLinus Torvaldsconfig HIGHMEM
1461da177e4SLinus Torvalds	bool
14726b4c912SSam Ravnborg	default y if SPARC32
1483293efa9SThomas Gleixner	select KMAP_LOCAL
1491da177e4SLinus Torvalds
15081a2936cSKirill A. Shutemovconfig PGTABLE_LEVELS
15181a2936cSKirill A. Shutemov	default 4 if 64BIT
15281a2936cSKirill A. Shutemov	default 3
15381a2936cSKirill A. Shutemov
154e8f4aa60SAllen Paisconfig ARCH_SUPPORTS_UPROBES
155e8f4aa60SAllen Pais	def_bool y if SPARC64
156e8f4aa60SAllen Pais
15726b4c912SSam Ravnborgmenu "Processor type and features"
1581da177e4SLinus Torvalds
1591da177e4SLinus Torvaldsconfig SMP
1606b7679ddSDavid S. Miller	bool "Symmetric multi-processing support"
161a7f7f624SMasahiro Yamada	help
1621da177e4SLinus Torvalds	  This enables support for systems with more than one CPU. If you have
1631da177e4SLinus Torvalds	  a system with only one CPU, say N. If you have a system with more
1641da177e4SLinus Torvalds	  than one CPU, say Y.
1651da177e4SLinus Torvalds
1664a474157SRobert Graffham	  If you say N here, the kernel will run on uni- and multiprocessor
1671da177e4SLinus Torvalds	  machines, but will use only one CPU of a multiprocessor machine. If
1681da177e4SLinus Torvalds	  you say Y here, the kernel will run on many, but not all,
1694a474157SRobert Graffham	  uniprocessor machines. On a uniprocessor machine, the kernel
1701da177e4SLinus Torvalds	  will run faster if you say N here.
1711da177e4SLinus Torvalds
1721da177e4SLinus Torvalds	  People using multiprocessor machines who say Y here should also say
1731da177e4SLinus Torvalds	  Y to "Enhanced Real Time Clock Support", below. The "Advanced Power
1741da177e4SLinus Torvalds	  Management" code will be disabled if you say Y here.
1751da177e4SLinus Torvalds
1764f4cfa6cSMauro Carvalho Chehab	  See also <file:Documentation/admin-guide/lockup-watchdogs.rst> and the SMP-HOWTO
17737719576SAlexander A. Klimov	  available at <https://www.tldp.org/docs.html#howto>.
1781da177e4SLinus Torvalds
1791da177e4SLinus Torvalds	  If you don't know what to do here, say N.
1801da177e4SLinus Torvalds
1811da177e4SLinus Torvaldsconfig NR_CPUS
18226b4c912SSam Ravnborg	int "Maximum number of CPUs"
1831da177e4SLinus Torvalds	depends on SMP
18426b4c912SSam Ravnborg	range 2 32 if SPARC32
185c79a1373SJane Chu	range 2 4096 if SPARC64
18626b4c912SSam Ravnborg	default 32 if SPARC32
187c79a1373SJane Chu	default 4096 if SPARC64
1881da177e4SLinus Torvalds
1898636a1f9SMasahiro Yamadasource "kernel/Kconfig.hz"
19026b4c912SSam Ravnborg
19126b4c912SSam Ravnborgconfig GENERIC_HWEIGHT
19226b4c912SSam Ravnborg	bool
193e0b20296SPaul Bolle	default y
19426b4c912SSam Ravnborg
19526b4c912SSam Ravnborgconfig GENERIC_CALIBRATE_DELAY
19626b4c912SSam Ravnborg	bool
19726b4c912SSam Ravnborg	default y
19826b4c912SSam Ravnborg
19926b4c912SSam Ravnborgconfig ARCH_MAY_HAVE_PC_FDC
20026b4c912SSam Ravnborg	bool
20126b4c912SSam Ravnborg	default y
20226b4c912SSam Ravnborg
20326b4c912SSam Ravnborgconfig EMULATED_CMPXCHG
20426b4c912SSam Ravnborg	bool
20526b4c912SSam Ravnborg	default y if SPARC32
20626b4c912SSam Ravnborg	help
20726b4c912SSam Ravnborg	  Sparc32 does not have a CAS instruction like sparc64. cmpxchg()
20826b4c912SSam Ravnborg	  is emulated, and therefore it is not completely atomic.
20926b4c912SSam Ravnborg
210d670bd4fSSam Ravnborg# Makefile helpers
211d670bd4fSSam Ravnborgconfig SPARC32_SMP
212d670bd4fSSam Ravnborg	bool
213d670bd4fSSam Ravnborg	default y
214d670bd4fSSam Ravnborg	depends on SPARC32 && SMP
215d670bd4fSSam Ravnborg
216d670bd4fSSam Ravnborgconfig SPARC64_SMP
217d670bd4fSSam Ravnborg	bool
218d670bd4fSSam Ravnborg	default y
219d670bd4fSSam Ravnborg	depends on SPARC64 && SMP
220d670bd4fSSam Ravnborg
221c57ec52fSDavid S. Millerconfig EARLYFB
222c57ec52fSDavid S. Miller	bool "Support for early boot text console"
223c57ec52fSDavid S. Miller	default y
224c57ec52fSDavid S. Miller	depends on SPARC64
2250f199194SDr. David Alan Gilbert	select FONT_SUN8x16
2260f199194SDr. David Alan Gilbert	select FONT_SUPPORT
227c57ec52fSDavid S. Miller	help
228c57ec52fSDavid S. Miller	  Say Y here to enable a faster early framebuffer boot console.
229c57ec52fSDavid S. Miller
23026b4c912SSam Ravnborgconfig HOTPLUG_CPU
23126b4c912SSam Ravnborg	bool "Support for hot-pluggable CPUs"
23226b4c912SSam Ravnborg	depends on SPARC64 && SMP
23326b4c912SSam Ravnborg	help
23426b4c912SSam Ravnborg	  Say Y here to experiment with turning CPUs off and on.  CPUs
23526b4c912SSam Ravnborg	  can be controlled through /sys/devices/system/cpu/cpu#.
23626b4c912SSam Ravnborg	  Say N if you want to disable CPU hotplug.
23726b4c912SSam Ravnborg
23826b4c912SSam Ravnborgif SPARC64
23926b4c912SSam Ravnborgsource "drivers/cpufreq/Kconfig"
24026b4c912SSam Ravnborgendif
24126b4c912SSam Ravnborg
24226b4c912SSam Ravnborgconfig US3_MC
24326b4c912SSam Ravnborg	tristate "UltraSPARC-III Memory Controller driver"
24426b4c912SSam Ravnborg	depends on SPARC64
24526b4c912SSam Ravnborg	default y
24626b4c912SSam Ravnborg	help
24726b4c912SSam Ravnborg	  This adds a driver for the UltraSPARC-III memory controller.
24826b4c912SSam Ravnborg	  Loading this driver allows exact mnemonic strings to be
24926b4c912SSam Ravnborg	  printed in the event of a memory error, so that the faulty DIMM
25026b4c912SSam Ravnborg	  on the motherboard can be matched to the error.
25126b4c912SSam Ravnborg
25226b4c912SSam Ravnborg	  If in doubt, say Y, as this information can be very useful.
2531da177e4SLinus Torvalds
2541da177e4SLinus Torvalds# Global things across all Sun machines.
25526b4c912SSam Ravnborgconfig GENERIC_LOCKBREAK
25626b4c912SSam Ravnborg	bool
25726b4c912SSam Ravnborg	default y
25885a683d0SThomas Gleixner	depends on SPARC64 && SMP && PREEMPTION
25926b4c912SSam Ravnborg
26026b4c912SSam Ravnborgconfig NUMA
26126b4c912SSam Ravnborg	bool "NUMA support"
26226b4c912SSam Ravnborg	depends on SPARC64 && SMP
26326b4c912SSam Ravnborg
26426b4c912SSam Ravnborgconfig NODES_SHIFT
2657485af89SJane Chu	int "Maximum NUMA Nodes (as a power of 2)"
2667485af89SJane Chu	range 4 5 if SPARC64
2677485af89SJane Chu	default "5"
268a9ee6cf5SMike Rapoport	depends on NUMA
2697485af89SJane Chu	help
2707485af89SJane Chu	  Specify the maximum number of NUMA Nodes available on the target
2717485af89SJane Chu	  system.  Increases memory reserved to accommodate various tables.
27226b4c912SSam Ravnborg
27326b4c912SSam Ravnborgconfig ARCH_SPARSEMEM_ENABLE
27426b4c912SSam Ravnborg	def_bool y if SPARC64
27526b4c912SSam Ravnborg	select SPARSEMEM_VMEMMAP_ENABLE
27626b4c912SSam Ravnborg
27726b4c912SSam Ravnborgconfig ARCH_SPARSEMEM_DEFAULT
27826b4c912SSam Ravnborg	def_bool y if SPARC64
27926b4c912SSam Ravnborg
2800192445cSZi Yanconfig ARCH_FORCE_MAX_ORDER
2818def4c05SMike Rapoport (IBM)	int "Order of maximal physically contiguous allocations"
28223baf831SKirill A. Shutemov	default "12"
283c88c545bSDave Kleikamp	help
2848def4c05SMike Rapoport (IBM)	  The kernel page allocator limits the size of maximal physically
2855e0a760bSKirill A. Shutemov	  contiguous allocations. The limit is called MAX_PAGE_ORDER and it
2868def4c05SMike Rapoport (IBM)	  defines the maximal power of two of number of pages that can be
2878def4c05SMike Rapoport (IBM)	  allocated as a single contiguous block. This option allows
2888def4c05SMike Rapoport (IBM)	  overriding the default setting when ability to allocate very
2898def4c05SMike Rapoport (IBM)	  large blocks of physically contiguous memory is required.
290c88c545bSDave Kleikamp
2918def4c05SMike Rapoport (IBM)	  Don't change if unsure.
292c88c545bSDave Kleikamp
2937be6a87cSRandy Dunlapif SPARC64 || COMPILE_TEST
294bdde6b3cSTkhai Kirillsource "kernel/power/Kconfig"
295bdde6b3cSTkhai Kirillendif
296bdde6b3cSTkhai Kirill
29726b4c912SSam Ravnborgconfig CMDLINE_BOOL
29826b4c912SSam Ravnborg	bool "Default bootloader kernel arguments"
29926b4c912SSam Ravnborg	depends on SPARC64
30026b4c912SSam Ravnborg
30126b4c912SSam Ravnborgconfig CMDLINE
30226b4c912SSam Ravnborg	string "Initial kernel command string"
30326b4c912SSam Ravnborg	depends on CMDLINE_BOOL
30426b4c912SSam Ravnborg	default "console=ttyS0,9600 root=/dev/sda1"
30526b4c912SSam Ravnborg	help
30626b4c912SSam Ravnborg	  Say Y here if you want to be able to pass default arguments to
30726b4c912SSam Ravnborg	  the kernel. This will be overridden by the bootloader, if you
30826b4c912SSam Ravnborg	  use one (such as SILO). This is most useful if you want to boot
30926b4c912SSam Ravnborg	  a kernel from TFTP, and want default options to be available
31026b4c912SSam Ravnborg	  with having them passed on the command line.
31126b4c912SSam Ravnborg
31226b4c912SSam Ravnborg	  NOTE: This option WILL override the PROM bootargs setting!
31326b4c912SSam Ravnborg
31426b4c912SSam Ravnborgconfig SUN_PM
31526b4c912SSam Ravnborg	bool
31626b4c912SSam Ravnborg	default y if SPARC32
31726b4c912SSam Ravnborg	help
31826b4c912SSam Ravnborg	  Enable power management and CPU standby features on supported
31926b4c912SSam Ravnborg	  SPARC platforms.
32026b4c912SSam Ravnborg
32126b4c912SSam Ravnborgconfig SPARC_LED
32226b4c912SSam Ravnborg	tristate "Sun4m LED driver"
32326b4c912SSam Ravnborg	depends on SPARC32
32426b4c912SSam Ravnborg	help
32526b4c912SSam Ravnborg	  This driver toggles the front-panel LED on sun4m systems
32626b4c912SSam Ravnborg	  in a user-specifiable manner.  Its state can be probed
32726b4c912SSam Ravnborg	  by reading /proc/led and its blinking mode can be changed
32826b4c912SSam Ravnborg	  via writes to /proc/led
32926b4c912SSam Ravnborg
3301da177e4SLinus Torvaldsconfig SERIAL_CONSOLE
3311da177e4SLinus Torvalds	bool
33226b4c912SSam Ravnborg	depends on SPARC32
3331da177e4SLinus Torvalds	default y
334a7f7f624SMasahiro Yamada	help
3351da177e4SLinus Torvalds	  If you say Y here, it will be possible to use a serial port as the
3361da177e4SLinus Torvalds	  system console (the system console is the device which receives all
3371da177e4SLinus Torvalds	  kernel messages and warnings and which allows logins in single user
3381da177e4SLinus Torvalds	  mode). This could be useful if some terminal or printer is connected
3391da177e4SLinus Torvalds	  to that serial port.
3401da177e4SLinus Torvalds
3411da177e4SLinus Torvalds	  Even if you say Y here, the currently visible virtual console
3421da177e4SLinus Torvalds	  (/dev/tty0) will still be used as the system console by default, but
3431da177e4SLinus Torvalds	  you can alter that using a kernel command line option such as
3441da177e4SLinus Torvalds	  "console=ttyS1". (Try "man bootparam" or see the documentation of
3451da177e4SLinus Torvalds	  your boot loader (silo) about how to pass options to the kernel at
3461da177e4SLinus Torvalds	  boot time.)
3471da177e4SLinus Torvalds
3481da177e4SLinus Torvalds	  If you don't have a graphics card installed and you say Y here, the
3491da177e4SLinus Torvalds	  kernel will automatically use the first serial line, /dev/ttyS0, as
3501da177e4SLinus Torvalds	  system console.
3511da177e4SLinus Torvalds
3521da177e4SLinus Torvalds	  If unsure, say N.
3531da177e4SLinus Torvalds
3545213a780SKonrad Eiseleconfig SPARC_LEON
3555213a780SKonrad Eisele	bool "Sparc Leon processor family"
3565213a780SKonrad Eisele	depends on SPARC32
3579296d94dSFlorian Fainelli	select USB_EHCI_BIG_ENDIAN_MMIO
3589296d94dSFlorian Fainelli	select USB_EHCI_BIG_ENDIAN_DESC
3595efad9eeSJames Hogan	select USB_UHCI_BIG_ENDIAN_MMIO
3605efad9eeSJames Hogan	select USB_UHCI_BIG_ENDIAN_DESC
361a7f7f624SMasahiro Yamada	help
3625213a780SKonrad Eisele	  If you say Y here if you are running on a SPARC-LEON processor.
3635213a780SKonrad Eisele	  The LEON processor is a synthesizable VHDL model of the
3645213a780SKonrad Eisele	  SPARC-v8 standard. LEON is  part of the GRLIB collection of
3655213a780SKonrad Eisele	  IP cores that are distributed under GPL. GRLIB can be downloaded
3665213a780SKonrad Eisele	  from www.gaisler.com. You can download a sparc-linux cross-compilation
3675213a780SKonrad Eisele	  toolchain at www.gaisler.com.
3685213a780SKonrad Eisele
369684151a7SDaniel Hellstromif SPARC_LEON
370684151a7SDaniel Hellstrommenu "U-Boot options"
371684151a7SDaniel Hellstrom
372684151a7SDaniel Hellstromconfig UBOOT_LOAD_ADDR
373684151a7SDaniel Hellstrom	hex "uImage Load Address"
374684151a7SDaniel Hellstrom	default 0x40004000
375a7f7f624SMasahiro Yamada	help
376684151a7SDaniel Hellstrom	 U-Boot kernel load address, the address in physical address space
377684151a7SDaniel Hellstrom	 where u-boot will place the Linux kernel before booting it.
378684151a7SDaniel Hellstrom	 This address is normally the base address of main memory + 0x4000.
379684151a7SDaniel Hellstrom
380684151a7SDaniel Hellstromconfig UBOOT_FLASH_ADDR
381684151a7SDaniel Hellstrom	hex "uImage.o Load Address"
382684151a7SDaniel Hellstrom	default 0x00080000
383a7f7f624SMasahiro Yamada	help
384684151a7SDaniel Hellstrom	 Optional setting only affecting the uImage.o ELF-image used to
385684151a7SDaniel Hellstrom	 download the uImage file to the target using a ELF-loader other than
386684151a7SDaniel Hellstrom	 U-Boot. It may for example be used to download an uImage to FLASH with
387684151a7SDaniel Hellstrom	 the GRMON utility before even starting u-boot.
388684151a7SDaniel Hellstrom
389684151a7SDaniel Hellstromconfig UBOOT_ENTRY_ADDR
390684151a7SDaniel Hellstrom	hex "uImage Entry Address"
391684151a7SDaniel Hellstrom	default 0xf0004000
392a7f7f624SMasahiro Yamada	help
393684151a7SDaniel Hellstrom	 Do not change this unless you know what you're doing. This is
394684151a7SDaniel Hellstrom	 hardcoded by the SPARC32 and LEON port.
395684151a7SDaniel Hellstrom
396684151a7SDaniel Hellstrom	 This is the virtual address u-boot jumps to when booting the Linux
397684151a7SDaniel Hellstrom	 Kernel.
398684151a7SDaniel Hellstrom
399684151a7SDaniel Hellstromendmenu
400684151a7SDaniel Hellstromendif
401684151a7SDaniel Hellstrom
4024b27e0e1SSam Ravnborgendmenu
4034b27e0e1SSam Ravnborg
4044b27e0e1SSam Ravnborgmenu "Bus options (PCI etc.)"
4054b27e0e1SSam Ravnborgconfig SBUS
4064b27e0e1SSam Ravnborg	bool
4074b27e0e1SSam Ravnborg	default y
4084b27e0e1SSam Ravnborg
4094b27e0e1SSam Ravnborgconfig SBUSCHAR
4104b27e0e1SSam Ravnborg	bool
4114b27e0e1SSam Ravnborg	default y
4124b27e0e1SSam Ravnborg
41326b4c912SSam Ravnborgconfig SUN_LDOMS
41426b4c912SSam Ravnborg	bool "Sun Logical Domains support"
41526b4c912SSam Ravnborg	depends on SPARC64
41626b4c912SSam Ravnborg	help
41726b4c912SSam Ravnborg	  Say Y here is you want to support virtual devices via
41826b4c912SSam Ravnborg	  Logical Domains.
41926b4c912SSam Ravnborg
420cfe3af5dSDaniel Hellstromconfig PCIC_PCI
421cfe3af5dSDaniel Hellstrom	bool
4228c47f8d0SDavid S. Miller	depends on PCI && SPARC32 && !SPARC_LEON
423cfe3af5dSDaniel Hellstrom	default y
424cfe3af5dSDaniel Hellstrom
42526893c13SDaniel Hellstromconfig LEON_PCI
42626893c13SDaniel Hellstrom	bool
42726893c13SDaniel Hellstrom	depends on PCI && SPARC_LEON
42826893c13SDaniel Hellstrom	default y
42926893c13SDaniel Hellstrom
430d8650106SDaniel Hellstromconfig SPARC_GRPCI1
431d8650106SDaniel Hellstrom	bool "GRPCI Host Bridge Support"
432d8650106SDaniel Hellstrom	depends on LEON_PCI
433d8650106SDaniel Hellstrom	default y
434d8650106SDaniel Hellstrom	help
435d8650106SDaniel Hellstrom	  Say Y here to include the GRPCI Host Bridge Driver. The GRPCI
436d8650106SDaniel Hellstrom	  PCI host controller is typically found in GRLIB SPARC32/LEON
437d8650106SDaniel Hellstrom	  systems. The driver has one property (all_pci_errors) controlled
438d8650106SDaniel Hellstrom	  from the bootloader that makes the GRPCI to generate interrupts
439d8650106SDaniel Hellstrom	  on detected PCI Parity and System errors.
440d8650106SDaniel Hellstrom
4411ab0a676SDaniel Hellstromconfig SPARC_GRPCI2
4425d07b786SDaniel Hellstrom	bool "GRPCI2 Host Bridge Support"
4435d07b786SDaniel Hellstrom	depends on LEON_PCI
4445d07b786SDaniel Hellstrom	default y
4455d07b786SDaniel Hellstrom	help
4465d07b786SDaniel Hellstrom	  Say Y here to include the GRPCI2 Host Bridge Driver.
4475d07b786SDaniel Hellstrom
4481da177e4SLinus Torvaldsconfig SUN_OPENPROMFS
4491da177e4SLinus Torvalds	tristate "Openprom tree appears in /proc/openprom"
4501da177e4SLinus Torvalds	help
4511da177e4SLinus Torvalds	  If you say Y, the OpenPROM device tree will be available as a
4521da177e4SLinus Torvalds	  virtual file system, which you can mount to /proc/openprom by "mount
4531da177e4SLinus Torvalds	  -t openpromfs none /proc/openprom".
4541da177e4SLinus Torvalds
4551da177e4SLinus Torvalds	  To compile the /proc/openprom support as a module, choose M here: the
4561da177e4SLinus Torvalds	  module will be called openpromfs.
4571da177e4SLinus Torvalds
4581da177e4SLinus Torvalds	  Only choose N if you know in advance that you will not need to modify
4591da177e4SLinus Torvalds	  OpenPROM settings on the running system.
4601da177e4SLinus Torvalds
461a988fb80SThomas Petazzoni# Makefile helpers
462d670bd4fSSam Ravnborgconfig SPARC64_PCI
463d670bd4fSSam Ravnborg	bool
464d670bd4fSSam Ravnborg	default y
465d670bd4fSSam Ravnborg	depends on SPARC64 && PCI
46630aaa808SWilliam Lee Irwin III
467a988fb80SThomas Petazzoniconfig SPARC64_PCI_MSI
468a988fb80SThomas Petazzoni	bool
469a988fb80SThomas Petazzoni	default y
470a988fb80SThomas Petazzoni	depends on SPARC64_PCI && PCI_MSI
471a988fb80SThomas Petazzoni
47230aaa808SWilliam Lee Irwin IIIendmenu
47330aaa808SWilliam Lee Irwin III
47426b4c912SSam Ravnborgconfig COMPAT
47526b4c912SSam Ravnborg	bool
47626b4c912SSam Ravnborg	depends on SPARC64
47726b4c912SSam Ravnborg	default y
478af1839ebSCatalin Marinas	select HAVE_UID16
47948b25c43SChris Metcalf	select ARCH_WANT_OLD_COMPAT_IPC
480a274bd49SAl Viro	select COMPAT_OLD_SIGACTION
48126b4c912SSam Ravnborg
482dc2f4d41SThomas Weißschuhconfig ARCH_CC_CAN_LINK
483dc2f4d41SThomas Weißschuh	bool
484dc2f4d41SThomas Weißschuh	default $(cc_can_link_user,-m64) if 64BIT
485dc2f4d41SThomas Weißschuh	default $(cc_can_link_user,-m32)
486dc2f4d41SThomas Weißschuh
487dc2f4d41SThomas Weißschuhconfig ARCH_USERFLAGS
488dc2f4d41SThomas Weißschuh	string
489dc2f4d41SThomas Weißschuh	default "-m64" if 64BIT
490dc2f4d41SThomas Weißschuh	default "-m32"
491dc2f4d41SThomas Weißschuh
4921da177e4SLinus Torvaldssource "drivers/sbus/char/Kconfig"
493