xref: /linux/arch/hexagon/Kconfig (revision 79790b6818e96c58fe2bffee1b418c16e64e7b80)
1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0
2e95bf452SRichard Kuo# Hexagon configuration
3e95bf452SRichard Kuocomment "Linux Kernel Configuration for Hexagon"
4e95bf452SRichard Kuo
5e95bf452SRichard Kuoconfig HEXAGON
6e95bf452SRichard Kuo	def_bool y
7942fa985SYury Norov	select ARCH_32BIT_OFF_T
8e0a9317dSChristoph Hellwig	select ARCH_HAS_SYNC_DMA_FOR_DEVICE
987a4c375SChristoph Hellwig	select ARCH_NO_PREEMPT
106b1c2a19SMasahiro Yamada	select ARCH_WANT_FRAME_POINTERS
11c1dec343SChristoph Hellwig	select DMA_GLOBAL_POOL
12ba89f9c8SArnd Bergmann	select HAVE_PAGE_SIZE_4KB
13ba89f9c8SArnd Bergmann	select HAVE_PAGE_SIZE_16KB
14ba89f9c8SArnd Bergmann	select HAVE_PAGE_SIZE_64KB
15ba89f9c8SArnd Bergmann	select HAVE_PAGE_SIZE_256KB
166b1c2a19SMasahiro Yamada	select FRAME_POINTER
17e95bf452SRichard Kuo	# Other pending projects/to-do items.
18e95bf452SRichard Kuo	# select HAVE_REGS_AND_STACK_ACCESS_API
19e95bf452SRichard Kuo	# select HAVE_HW_BREAKPOINT if PERF_EVENTS
20e95bf452SRichard Kuo	# select ARCH_HAS_CPU_IDLE_WAIT
21d4f80b81SLinus Walleij	# select GPIOLIB
22e95bf452SRichard Kuo	# select HAVE_CLK
23e95bf452SRichard Kuo	# select GENERIC_PENDING_IRQ if SMP
24e95bf452SRichard Kuo	select GENERIC_ATOMIC64
25e95bf452SRichard Kuo	select HAVE_PERF_EVENTS
26e95bf452SRichard Kuo	# GENERIC_ALLOCATOR is used by dma_alloc_coherent()
27e95bf452SRichard Kuo	select GENERIC_ALLOCATOR
28*ec923eaaSMasahiro Yamada	select GENERIC_IRQ_PROBE
29e95bf452SRichard Kuo	select GENERIC_IRQ_SHOW
30e95bf452SRichard Kuo	select HAVE_ARCH_KGDB
31e95bf452SRichard Kuo	select HAVE_ARCH_TRACEHOOK
3286596f0aSChristoph Hellwig	select NEED_SG_DMA_LENGTH
33ce816fa8SUwe Kleine-König	select NO_IOPORT_MAP
344673ca8eSMichael S. Tsirkin	select GENERIC_IOMAP
355bd2cc56SBaoquan He	select GENERIC_IOREMAP
363b0132ceSThomas Gleixner	select GENERIC_SMP_IDLE_THREAD
375042ab91SRichard Kuo	select STACKTRACE_SUPPORT
3824a6f35eSAnna-Maria Gleixner	select GENERIC_CLOCKEVENTS_BROADCAST
39a050ba1eSLinus Torvalds	select LOCK_MM_AND_FIND_VMA
40786d35d4SDavid Howells	select MODULES_USE_ELF_RELA
4153debcd5SRichard Kuo	select GENERIC_CPU_DEVICES
42113616ecSNathan Chancellor	select ARCH_WANT_LD_ORPHAN_WARN
434aae683fSMasahiro Yamada	select TRACE_IRQFLAGS_SUPPORT
44a7f7f624SMasahiro Yamada	help
45e95bf452SRichard Kuo	  Qualcomm Hexagon is a processor architecture designed for high
46e95bf452SRichard Kuo	  performance and low power across a wide variety of applications.
47e95bf452SRichard Kuo
488f5a0b9dSRichard Kuoconfig HEXAGON_PHYS_OFFSET
498f5a0b9dSRichard Kuo	def_bool y
50a7f7f624SMasahiro Yamada	help
518f5a0b9dSRichard Kuo	  Platforms that don't load the kernel at zero set this.
528f5a0b9dSRichard Kuo
53e95bf452SRichard Kuoconfig LOCKDEP_SUPPORT
54e95bf452SRichard Kuo	def_bool y
55e95bf452SRichard Kuo
56e95bf452SRichard Kuoconfig EARLY_PRINTK
57e95bf452SRichard Kuo	def_bool y
58e95bf452SRichard Kuo
59e95bf452SRichard Kuoconfig MMU
60e95bf452SRichard Kuo	def_bool y
61e95bf452SRichard Kuo
62e95bf452SRichard Kuoconfig GENERIC_CSUM
63e95bf452SRichard Kuo	def_bool y
64e95bf452SRichard Kuo
65e95bf452SRichard Kuoconfig GENERIC_HWEIGHT
66e95bf452SRichard Kuo	def_bool y
67e95bf452SRichard Kuo
68e95bf452SRichard Kuoconfig STACKTRACE_SUPPORT
69e95bf452SRichard Kuo	def_bool y
70e95bf452SRichard Kuo	select STACKTRACE
71e95bf452SRichard Kuo
72e95bf452SRichard Kuoconfig GENERIC_BUG
73e95bf452SRichard Kuo	def_bool y
74e95bf452SRichard Kuo	depends on BUG
75e95bf452SRichard Kuo
76e95bf452SRichard Kuomenu "Machine selection"
77e95bf452SRichard Kuo
78e95bf452SRichard Kuochoice
79e95bf452SRichard Kuo	prompt "System type"
805042ab91SRichard Kuo	default HEXAGON_COMET
81e95bf452SRichard Kuo
82e95bf452SRichard Kuoconfig HEXAGON_COMET
83e95bf452SRichard Kuo	bool "Comet Board"
84a7f7f624SMasahiro Yamada	help
85e95bf452SRichard Kuo	  Support for the Comet platform.
86e95bf452SRichard Kuo
87e95bf452SRichard Kuoendchoice
88e95bf452SRichard Kuo
8966b03dbfSRichard Kuoconfig HEXAGON_ARCH_VERSION
9066b03dbfSRichard Kuo	int "Architecture version"
9166b03dbfSRichard Kuo	default 2
9266b03dbfSRichard Kuo
93e95bf452SRichard Kuoconfig CMDLINE
94e95bf452SRichard Kuo	string "Default kernel command string"
95e95bf452SRichard Kuo	default ""
96e95bf452SRichard Kuo	help
97e95bf452SRichard Kuo	  On some platforms, there is currently no way for the boot loader
98e95bf452SRichard Kuo	  to pass arguments to the kernel. For these, you should supply some
99e95bf452SRichard Kuo	  command-line options at build time by entering them here.  At a
100e95bf452SRichard Kuo	  minimum, you should specify the memory size and the root device
101e95bf452SRichard Kuo	  (e.g., mem=64M root=/dev/nfs).
102e95bf452SRichard Kuo
103e95bf452SRichard Kuoconfig SMP
104e95bf452SRichard Kuo	bool "Multi-Processing support"
105a7f7f624SMasahiro Yamada	help
106e95bf452SRichard Kuo	  Enables SMP support in the kernel.  If unsure, say "Y"
107e95bf452SRichard Kuo
108e95bf452SRichard Kuoconfig NR_CPUS
109e95bf452SRichard Kuo	int "Maximum number of CPUs" if SMP
110e95bf452SRichard Kuo	range 2 6 if SMP
111e95bf452SRichard Kuo	default "1" if !SMP
112e95bf452SRichard Kuo	default "6" if SMP
113a7f7f624SMasahiro Yamada	help
114e95bf452SRichard Kuo	  This allows you to specify the maximum number of CPUs which this
115e95bf452SRichard Kuo	  kernel will support.  The maximum supported value is 6 and the
116e95bf452SRichard Kuo	  minimum value which makes sense is 2.
117e95bf452SRichard Kuo
118e95bf452SRichard Kuo	  This is purely to save memory - each supported CPU adds
119e95bf452SRichard Kuo	  approximately eight kilobytes to the kernel image.
120e95bf452SRichard Kuo
121e95bf452SRichard Kuosource "kernel/Kconfig.hz"
122e95bf452SRichard Kuo
123e95bf452SRichard Kuoendmenu
124