xref: /linux/arch/sparc/Kconfig (revision 8a2fbffcbfcb60378626e5d4144a6ff43f3b6776)
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
168690bbcfSMathieu Desnoyers	select ARCH_HAS_CPU_CACHE_ALIASING
17ff649a6fSMark Salter	select ARCH_HAS_DMA_OPS
18a5252c28SMark Salter	select ARCH_MIGHT_HAVE_PC_PARPORT if SPARC64 && PCI
192f9237d4SChristoph Hellwig	select ARCH_MIGHT_HAVE_PC_SERIO
207b14c647SStephen Rothwell	select OF
213cfc535cSAndres Salomon	select OF_PROMTREE
222ff2b7ecSMasahiro Yamada	select HAVE_ASM_MODVERSIONS
2326b4c912SSam Ravnborg	select HAVE_ARCH_KGDB if !SMP || SPARC64
2435da3e39SSam Ravnborg	select HAVE_ARCH_TRACEHOOK
25282a181bSYiFei Zhu	select HAVE_ARCH_SECCOMP if SPARC64
265f56a5dfSJiri Slaby	select HAVE_EXIT_THREAD
27eb01d42aSChristoph Hellwig	select HAVE_PCI
287ac57a89SCatalin Marinas	select SYSCTL_EXCEPTION_TRACE
2935da3e39SSam Ravnborg	select RTC_CLASS
3035da3e39SSam Ravnborg	select RTC_DRV_M48T59
31460ea8d7SXunlei Pang	select RTC_SYSTOHC
324f6500ffSPaul Gortmaker	select HAVE_ARCH_JUMP_LABEL if SPARC64
336baa9b20SSam Ravnborg	select GENERIC_IRQ_SHOW
34c1d7e01dSWill Deacon	select ARCH_WANT_IPC_PARSE_VERSION
35a21a2fd4SMichael S. Tsirkin	select GENERIC_PCI_IOMAP
36fcbfe812SNiklas Schnelle	select HAS_IOPORT
37a5fcc236SPetr Mladek	select HAVE_HARDLOCKUP_DETECTOR_SPARC64 if SPARC64
387a12b503SDavid S. Miller	select HAVE_CBPF_JIT if SPARC32
397a12b503SDavid S. Miller	select HAVE_EBPF_JIT if SPARC64
409b2a60c4SCatalin Marinas	select HAVE_DEBUG_BUGVERBOSE
41f0a2bc7eSThomas Gleixner	select GENERIC_SMP_IDLE_THREAD
42786d35d4SDavid Howells	select MODULES_USE_ELF_RELA
4320f1b79dSChristoph Hellwig	select PCI_SYSCALL if PCI
44981aa1d3SThomas Gleixner	select PCI_MSI_ARCH_FALLBACKS if PCI_MSI
45eaca6eaeSAl Viro	select ODD_RT_SIGACTION
4652ad6b3fSAl Viro	select OLD_SIGSUSPEND
47fff7fb0bSZhaoxiu Zeng	select CPU_NO_EFFICIENT_FFS
48395102dbSDaniel Jordan	select LOCKDEP_SMALL if LOCKDEP
49f616ab59SChristoph Hellwig	select NEED_DMA_MAP_STATE
5086596f0aSChristoph Hellwig	select NEED_SG_DMA_LENGTH
514aae683fSMasahiro Yamada	select TRACE_IRQFLAGS_SUPPORT
5235da3e39SSam Ravnborg
5335da3e39SSam Ravnborgconfig SPARC32
54761b6026SBastian Blank	def_bool !64BIT
55942fa985SYury Norov	select ARCH_32BIT_OFF_T
5644ade508SThomas Gleixner	select ARCH_HAS_CPU_FINALIZE_INIT if !SMP
57dfaad39cSChristoph Hellwig	select ARCH_HAS_SYNC_DMA_FOR_CPU
58c6df4b17SDavid Miller	select CLZ_TAB
597d6db80bSChristoph Hellwig	select DMA_DIRECT_REMAP
607d6db80bSChristoph Hellwig	select GENERIC_ATOMIC64
61*802a8874SSam Ravnborg	select GENERIC_LIB_CMPDI2
62*802a8874SSam Ravnborg	select GENERIC_LIB_UCMPDI2
63af1839ebSCatalin Marinas	select HAVE_UID16
645394f1e9SArnd Bergmann	select HAVE_PAGE_SIZE_4KB
65a050ba1eSLinus Torvalds	select LOCK_MM_AND_FIND_VMA
66a274bd49SAl Viro	select OLD_SIGACTION
6763703f37SKefeng Wang	select ZONE_DMA
6835da3e39SSam Ravnborg
6926b4c912SSam Ravnborgconfig SPARC64
70761b6026SBastian Blank	def_bool 64BIT
7112700c17SArnd Bergmann	select ALTERNATE_USER_ADDRESS_SPACE
7226b4c912SSam Ravnborg	select HAVE_FUNCTION_TRACER
739960e9e8SDavid S. Miller	select HAVE_FUNCTION_GRAPH_TRACER
7426b4c912SSam Ravnborg	select HAVE_KRETPROBES
7526b4c912SSam Ravnborg	select HAVE_KPROBES
76ff2e6d72SPeter Zijlstra	select MMU_GATHER_RCU_TABLE_FREE if SMP
771e9fdf21SPeter Zijlstra	select MMU_GATHER_MERGE_VMAS
781e9fdf21SPeter Zijlstra	select MMU_GATHER_NO_FLUSH_CACHE
79b9156ebbSDavid S. Miller	select HAVE_ARCH_TRANSPARENT_HUGEPAGE
809be12f9bSDavid S. Miller	select HAVE_DYNAMIC_FTRACE
819be12f9bSDavid S. Miller	select HAVE_PAGE_SIZE_8KB
825394f1e9SArnd Bergmann	select HAVE_SYSCALL_TRACEPOINTS
83c658ad1bSDavid S. Miller	select HAVE_CONTEXT_TRACKING_USER
8424a9c541SFrederic Weisbecker	select HAVE_TIF_NOHZ
85490f561bSFrederic Weisbecker	select HAVE_DEBUG_KMEMLEAK
86b69ec42bSCatalin Marinas	select IOMMU_HELPER
87a4ce5a48SChristoph Hellwig	select SPARSE_IRQ
88ee6a9333Sbob picco	select RTC_DRV_CMOS
8926b4c912SSam Ravnborg	select RTC_DRV_BQ4802
9026b4c912SSam Ravnborg	select RTC_DRV_SUN4V
9126b4c912SSam Ravnborg	select RTC_DRV_STARFIRE
9226b4c912SSam Ravnborg	select HAVE_PERF_EVENTS
93cdd6c482SIngo Molnar	select PERF_USE_VMALLOC
94906010b2SPeter Zijlstra	select ARCH_HAVE_NMI_SAFE_CMPXCHG
95df013ffbSHuang Ying	select HAVE_C_RECORDMCOUNT
96178a2960SDavid S. Miller	select HAVE_ARCH_AUDITSYSCALL
977a017721SAKASHI Takahiro	select ARCH_SUPPORTS_ATOMIC_RMW
984badad35SPeter Zijlstra	select ARCH_SUPPORTS_DEBUG_PAGEALLOC
995d6ad668SMike Rapoport	select ARCH_SUPPORTS_HUGETLBFS
10042a0bb3fSPetr Mladek	select HAVE_NMI
101b7c02b73SDavid S. Miller	select HAVE_REGS_AND_STACK_ACCESS_API
102a37594f1SBabu Moger	select ARCH_USE_QUEUED_RWLOCKS
103145d9785SBabu Moger	select ARCH_USE_QUEUED_SPINLOCKS
1049a08862aSNagarathnam Muthusamy	select GENERIC_TIME_VSYSCALL
1059a08862aSNagarathnam Muthusamy	select ARCH_CLOCKSOURCE_DATA
1063010a5eaSLaurent Dufour	select ARCH_HAS_PTE_SPECIAL
1072eac9c2dSChristoph Hellwig	select PCI_DOMAINS if PCI
1084eb0716eSAlexandre Ghiti	select ARCH_HAS_GIGANTIC_PAGE
109cd1a41ceSThomas Gleixner	select HAVE_SOFTIRQ_ON_OWN_STACK
1107ecd19cfSKefeng Wang	select HAVE_SETUP_PER_CPU_AREA
1117ecd19cfSKefeng Wang	select NEED_PER_CPU_EMBED_FIRST_CHUNK
1127ecd19cfSKefeng Wang	select NEED_PER_CPU_PAGE_FIRST_CHUNK
11326b4c912SSam Ravnborg	select ARCH_SUPPORTS_SCHED_SMT if SMP
1143c08158eSDavid S. Miller	select ARCH_SUPPORTS_SCHED_MC  if SMP
1153c08158eSDavid S. Miller
1163c08158eSDavid S. Millerconfig ARCH_PROC_KCORE_TEXT
11797d9f969SBabu Moger	def_bool y
11897d9f969SBabu Moger
11997d9f969SBabu Mogerconfig CPU_BIG_ENDIAN
12026b4c912SSam Ravnborg	def_bool y
12126b4c912SSam Ravnborg
12226b4c912SSam Ravnborgconfig STACKTRACE_SUPPORT
12326b4c912SSam Ravnborg	bool
12426b4c912SSam Ravnborg	default y if SPARC64
12526b4c912SSam Ravnborg
12626b4c912SSam Ravnborgconfig LOCKDEP_SUPPORT
12726b4c912SSam Ravnborg	bool
128bdde6b3cSTkhai Kirill	default y if SPARC64
129bdde6b3cSTkhai Kirill
130bdde6b3cSTkhai Kirillconfig ARCH_HIBERNATION_POSSIBLE
13126b4c912SSam Ravnborg	def_bool y if SPARC64
13226b4c912SSam Ravnborg
1337e7e93a2SDavid S. Millerconfig AUDIT_ARCH
13426b4c912SSam Ravnborg	bool
1351da177e4SLinus Torvalds	default y
1361da177e4SLinus Torvalds
1371da177e4SLinus Torvaldsconfig MMU
1381da177e4SLinus Torvalds	bool
1391da177e4SLinus Torvalds	default y
1401da177e4SLinus Torvalds
14126b4c912SSam Ravnborgconfig HIGHMEM
1423293efa9SThomas Gleixner	bool
1431da177e4SLinus Torvalds	default y if SPARC32
14481a2936cSKirill A. Shutemov	select KMAP_LOCAL
14581a2936cSKirill A. Shutemov
14681a2936cSKirill A. Shutemovconfig PGTABLE_LEVELS
14781a2936cSKirill A. Shutemov	default 4 if 64BIT
148e8f4aa60SAllen Pais	default 3
149e8f4aa60SAllen Pais
150e8f4aa60SAllen Paisconfig ARCH_SUPPORTS_UPROBES
15126b4c912SSam Ravnborg	def_bool y if SPARC64
1521da177e4SLinus Torvalds
1531da177e4SLinus Torvaldsmenu "Processor type and features"
1546b7679ddSDavid S. Miller
155a7f7f624SMasahiro Yamadaconfig SMP
1561da177e4SLinus Torvalds	bool "Symmetric multi-processing support"
1571da177e4SLinus Torvalds	help
1581da177e4SLinus Torvalds	  This enables support for systems with more than one CPU. If you have
1591da177e4SLinus Torvalds	  a system with only one CPU, say N. If you have a system with more
1604a474157SRobert Graffham	  than one CPU, say Y.
1611da177e4SLinus Torvalds
1621da177e4SLinus Torvalds	  If you say N here, the kernel will run on uni- and multiprocessor
1634a474157SRobert Graffham	  machines, but will use only one CPU of a multiprocessor machine. If
1641da177e4SLinus Torvalds	  you say Y here, the kernel will run on many, but not all,
1651da177e4SLinus Torvalds	  uniprocessor machines. On a uniprocessor machine, the kernel
1661da177e4SLinus Torvalds	  will run faster if you say N here.
1671da177e4SLinus Torvalds
1681da177e4SLinus Torvalds	  People using multiprocessor machines who say Y here should also say
1691da177e4SLinus Torvalds	  Y to "Enhanced Real Time Clock Support", below. The "Advanced Power
1704f4cfa6cSMauro Carvalho Chehab	  Management" code will be disabled if you say Y here.
17137719576SAlexander A. Klimov
1721da177e4SLinus Torvalds	  See also <file:Documentation/admin-guide/lockup-watchdogs.rst> and the SMP-HOWTO
1731da177e4SLinus Torvalds	  available at <https://www.tldp.org/docs.html#howto>.
1741da177e4SLinus Torvalds
1751da177e4SLinus Torvalds	  If you don't know what to do here, say N.
17626b4c912SSam Ravnborg
1771da177e4SLinus Torvaldsconfig NR_CPUS
17826b4c912SSam Ravnborg	int "Maximum number of CPUs"
179c79a1373SJane Chu	depends on SMP
18026b4c912SSam Ravnborg	range 2 32 if SPARC32
181c79a1373SJane Chu	range 2 4096 if SPARC64
1821da177e4SLinus Torvalds	default 32 if SPARC32
1838636a1f9SMasahiro Yamada	default 4096 if SPARC64
18426b4c912SSam Ravnborg
18526b4c912SSam Ravnborgsource "kernel/Kconfig.hz"
18626b4c912SSam Ravnborg
187e0b20296SPaul Bolleconfig GENERIC_HWEIGHT
18826b4c912SSam Ravnborg	bool
18926b4c912SSam Ravnborg	default y
19026b4c912SSam Ravnborg
19126b4c912SSam Ravnborgconfig GENERIC_CALIBRATE_DELAY
19226b4c912SSam Ravnborg	bool
19326b4c912SSam Ravnborg	default y
19426b4c912SSam Ravnborg
19526b4c912SSam Ravnborgconfig ARCH_MAY_HAVE_PC_FDC
19626b4c912SSam Ravnborg	bool
19726b4c912SSam Ravnborg	default y
19826b4c912SSam Ravnborg
19926b4c912SSam Ravnborgconfig EMULATED_CMPXCHG
20026b4c912SSam Ravnborg	bool
20126b4c912SSam Ravnborg	default y if SPARC32
20226b4c912SSam Ravnborg	help
20326b4c912SSam Ravnborg	  Sparc32 does not have a CAS instruction like sparc64. cmpxchg()
204d670bd4fSSam Ravnborg	  is emulated, and therefore it is not completely atomic.
205d670bd4fSSam Ravnborg
206d670bd4fSSam Ravnborg# Makefile helpers
207d670bd4fSSam Ravnborgconfig SPARC32_SMP
208d670bd4fSSam Ravnborg	bool
209d670bd4fSSam Ravnborg	default y
210d670bd4fSSam Ravnborg	depends on SPARC32 && SMP
211d670bd4fSSam Ravnborg
212d670bd4fSSam Ravnborgconfig SPARC64_SMP
213d670bd4fSSam Ravnborg	bool
214d670bd4fSSam Ravnborg	default y
215c57ec52fSDavid S. Miller	depends on SPARC64 && SMP
216c57ec52fSDavid S. Miller
217c57ec52fSDavid S. Millerconfig EARLYFB
218c57ec52fSDavid S. Miller	bool "Support for early boot text console"
2190f199194SDr. David Alan Gilbert	default y
2200f199194SDr. David Alan Gilbert	depends on SPARC64
221c57ec52fSDavid S. Miller	select FONT_SUN8x16
222c57ec52fSDavid S. Miller	select FONT_SUPPORT
223c57ec52fSDavid S. Miller	help
22426b4c912SSam Ravnborg	  Say Y here to enable a faster early framebuffer boot console.
22526b4c912SSam Ravnborg
22626b4c912SSam Ravnborgconfig HOTPLUG_CPU
22726b4c912SSam Ravnborg	bool "Support for hot-pluggable CPUs"
22826b4c912SSam Ravnborg	depends on SPARC64 && SMP
22926b4c912SSam Ravnborg	help
23026b4c912SSam Ravnborg	  Say Y here to experiment with turning CPUs off and on.  CPUs
23126b4c912SSam Ravnborg	  can be controlled through /sys/devices/system/cpu/cpu#.
23226b4c912SSam Ravnborg	  Say N if you want to disable CPU hotplug.
23326b4c912SSam Ravnborg
23426b4c912SSam Ravnborgif SPARC64
23526b4c912SSam Ravnborgsource "drivers/cpufreq/Kconfig"
23626b4c912SSam Ravnborgendif
23726b4c912SSam Ravnborg
23826b4c912SSam Ravnborgconfig US3_MC
23926b4c912SSam Ravnborg	tristate "UltraSPARC-III Memory Controller driver"
24026b4c912SSam Ravnborg	depends on SPARC64
24126b4c912SSam Ravnborg	default y
24226b4c912SSam Ravnborg	help
24326b4c912SSam Ravnborg	  This adds a driver for the UltraSPARC-III memory controller.
24426b4c912SSam Ravnborg	  Loading this driver allows exact mnemonic strings to be
24526b4c912SSam Ravnborg	  printed in the event of a memory error, so that the faulty DIMM
24626b4c912SSam Ravnborg	  on the motherboard can be matched to the error.
2471da177e4SLinus Torvalds
2481da177e4SLinus Torvalds	  If in doubt, say Y, as this information can be very useful.
24926b4c912SSam Ravnborg
25026b4c912SSam Ravnborg# Global things across all Sun machines.
25126b4c912SSam Ravnborgconfig GENERIC_LOCKBREAK
25285a683d0SThomas Gleixner	bool
25326b4c912SSam Ravnborg	default y
25426b4c912SSam Ravnborg	depends on SPARC64 && SMP && PREEMPTION
25526b4c912SSam Ravnborg
25626b4c912SSam Ravnborgconfig NUMA
25726b4c912SSam Ravnborg	bool "NUMA support"
25826b4c912SSam Ravnborg	depends on SPARC64 && SMP
2597485af89SJane Chu
2607485af89SJane Chuconfig NODES_SHIFT
2617485af89SJane Chu	int "Maximum NUMA Nodes (as a power of 2)"
262a9ee6cf5SMike Rapoport	range 4 5 if SPARC64
2637485af89SJane Chu	default "5"
2647485af89SJane Chu	depends on NUMA
2657485af89SJane Chu	help
26626b4c912SSam Ravnborg	  Specify the maximum number of NUMA Nodes available on the target
26726b4c912SSam Ravnborg	  system.  Increases memory reserved to accommodate various tables.
26826b4c912SSam Ravnborg
26926b4c912SSam Ravnborgconfig ARCH_SPARSEMEM_ENABLE
27026b4c912SSam Ravnborg	def_bool y if SPARC64
27126b4c912SSam Ravnborg	select SPARSEMEM_VMEMMAP_ENABLE
27226b4c912SSam Ravnborg
27326b4c912SSam Ravnborgconfig ARCH_SPARSEMEM_DEFAULT
2740192445cSZi Yan	def_bool y if SPARC64
2758def4c05SMike Rapoport (IBM)
27623baf831SKirill A. Shutemovconfig ARCH_FORCE_MAX_ORDER
277c88c545bSDave Kleikamp	int "Order of maximal physically contiguous allocations"
2788def4c05SMike Rapoport (IBM)	default "12"
2795e0a760bSKirill A. Shutemov	help
2808def4c05SMike Rapoport (IBM)	  The kernel page allocator limits the size of maximal physically
2818def4c05SMike Rapoport (IBM)	  contiguous allocations. The limit is called MAX_PAGE_ORDER and it
2828def4c05SMike Rapoport (IBM)	  defines the maximal power of two of number of pages that can be
2838def4c05SMike Rapoport (IBM)	  allocated as a single contiguous block. This option allows
284c88c545bSDave Kleikamp	  overriding the default setting when ability to allocate very
2858def4c05SMike Rapoport (IBM)	  large blocks of physically contiguous memory is required.
286c88c545bSDave Kleikamp
2877be6a87cSRandy Dunlap	  Don't change if unsure.
288bdde6b3cSTkhai Kirill
289bdde6b3cSTkhai Kirillif SPARC64 || COMPILE_TEST
290bdde6b3cSTkhai Kirillsource "kernel/power/Kconfig"
29126b4c912SSam Ravnborgendif
29226b4c912SSam Ravnborg
29326b4c912SSam Ravnborgconfig CMDLINE_BOOL
29426b4c912SSam Ravnborg	bool "Default bootloader kernel arguments"
29526b4c912SSam Ravnborg	depends on SPARC64
29626b4c912SSam Ravnborg
29726b4c912SSam Ravnborgconfig CMDLINE
29826b4c912SSam Ravnborg	string "Initial kernel command string"
29926b4c912SSam Ravnborg	depends on CMDLINE_BOOL
30026b4c912SSam Ravnborg	default "console=ttyS0,9600 root=/dev/sda1"
30126b4c912SSam Ravnborg	help
30226b4c912SSam Ravnborg	  Say Y here if you want to be able to pass default arguments to
30326b4c912SSam Ravnborg	  the kernel. This will be overridden by the bootloader, if you
30426b4c912SSam Ravnborg	  use one (such as SILO). This is most useful if you want to boot
30526b4c912SSam Ravnborg	  a kernel from TFTP, and want default options to be available
30626b4c912SSam Ravnborg	  with having them passed on the command line.
30726b4c912SSam Ravnborg
30826b4c912SSam Ravnborg	  NOTE: This option WILL override the PROM bootargs setting!
30926b4c912SSam Ravnborg
31026b4c912SSam Ravnborgconfig SUN_PM
31126b4c912SSam Ravnborg	bool
31226b4c912SSam Ravnborg	default y if SPARC32
31326b4c912SSam Ravnborg	help
31426b4c912SSam Ravnborg	  Enable power management and CPU standby features on supported
31526b4c912SSam Ravnborg	  SPARC platforms.
31626b4c912SSam Ravnborg
31726b4c912SSam Ravnborgconfig SPARC_LED
31826b4c912SSam Ravnborg	tristate "Sun4m LED driver"
31926b4c912SSam Ravnborg	depends on SPARC32
32026b4c912SSam Ravnborg	help
32126b4c912SSam Ravnborg	  This driver toggles the front-panel LED on sun4m systems
32226b4c912SSam Ravnborg	  in a user-specifiable manner.  Its state can be probed
32326b4c912SSam Ravnborg	  by reading /proc/led and its blinking mode can be changed
32426b4c912SSam Ravnborg	  via writes to /proc/led
32526b4c912SSam Ravnborg
32626b4c912SSam Ravnborgconfig SERIAL_CONSOLE
32726b4c912SSam Ravnborg	bool
32826b4c912SSam Ravnborg	depends on SPARC32
32926b4c912SSam Ravnborg	default y
33026b4c912SSam Ravnborg	help
33126b4c912SSam Ravnborg	  If you say Y here, it will be possible to use a serial port as the
33226b4c912SSam Ravnborg	  system console (the system console is the device which receives all
33326b4c912SSam Ravnborg	  kernel messages and warnings and which allows logins in single user
33426b4c912SSam Ravnborg	  mode). This could be useful if some terminal or printer is connected
33526b4c912SSam Ravnborg	  to that serial port.
33626b4c912SSam Ravnborg
33726b4c912SSam Ravnborg	  Even if you say Y here, the currently visible virtual console
33826b4c912SSam Ravnborg	  (/dev/tty0) will still be used as the system console by default, but
33926b4c912SSam Ravnborg	  you can alter that using a kernel command line option such as
34026b4c912SSam Ravnborg	  "console=ttyS1". (Try "man bootparam" or see the documentation of
34126b4c912SSam Ravnborg	  your boot loader (silo) about how to pass options to the kernel at
3421da177e4SLinus Torvalds	  boot time.)
3431da177e4SLinus Torvalds
34426b4c912SSam Ravnborg	  If you don't have a graphics card installed and you say Y here, the
3451da177e4SLinus Torvalds	  kernel will automatically use the first serial line, /dev/ttyS0, as
346a7f7f624SMasahiro Yamada	  system console.
3471da177e4SLinus Torvalds
3481da177e4SLinus Torvalds	  If unsure, say N.
3491da177e4SLinus Torvalds
3501da177e4SLinus Torvaldsconfig SPARC_LEON
3511da177e4SLinus Torvalds	bool "Sparc Leon processor family"
3521da177e4SLinus Torvalds	depends on SPARC32
3531da177e4SLinus Torvalds	select USB_EHCI_BIG_ENDIAN_MMIO
3541da177e4SLinus Torvalds	select USB_EHCI_BIG_ENDIAN_DESC
3551da177e4SLinus Torvalds	select USB_UHCI_BIG_ENDIAN_MMIO
3561da177e4SLinus Torvalds	select USB_UHCI_BIG_ENDIAN_DESC
3571da177e4SLinus Torvalds	help
3581da177e4SLinus Torvalds	  If you say Y here if you are running on a SPARC-LEON processor.
3591da177e4SLinus Torvalds	  The LEON processor is a synthesizable VHDL model of the
3601da177e4SLinus Torvalds	  SPARC-v8 standard. LEON is  part of the GRLIB collection of
3611da177e4SLinus Torvalds	  IP cores that are distributed under GPL. GRLIB can be downloaded
3621da177e4SLinus Torvalds	  from www.gaisler.com. You can download a sparc-linux cross-compilation
3631da177e4SLinus Torvalds	  toolchain at www.gaisler.com.
3641da177e4SLinus Torvalds
3651da177e4SLinus Torvaldsif SPARC_LEON
3665213a780SKonrad Eiselemenu "U-Boot options"
3675213a780SKonrad Eisele
3685213a780SKonrad Eiseleconfig UBOOT_LOAD_ADDR
3699296d94dSFlorian Fainelli	hex "uImage Load Address"
3709296d94dSFlorian Fainelli	default 0x40004000
3715efad9eeSJames Hogan	help
3725efad9eeSJames Hogan	 U-Boot kernel load address, the address in physical address space
373a7f7f624SMasahiro Yamada	 where u-boot will place the Linux kernel before booting it.
3745213a780SKonrad Eisele	 This address is normally the base address of main memory + 0x4000.
3755213a780SKonrad Eisele
3765213a780SKonrad Eiseleconfig UBOOT_FLASH_ADDR
3775213a780SKonrad Eisele	hex "uImage.o Load Address"
3785213a780SKonrad Eisele	default 0x00080000
3795213a780SKonrad Eisele	help
3805213a780SKonrad Eisele	 Optional setting only affecting the uImage.o ELF-image used to
381684151a7SDaniel Hellstrom	 download the uImage file to the target using a ELF-loader other than
382684151a7SDaniel Hellstrom	 U-Boot. It may for example be used to download an uImage to FLASH with
383684151a7SDaniel Hellstrom	 the GRMON utility before even starting u-boot.
384684151a7SDaniel Hellstrom
385684151a7SDaniel Hellstromconfig UBOOT_ENTRY_ADDR
386684151a7SDaniel Hellstrom	hex "uImage Entry Address"
387a7f7f624SMasahiro Yamada	default 0xf0004000
388684151a7SDaniel Hellstrom	help
389684151a7SDaniel Hellstrom	 Do not change this unless you know what you're doing. This is
390684151a7SDaniel Hellstrom	 hardcoded by the SPARC32 and LEON port.
391684151a7SDaniel Hellstrom
392684151a7SDaniel Hellstrom	 This is the virtual address u-boot jumps to when booting the Linux
393684151a7SDaniel Hellstrom	 Kernel.
394684151a7SDaniel Hellstrom
395a7f7f624SMasahiro Yamadaendmenu
396684151a7SDaniel Hellstromendif
397684151a7SDaniel Hellstrom
398684151a7SDaniel Hellstromendmenu
399684151a7SDaniel Hellstrom
400684151a7SDaniel Hellstrommenu "Bus options (PCI etc.)"
401684151a7SDaniel Hellstromconfig SBUS
402684151a7SDaniel Hellstrom	bool
403684151a7SDaniel Hellstrom	default y
404a7f7f624SMasahiro Yamada
405684151a7SDaniel Hellstromconfig SBUSCHAR
406684151a7SDaniel Hellstrom	bool
407684151a7SDaniel Hellstrom	default y
408684151a7SDaniel Hellstrom
409684151a7SDaniel Hellstromconfig SUN_LDOMS
410684151a7SDaniel Hellstrom	bool "Sun Logical Domains support"
411684151a7SDaniel Hellstrom	depends on SPARC64
412684151a7SDaniel Hellstrom	help
413684151a7SDaniel Hellstrom	  Say Y here is you want to support virtual devices via
4144b27e0e1SSam Ravnborg	  Logical Domains.
4154b27e0e1SSam Ravnborg
4164b27e0e1SSam Ravnborgconfig PCIC_PCI
4174b27e0e1SSam Ravnborg	bool
4184b27e0e1SSam Ravnborg	depends on PCI && SPARC32 && !SPARC_LEON
4194b27e0e1SSam Ravnborg	default y
4204b27e0e1SSam Ravnborg
4214b27e0e1SSam Ravnborgconfig LEON_PCI
4224b27e0e1SSam Ravnborg	bool
4234b27e0e1SSam Ravnborg	depends on PCI && SPARC_LEON
4244b27e0e1SSam Ravnborg	default y
42526b4c912SSam Ravnborg
42626b4c912SSam Ravnborgconfig SPARC_GRPCI1
42726b4c912SSam Ravnborg	bool "GRPCI Host Bridge Support"
42826b4c912SSam Ravnborg	depends on LEON_PCI
42926b4c912SSam Ravnborg	default y
43026b4c912SSam Ravnborg	help
43126b4c912SSam Ravnborg	  Say Y here to include the GRPCI Host Bridge Driver. The GRPCI
432cfe3af5dSDaniel Hellstrom	  PCI host controller is typically found in GRLIB SPARC32/LEON
433cfe3af5dSDaniel Hellstrom	  systems. The driver has one property (all_pci_errors) controlled
4348c47f8d0SDavid S. Miller	  from the bootloader that makes the GRPCI to generate interrupts
435cfe3af5dSDaniel Hellstrom	  on detected PCI Parity and System errors.
436cfe3af5dSDaniel Hellstrom
43726893c13SDaniel Hellstromconfig SPARC_GRPCI2
43826893c13SDaniel Hellstrom	bool "GRPCI2 Host Bridge Support"
43926893c13SDaniel Hellstrom	depends on LEON_PCI
44026893c13SDaniel Hellstrom	default y
44126893c13SDaniel Hellstrom	help
442d8650106SDaniel Hellstrom	  Say Y here to include the GRPCI2 Host Bridge Driver.
443d8650106SDaniel Hellstrom
444d8650106SDaniel Hellstromconfig SUN_OPENPROMFS
445d8650106SDaniel Hellstrom	tristate "Openprom tree appears in /proc/openprom"
446d8650106SDaniel Hellstrom	help
447d8650106SDaniel Hellstrom	  If you say Y, the OpenPROM device tree will be available as a
448d8650106SDaniel Hellstrom	  virtual file system, which you can mount to /proc/openprom by "mount
449d8650106SDaniel Hellstrom	  -t openpromfs none /proc/openprom".
450d8650106SDaniel Hellstrom
451d8650106SDaniel Hellstrom	  To compile the /proc/openprom support as a module, choose M here: the
452d8650106SDaniel Hellstrom	  module will be called openpromfs.
4531ab0a676SDaniel Hellstrom
4545d07b786SDaniel Hellstrom	  Only choose N if you know in advance that you will not need to modify
4555d07b786SDaniel Hellstrom	  OpenPROM settings on the running system.
4565d07b786SDaniel Hellstrom
4575d07b786SDaniel Hellstrom# Makefile helpers
4585d07b786SDaniel Hellstromconfig SPARC64_PCI
4595d07b786SDaniel Hellstrom	bool
4601da177e4SLinus Torvalds	default y
4611da177e4SLinus Torvalds	depends on SPARC64 && PCI
4621da177e4SLinus Torvalds
4631da177e4SLinus Torvaldsconfig SPARC64_PCI_MSI
4641da177e4SLinus Torvalds	bool
4651da177e4SLinus Torvalds	default y
4661da177e4SLinus Torvalds	depends on SPARC64_PCI && PCI_MSI
4671da177e4SLinus Torvalds
4681da177e4SLinus Torvaldsendmenu
4691da177e4SLinus Torvalds
4701da177e4SLinus Torvaldsconfig COMPAT
4711da177e4SLinus Torvalds	bool
4721da177e4SLinus Torvalds	depends on SPARC64
473a988fb80SThomas Petazzoni	default y
474d670bd4fSSam Ravnborg	select HAVE_UID16
475d670bd4fSSam Ravnborg	select ARCH_WANT_OLD_COMPAT_IPC
476d670bd4fSSam Ravnborg	select COMPAT_OLD_SIGACTION
477d670bd4fSSam Ravnborg
47830aaa808SWilliam Lee Irwin IIIsource "drivers/sbus/char/Kconfig"
479a988fb80SThomas Petazzoni