aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc/Kconfig
diff options
context:
space:
mode:
authorJonathan Herman <hermanjl@cs.unc.edu>2013-01-17 16:15:55 -0500
committerJonathan Herman <hermanjl@cs.unc.edu>2013-01-17 16:15:55 -0500
commit8dea78da5cee153b8af9c07a2745f6c55057fe12 (patch)
treea8f4d49d63b1ecc92f2fddceba0655b2472c5bd9 /arch/sparc/Kconfig
parent406089d01562f1e2bf9f089fd7637009ebaad589 (diff)
Patched in Tegra support.
Diffstat (limited to 'arch/sparc/Kconfig')
-rw-r--r--arch/sparc/Kconfig88
1 files changed, 62 insertions, 26 deletions
diff --git a/arch/sparc/Kconfig b/arch/sparc/Kconfig
index 9f2edb5c555..1a6f20d4e7e 100644
--- a/arch/sparc/Kconfig
+++ b/arch/sparc/Kconfig
@@ -18,9 +18,7 @@ config SPARC
18 select HAVE_OPROFILE 18 select HAVE_OPROFILE
19 select HAVE_ARCH_KGDB if !SMP || SPARC64 19 select HAVE_ARCH_KGDB if !SMP || SPARC64
20 select HAVE_ARCH_TRACEHOOK 20 select HAVE_ARCH_TRACEHOOK
21 select SYSCTL_EXCEPTION_TRACE
22 select ARCH_WANT_OPTIONAL_GPIOLIB 21 select ARCH_WANT_OPTIONAL_GPIOLIB
23 select ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE
24 select RTC_CLASS 22 select RTC_CLASS
25 select RTC_DRV_M48T59 23 select RTC_DRV_M48T59
26 select HAVE_IRQ_WORK 24 select HAVE_IRQ_WORK
@@ -29,24 +27,10 @@ config SPARC
29 select HAVE_ARCH_JUMP_LABEL 27 select HAVE_ARCH_JUMP_LABEL
30 select HAVE_GENERIC_HARDIRQS 28 select HAVE_GENERIC_HARDIRQS
31 select GENERIC_IRQ_SHOW 29 select GENERIC_IRQ_SHOW
32 select ARCH_WANT_IPC_PARSE_VERSION
33 select USE_GENERIC_SMP_HELPERS if SMP 30 select USE_GENERIC_SMP_HELPERS if SMP
34 select GENERIC_PCI_IOMAP
35 select HAVE_NMI_WATCHDOG if SPARC64
36 select HAVE_BPF_JIT
37 select HAVE_DEBUG_BUGVERBOSE
38 select GENERIC_SMP_IDLE_THREAD
39 select GENERIC_CMOS_UPDATE
40 select GENERIC_CLOCKEVENTS
41 select GENERIC_STRNCPY_FROM_USER
42 select GENERIC_STRNLEN_USER
43 select MODULES_USE_ELF_RELA
44 31
45config SPARC32 32config SPARC32
46 def_bool !64BIT 33 def_bool !64BIT
47 select GENERIC_ATOMIC64
48 select CLZ_TAB
49 select HAVE_UID16
50 34
51config SPARC64 35config SPARC64
52 def_bool 64BIT 36 def_bool 64BIT
@@ -59,12 +43,10 @@ config SPARC64
59 select HAVE_KPROBES 43 select HAVE_KPROBES
60 select HAVE_RCU_TABLE_FREE if SMP 44 select HAVE_RCU_TABLE_FREE if SMP
61 select HAVE_MEMBLOCK 45 select HAVE_MEMBLOCK
62 select HAVE_MEMBLOCK_NODE_MAP
63 select HAVE_SYSCALL_WRAPPERS 46 select HAVE_SYSCALL_WRAPPERS
64 select HAVE_DYNAMIC_FTRACE 47 select HAVE_DYNAMIC_FTRACE
65 select HAVE_FTRACE_MCOUNT_RECORD 48 select HAVE_FTRACE_MCOUNT_RECORD
66 select HAVE_SYSCALL_TRACEPOINTS 49 select HAVE_SYSCALL_TRACEPOINTS
67 select HAVE_DEBUG_KMEMLEAK
68 select RTC_DRV_CMOS 50 select RTC_DRV_CMOS
69 select RTC_DRV_BQ4802 51 select RTC_DRV_BQ4802
70 select RTC_DRV_SUN4V 52 select RTC_DRV_SUN4V
@@ -74,7 +56,6 @@ config SPARC64
74 select IRQ_PREFLOW_FASTEOI 56 select IRQ_PREFLOW_FASTEOI
75 select ARCH_HAVE_NMI_SAFE_CMPXCHG 57 select ARCH_HAVE_NMI_SAFE_CMPXCHG
76 select HAVE_C_RECORDMCOUNT 58 select HAVE_C_RECORDMCOUNT
77 select NO_BOOTMEM
78 59
79config ARCH_DEFCONFIG 60config ARCH_DEFCONFIG
80 string 61 string
@@ -87,6 +68,18 @@ config BITS
87 default 32 if SPARC32 68 default 32 if SPARC32
88 default 64 if SPARC64 69 default 64 if SPARC64
89 70
71config ARCH_USES_GETTIMEOFFSET
72 bool
73 default y if SPARC32
74
75config GENERIC_CMOS_UPDATE
76 bool
77 default y
78
79config GENERIC_CLOCKEVENTS
80 bool
81 default y if SPARC64
82
90config IOMMU_HELPER 83config IOMMU_HELPER
91 bool 84 bool
92 default y if SPARC64 85 default y if SPARC64
@@ -156,7 +149,7 @@ source "kernel/Kconfig.freezer"
156menu "Processor type and features" 149menu "Processor type and features"
157 150
158config SMP 151config SMP
159 bool "Symmetric multi-processing support" 152 bool "Symmetric multi-processing support (does not work on sun4/sun4c)"
160 ---help--- 153 ---help---
161 This enables support for systems with more than one CPU. If you have 154 This enables support for systems with more than one CPU. If you have
162 a system with only one CPU, say N. If you have a system with more 155 a system with only one CPU, say N. If you have a system with more
@@ -232,6 +225,25 @@ config EARLYFB
232 help 225 help
233 Say Y here to enable a faster early framebuffer boot console. 226 Say Y here to enable a faster early framebuffer boot console.
234 227
228choice
229 prompt "Kernel page size" if SPARC64
230 default SPARC64_PAGE_SIZE_8KB
231
232config SPARC64_PAGE_SIZE_8KB
233 bool "8KB"
234 help
235 This lets you select the page size of the kernel.
236
237 8KB and 64KB work quite well, since SPARC ELF sections
238 provide for up to 64KB alignment.
239
240 If you don't know what to do, choose 8KB.
241
242config SPARC64_PAGE_SIZE_64KB
243 bool "64KB"
244
245endchoice
246
235config SECCOMP 247config SECCOMP
236 bool "Enable seccomp to safely compute untrusted bytecode" 248 bool "Enable seccomp to safely compute untrusted bytecode"
237 depends on SPARC64 && PROC_FS 249 depends on SPARC64 && PROC_FS
@@ -258,6 +270,8 @@ config HOTPLUG_CPU
258 can be controlled through /sys/devices/system/cpu/cpu#. 270 can be controlled through /sys/devices/system/cpu/cpu#.
259 Say N if you want to disable CPU hotplug. 271 Say N if you want to disable CPU hotplug.
260 272
273source "kernel/time/Kconfig"
274
261if SPARC64 275if SPARC64
262source "drivers/cpufreq/Kconfig" 276source "drivers/cpufreq/Kconfig"
263 277
@@ -303,6 +317,23 @@ config GENERIC_LOCKBREAK
303 default y 317 default y
304 depends on SPARC64 && SMP && PREEMPT 318 depends on SPARC64 && SMP && PREEMPT
305 319
320choice
321 prompt "SPARC64 Huge TLB Page Size"
322 depends on SPARC64 && HUGETLB_PAGE
323 default HUGETLB_PAGE_SIZE_4MB
324
325config HUGETLB_PAGE_SIZE_4MB
326 bool "4MB"
327
328config HUGETLB_PAGE_SIZE_512K
329 bool "512K"
330
331config HUGETLB_PAGE_SIZE_64K
332 depends on !SPARC64_PAGE_SIZE_64KB
333 bool "64K"
334
335endchoice
336
306config NUMA 337config NUMA
307 bool "NUMA support" 338 bool "NUMA support"
308 depends on SPARC64 && SMP 339 depends on SPARC64 && SMP
@@ -321,6 +352,9 @@ config NODES_SPAN_OTHER_NODES
321 def_bool y 352 def_bool y
322 depends on NEED_MULTIPLE_NODES 353 depends on NEED_MULTIPLE_NODES
323 354
355config ARCH_POPULATES_NODE_MAP
356 def_bool y if SPARC64
357
324config ARCH_SELECT_MEMORY_MODEL 358config ARCH_SELECT_MEMORY_MODEL
325 def_bool y if SPARC64 359 def_bool y if SPARC64
326 360
@@ -351,7 +385,9 @@ config SCHED_MC
351 making when dealing with multi-core CPU chips at a cost of slightly 385 making when dealing with multi-core CPU chips at a cost of slightly
352 increased overhead in some places. If unsure say N here. 386 increased overhead in some places. If unsure say N here.
353 387
388if SPARC64
354source "kernel/Kconfig.preempt" 389source "kernel/Kconfig.preempt"
390endif
355 391
356config CMDLINE_BOOL 392config CMDLINE_BOOL
357 bool "Default bootloader kernel arguments" 393 bool "Default bootloader kernel arguments"
@@ -524,7 +560,12 @@ config SUN_OPENPROMFS
524 Only choose N if you know in advance that you will not need to modify 560 Only choose N if you know in advance that you will not need to modify
525 OpenPROM settings on the running system. 561 OpenPROM settings on the running system.
526 562
527# Makefile helper 563# Makefile helpers
564config SPARC32_PCI
565 bool
566 default y
567 depends on SPARC32 && PCI
568
528config SPARC64_PCI 569config SPARC64_PCI
529 bool 570 bool
530 default y 571 default y
@@ -541,17 +582,12 @@ config COMPAT
541 depends on SPARC64 582 depends on SPARC64
542 default y 583 default y
543 select COMPAT_BINFMT_ELF 584 select COMPAT_BINFMT_ELF
544 select HAVE_UID16
545 select ARCH_WANT_OLD_COMPAT_IPC
546 585
547config SYSVIPC_COMPAT 586config SYSVIPC_COMPAT
548 bool 587 bool
549 depends on COMPAT && SYSVIPC 588 depends on COMPAT && SYSVIPC
550 default y 589 default y
551 590
552config KEYS_COMPAT
553 def_bool y if COMPAT && KEYS
554
555endmenu 591endmenu
556 592
557source "net/Kconfig" 593source "net/Kconfig"