]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blame - arch/hexagon/Kconfig
Hexagon: add support for ARCH_PFN_OFFSET
[mirror_ubuntu-jammy-kernel.git] / arch / hexagon / Kconfig
CommitLineData
e95bf452
RK
1# Hexagon configuration
2comment "Linux Kernel Configuration for Hexagon"
3
4config HEXAGON
5 def_bool y
6 select HAVE_OPROFILE
7 select USE_GENERIC_SMP_HELPERS if SMP
8 # Other pending projects/to-do items.
9 # select HAVE_REGS_AND_STACK_ACCESS_API
10 # select HAVE_HW_BREAKPOINT if PERF_EVENTS
11 # select ARCH_HAS_CPU_IDLE_WAIT
12 # select ARCH_WANT_OPTIONAL_GPIOLIB
13 # select ARCH_REQUIRE_GPIOLIB
14 # select HAVE_CLK
e95bf452
RK
15 # select GENERIC_PENDING_IRQ if SMP
16 select GENERIC_ATOMIC64
17 select HAVE_PERF_EVENTS
18 select HAVE_GENERIC_HARDIRQS
e95bf452
RK
19 # GENERIC_ALLOCATOR is used by dma_alloc_coherent()
20 select GENERIC_ALLOCATOR
21 select GENERIC_IRQ_SHOW
22 select HAVE_ARCH_KGDB
23 select HAVE_ARCH_TRACEHOOK
24 select NO_IOPORT
4673ca8e 25 select GENERIC_IOMAP
3b0132ce 26 select GENERIC_SMP_IDLE_THREAD
5042ab91 27 select STACKTRACE_SUPPORT
24a6f35e
AMG
28 select KTIME_SCALAR
29 select GENERIC_CLOCKEVENTS
30 select GENERIC_CLOCKEVENTS_BROADCAST
786d35d4 31 select MODULES_USE_ELF_RELA
e95bf452
RK
32 ---help---
33 Qualcomm Hexagon is a processor architecture designed for high
34 performance and low power across a wide variety of applications.
35
8f5a0b9d 36
e95bf452
RK
37config HEXAGON_ARCH_V1
38 bool
39
40config HEXAGON_ARCH_V2
41 bool
42
43config HEXAGON_ARCH_V3
44 bool
45
46config HEXAGON_ARCH_V4
47 bool
48
8f5a0b9d
RK
49config HEXAGON_PHYS_OFFSET
50 def_bool y
51 ---help---
52 Platforms that don't load the kernel at zero set this.
53
e95bf452
RK
54config FRAME_POINTER
55 def_bool y
56
57config LOCKDEP_SUPPORT
58 def_bool y
59
60config PCI
61 def_bool n
62
63config EARLY_PRINTK
64 def_bool y
65
e95bf452
RK
66config MMU
67 def_bool y
68
69config TRACE_IRQFLAGS_SUPPORT
70 def_bool y
71
72config GENERIC_CSUM
73 def_bool y
74
75#
76# Use the generic interrupt handling code in kernel/irq/:
77#
78config GENERIC_IRQ_PROBE
79 def_bool y
80
e95bf452
RK
81config NEED_SG_DMA_LENGTH
82 def_bool y
83
84config RWSEM_GENERIC_SPINLOCK
85 def_bool n
86
87config RWSEM_XCHGADD_ALGORITHM
88 def_bool y
89
90config GENERIC_FIND_NEXT_BIT
91 def_bool y
92
93config GENERIC_HWEIGHT
94 def_bool y
95
e95bf452
RK
96config STACKTRACE_SUPPORT
97 def_bool y
98 select STACKTRACE
99
100config GENERIC_BUG
101 def_bool y
102 depends on BUG
103
e95bf452
RK
104menu "Machine selection"
105
106choice
107 prompt "System type"
5042ab91 108 default HEXAGON_COMET
e95bf452
RK
109
110config HEXAGON_COMET
111 bool "Comet Board"
112 select HEXAGON_ARCH_V2
113 ---help---
114 Support for the Comet platform.
115
116endchoice
117
118config HEXAGON_VM
119 def_bool y
120
121config CMDLINE
122 string "Default kernel command string"
123 default ""
124 help
125 On some platforms, there is currently no way for the boot loader
126 to pass arguments to the kernel. For these, you should supply some
127 command-line options at build time by entering them here. At a
128 minimum, you should specify the memory size and the root device
129 (e.g., mem=64M root=/dev/nfs).
130
131config HEXAGON_ANGEL_TRAPS
132 bool "Use Angel Traps"
133 default n
134 ---help---
135 Enable angel debug traps (for printk's).
136
137config SMP
138 bool "Multi-Processing support"
139 ---help---
140 Enables SMP support in the kernel. If unsure, say "Y"
141
142config NR_CPUS
143 int "Maximum number of CPUs" if SMP
144 range 2 6 if SMP
145 default "1" if !SMP
146 default "6" if SMP
147 ---help---
148 This allows you to specify the maximum number of CPUs which this
149 kernel will support. The maximum supported value is 6 and the
150 minimum value which makes sense is 2.
151
152 This is purely to save memory - each supported CPU adds
153 approximately eight kilobytes to the kernel image.
154
155choice
156 prompt "Kernel page size"
157 default PAGE_SIZE_4KB
158 ---help---
159 Changes the default page size; use with caution.
160
161config PAGE_SIZE_4KB
162 bool "4KB"
163
164config PAGE_SIZE_16KB
165 bool "16KB"
166
167config PAGE_SIZE_64KB
168 bool "64KB"
169
170config PAGE_SIZE_256KB
171 bool "256KB"
172
173endchoice
174
175source "mm/Kconfig"
176
177source "kernel/Kconfig.hz"
e95bf452
RK
178
179config GENERIC_GPIO
5042ab91 180 def_bool n
e95bf452
RK
181
182endmenu
183
184source "init/Kconfig"
185source "drivers/Kconfig"
186source "fs/Kconfig"
187
188menu "Executable File Formats"
189source "fs/Kconfig.binfmt"
190endmenu
191
192source "net/Kconfig"
193source "security/Kconfig"
194source "crypto/Kconfig"
195source "lib/Kconfig"
196
197menu "Kernel hacking"
198source "lib/Kconfig.debug"
199endmenu