Kconfig 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570
  1. config 64BIT
  2. bool "64-bit kernel" if ARCH = "sparc"
  3. default ARCH = "sparc64"
  4. help
  5. SPARC is a family of RISC microprocessors designed and marketed by
  6. Sun Microsystems, incorporated. They are very widely found in Sun
  7. workstations and clones.
  8. Say yes to build a 64-bit kernel - formerly known as sparc64
  9. Say no to build a 32-bit kernel - formerly known as sparc
  10. config SPARC
  11. bool
  12. default y
  13. select OF
  14. select OF_PROMTREE
  15. select HAVE_IDE
  16. select HAVE_OPROFILE
  17. select HAVE_ARCH_KGDB if !SMP || SPARC64
  18. select HAVE_ARCH_TRACEHOOK
  19. select SYSCTL_EXCEPTION_TRACE
  20. select ARCH_WANT_OPTIONAL_GPIOLIB
  21. select RTC_CLASS
  22. select RTC_DRV_M48T59
  23. select HAVE_IRQ_WORK
  24. select HAVE_DMA_ATTRS
  25. select HAVE_DMA_API_DEBUG
  26. select HAVE_ARCH_JUMP_LABEL
  27. select HAVE_GENERIC_HARDIRQS
  28. select GENERIC_IRQ_SHOW
  29. select ARCH_WANT_IPC_PARSE_VERSION
  30. select USE_GENERIC_SMP_HELPERS if SMP
  31. select GENERIC_PCI_IOMAP
  32. select HAVE_NMI_WATCHDOG if SPARC64
  33. select HAVE_BPF_JIT
  34. select HAVE_DEBUG_BUGVERBOSE
  35. select GENERIC_SMP_IDLE_THREAD
  36. select GENERIC_CMOS_UPDATE
  37. select GENERIC_CLOCKEVENTS
  38. select GENERIC_STRNCPY_FROM_USER
  39. select GENERIC_STRNLEN_USER
  40. select MODULES_USE_ELF_RELA
  41. config SPARC32
  42. def_bool !64BIT
  43. select GENERIC_ATOMIC64
  44. select CLZ_TAB
  45. select HAVE_UID16
  46. config SPARC64
  47. def_bool 64BIT
  48. select ARCH_SUPPORTS_MSI
  49. select HAVE_FUNCTION_TRACER
  50. select HAVE_FUNCTION_GRAPH_TRACER
  51. select HAVE_FUNCTION_GRAPH_FP_TEST
  52. select HAVE_FUNCTION_TRACE_MCOUNT_TEST
  53. select HAVE_KRETPROBES
  54. select HAVE_KPROBES
  55. select HAVE_RCU_TABLE_FREE if SMP
  56. select HAVE_MEMBLOCK
  57. select HAVE_MEMBLOCK_NODE_MAP
  58. select HAVE_SYSCALL_WRAPPERS
  59. select HAVE_DYNAMIC_FTRACE
  60. select HAVE_FTRACE_MCOUNT_RECORD
  61. select HAVE_SYSCALL_TRACEPOINTS
  62. select HAVE_DEBUG_KMEMLEAK
  63. select RTC_DRV_CMOS
  64. select RTC_DRV_BQ4802
  65. select RTC_DRV_SUN4V
  66. select RTC_DRV_STARFIRE
  67. select HAVE_PERF_EVENTS
  68. select PERF_USE_VMALLOC
  69. select IRQ_PREFLOW_FASTEOI
  70. select ARCH_HAVE_NMI_SAFE_CMPXCHG
  71. select HAVE_C_RECORDMCOUNT
  72. select NO_BOOTMEM
  73. config ARCH_DEFCONFIG
  74. string
  75. default "arch/sparc/configs/sparc32_defconfig" if SPARC32
  76. default "arch/sparc/configs/sparc64_defconfig" if SPARC64
  77. # CONFIG_BITS can be used at source level to get 32/64 bits
  78. config BITS
  79. int
  80. default 32 if SPARC32
  81. default 64 if SPARC64
  82. config IOMMU_HELPER
  83. bool
  84. default y if SPARC64
  85. config STACKTRACE_SUPPORT
  86. bool
  87. default y if SPARC64
  88. config LOCKDEP_SUPPORT
  89. bool
  90. default y if SPARC64
  91. config HAVE_LATENCYTOP_SUPPORT
  92. bool
  93. default y if SPARC64
  94. config AUDIT_ARCH
  95. bool
  96. default y
  97. config HAVE_SETUP_PER_CPU_AREA
  98. def_bool y if SPARC64
  99. config NEED_PER_CPU_EMBED_FIRST_CHUNK
  100. def_bool y if SPARC64
  101. config NEED_PER_CPU_PAGE_FIRST_CHUNK
  102. def_bool y if SPARC64
  103. config MMU
  104. bool
  105. default y
  106. config HIGHMEM
  107. bool
  108. default y if SPARC32
  109. config ZONE_DMA
  110. bool
  111. default y if SPARC32
  112. config NEED_DMA_MAP_STATE
  113. def_bool y
  114. config NEED_SG_DMA_LENGTH
  115. def_bool y
  116. config GENERIC_ISA_DMA
  117. bool
  118. default y if SPARC32
  119. config GENERIC_GPIO
  120. bool
  121. help
  122. Generic GPIO API support
  123. config ARCH_NO_VIRT_TO_BUS
  124. def_bool y
  125. config ARCH_SUPPORTS_DEBUG_PAGEALLOC
  126. def_bool y if SPARC64
  127. source "init/Kconfig"
  128. source "kernel/Kconfig.freezer"
  129. menu "Processor type and features"
  130. config SMP
  131. bool "Symmetric multi-processing support"
  132. ---help---
  133. This enables support for systems with more than one CPU. If you have
  134. a system with only one CPU, say N. If you have a system with more
  135. than one CPU, say Y.
  136. If you say N here, the kernel will run on single and multiprocessor
  137. machines, but will use only one CPU of a multiprocessor machine. If
  138. you say Y here, the kernel will run on many, but not all,
  139. singleprocessor machines. On a singleprocessor machine, the kernel
  140. will run faster if you say N here.
  141. People using multiprocessor machines who say Y here should also say
  142. Y to "Enhanced Real Time Clock Support", below. The "Advanced Power
  143. Management" code will be disabled if you say Y here.
  144. See also <file:Documentation/nmi_watchdog.txt> and the SMP-HOWTO
  145. available at <http://www.tldp.org/docs.html#howto>.
  146. If you don't know what to do here, say N.
  147. config NR_CPUS
  148. int "Maximum number of CPUs"
  149. depends on SMP
  150. range 2 32 if SPARC32
  151. range 2 1024 if SPARC64
  152. default 32 if SPARC32
  153. default 64 if SPARC64
  154. source kernel/Kconfig.hz
  155. config RWSEM_GENERIC_SPINLOCK
  156. bool
  157. default y if SPARC32
  158. config RWSEM_XCHGADD_ALGORITHM
  159. bool
  160. default y if SPARC64
  161. config GENERIC_HWEIGHT
  162. bool
  163. default y if !ULTRA_HAS_POPULATION_COUNT
  164. config GENERIC_CALIBRATE_DELAY
  165. bool
  166. default y
  167. config ARCH_MAY_HAVE_PC_FDC
  168. bool
  169. default y
  170. config EMULATED_CMPXCHG
  171. bool
  172. default y if SPARC32
  173. help
  174. Sparc32 does not have a CAS instruction like sparc64. cmpxchg()
  175. is emulated, and therefore it is not completely atomic.
  176. # Makefile helpers
  177. config SPARC32_SMP
  178. bool
  179. default y
  180. depends on SPARC32 && SMP
  181. config SPARC64_SMP
  182. bool
  183. default y
  184. depends on SPARC64 && SMP
  185. config EARLYFB
  186. bool "Support for early boot text console"
  187. default y
  188. depends on SPARC64
  189. help
  190. Say Y here to enable a faster early framebuffer boot console.
  191. config SECCOMP
  192. bool "Enable seccomp to safely compute untrusted bytecode"
  193. depends on SPARC64 && PROC_FS
  194. default y
  195. help
  196. This kernel feature is useful for number crunching applications
  197. that may need to compute untrusted bytecode during their
  198. execution. By using pipes or other transports made available to
  199. the process as file descriptors supporting the read/write
  200. syscalls, it's possible to isolate those applications in
  201. their own address space using seccomp. Once seccomp is
  202. enabled via /proc/<pid>/seccomp, it cannot be disabled
  203. and the task is only allowed to execute a few safe syscalls
  204. defined by each seccomp mode.
  205. If unsure, say Y. Only embedded should say N here.
  206. config HOTPLUG_CPU
  207. bool "Support for hot-pluggable CPUs"
  208. depends on SPARC64 && SMP
  209. select HOTPLUG
  210. help
  211. Say Y here to experiment with turning CPUs off and on. CPUs
  212. can be controlled through /sys/devices/system/cpu/cpu#.
  213. Say N if you want to disable CPU hotplug.
  214. if SPARC64
  215. source "drivers/cpufreq/Kconfig"
  216. config US3_FREQ
  217. tristate "UltraSPARC-III CPU Frequency driver"
  218. depends on CPU_FREQ
  219. select CPU_FREQ_TABLE
  220. help
  221. This adds the CPUFreq driver for UltraSPARC-III processors.
  222. For details, take a look at <file:Documentation/cpu-freq>.
  223. If in doubt, say N.
  224. config US2E_FREQ
  225. tristate "UltraSPARC-IIe CPU Frequency driver"
  226. depends on CPU_FREQ
  227. select CPU_FREQ_TABLE
  228. help
  229. This adds the CPUFreq driver for UltraSPARC-IIe processors.
  230. For details, take a look at <file:Documentation/cpu-freq>.
  231. If in doubt, say N.
  232. endif
  233. config US3_MC
  234. tristate "UltraSPARC-III Memory Controller driver"
  235. depends on SPARC64
  236. default y
  237. help
  238. This adds a driver for the UltraSPARC-III memory controller.
  239. Loading this driver allows exact mnemonic strings to be
  240. printed in the event of a memory error, so that the faulty DIMM
  241. on the motherboard can be matched to the error.
  242. If in doubt, say Y, as this information can be very useful.
  243. # Global things across all Sun machines.
  244. config GENERIC_LOCKBREAK
  245. bool
  246. default y
  247. depends on SPARC64 && SMP && PREEMPT
  248. config NUMA
  249. bool "NUMA support"
  250. depends on SPARC64 && SMP
  251. config NODES_SHIFT
  252. int
  253. default "4"
  254. depends on NEED_MULTIPLE_NODES
  255. # Some NUMA nodes have memory ranges that span
  256. # other nodes. Even though a pfn is valid and
  257. # between a node's start and end pfns, it may not
  258. # reside on that node. See memmap_init_zone()
  259. # for details.
  260. config NODES_SPAN_OTHER_NODES
  261. def_bool y
  262. depends on NEED_MULTIPLE_NODES
  263. config ARCH_SELECT_MEMORY_MODEL
  264. def_bool y if SPARC64
  265. config ARCH_SPARSEMEM_ENABLE
  266. def_bool y if SPARC64
  267. select SPARSEMEM_VMEMMAP_ENABLE
  268. config ARCH_SPARSEMEM_DEFAULT
  269. def_bool y if SPARC64
  270. source "mm/Kconfig"
  271. config SCHED_SMT
  272. bool "SMT (Hyperthreading) scheduler support"
  273. depends on SPARC64 && SMP
  274. default y
  275. help
  276. SMT scheduler support improves the CPU scheduler's decision making
  277. when dealing with SPARC cpus at a cost of slightly increased overhead
  278. in some places. If unsure say N here.
  279. config SCHED_MC
  280. bool "Multi-core scheduler support"
  281. depends on SPARC64 && SMP
  282. default y
  283. help
  284. Multi-core scheduler support improves the CPU scheduler's decision
  285. making when dealing with multi-core CPU chips at a cost of slightly
  286. increased overhead in some places. If unsure say N here.
  287. source "kernel/Kconfig.preempt"
  288. config CMDLINE_BOOL
  289. bool "Default bootloader kernel arguments"
  290. depends on SPARC64
  291. config CMDLINE
  292. string "Initial kernel command string"
  293. depends on CMDLINE_BOOL
  294. default "console=ttyS0,9600 root=/dev/sda1"
  295. help
  296. Say Y here if you want to be able to pass default arguments to
  297. the kernel. This will be overridden by the bootloader, if you
  298. use one (such as SILO). This is most useful if you want to boot
  299. a kernel from TFTP, and want default options to be available
  300. with having them passed on the command line.
  301. NOTE: This option WILL override the PROM bootargs setting!
  302. config SUN_PM
  303. bool
  304. default y if SPARC32
  305. help
  306. Enable power management and CPU standby features on supported
  307. SPARC platforms.
  308. config SPARC_LED
  309. tristate "Sun4m LED driver"
  310. depends on SPARC32
  311. help
  312. This driver toggles the front-panel LED on sun4m systems
  313. in a user-specifiable manner. Its state can be probed
  314. by reading /proc/led and its blinking mode can be changed
  315. via writes to /proc/led
  316. config SERIAL_CONSOLE
  317. bool
  318. depends on SPARC32
  319. default y
  320. ---help---
  321. If you say Y here, it will be possible to use a serial port as the
  322. system console (the system console is the device which receives all
  323. kernel messages and warnings and which allows logins in single user
  324. mode). This could be useful if some terminal or printer is connected
  325. to that serial port.
  326. Even if you say Y here, the currently visible virtual console
  327. (/dev/tty0) will still be used as the system console by default, but
  328. you can alter that using a kernel command line option such as
  329. "console=ttyS1". (Try "man bootparam" or see the documentation of
  330. your boot loader (silo) about how to pass options to the kernel at
  331. boot time.)
  332. If you don't have a graphics card installed and you say Y here, the
  333. kernel will automatically use the first serial line, /dev/ttyS0, as
  334. system console.
  335. If unsure, say N.
  336. config SPARC_LEON
  337. bool "Sparc Leon processor family"
  338. depends on SPARC32
  339. ---help---
  340. If you say Y here if you are running on a SPARC-LEON processor.
  341. The LEON processor is a synthesizable VHDL model of the
  342. SPARC-v8 standard. LEON is part of the GRLIB collection of
  343. IP cores that are distributed under GPL. GRLIB can be downloaded
  344. from www.gaisler.com. You can download a sparc-linux cross-compilation
  345. toolchain at www.gaisler.com.
  346. if SPARC_LEON
  347. menu "U-Boot options"
  348. config UBOOT_LOAD_ADDR
  349. hex "uImage Load Address"
  350. default 0x40004000
  351. ---help---
  352. U-Boot kernel load address, the address in physical address space
  353. where u-boot will place the Linux kernel before booting it.
  354. This address is normally the base address of main memory + 0x4000.
  355. config UBOOT_FLASH_ADDR
  356. hex "uImage.o Load Address"
  357. default 0x00080000
  358. ---help---
  359. Optional setting only affecting the uImage.o ELF-image used to
  360. download the uImage file to the target using a ELF-loader other than
  361. U-Boot. It may for example be used to download an uImage to FLASH with
  362. the GRMON utility before even starting u-boot.
  363. config UBOOT_ENTRY_ADDR
  364. hex "uImage Entry Address"
  365. default 0xf0004000
  366. ---help---
  367. Do not change this unless you know what you're doing. This is
  368. hardcoded by the SPARC32 and LEON port.
  369. This is the virtual address u-boot jumps to when booting the Linux
  370. Kernel.
  371. endmenu
  372. endif
  373. endmenu
  374. menu "Bus options (PCI etc.)"
  375. config SBUS
  376. bool
  377. default y
  378. config SBUSCHAR
  379. bool
  380. default y
  381. config SUN_LDOMS
  382. bool "Sun Logical Domains support"
  383. depends on SPARC64
  384. help
  385. Say Y here is you want to support virtual devices via
  386. Logical Domains.
  387. config PCI
  388. bool "Support for PCI and PS/2 keyboard/mouse"
  389. help
  390. Find out whether your system includes a PCI bus. PCI is the name of
  391. a bus system, i.e. the way the CPU talks to the other stuff inside
  392. your box. If you say Y here, the kernel will include drivers and
  393. infrastructure code to support PCI bus devices.
  394. CONFIG_PCI is needed for all JavaStation's (including MrCoffee),
  395. CP-1200, JavaEngine-1, Corona, Red October, and Serengeti SGSC.
  396. All of these platforms are extremely obscure, so say N if unsure.
  397. config PCI_DOMAINS
  398. def_bool PCI if SPARC64
  399. config PCI_SYSCALL
  400. def_bool PCI
  401. config PCIC_PCI
  402. bool
  403. depends on PCI && SPARC32 && !SPARC_LEON
  404. default y
  405. config LEON_PCI
  406. bool
  407. depends on PCI && SPARC_LEON
  408. default y
  409. config GRPCI2
  410. bool "GRPCI2 Host Bridge Support"
  411. depends on LEON_PCI
  412. default y
  413. help
  414. Say Y here to include the GRPCI2 Host Bridge Driver.
  415. source "drivers/pci/Kconfig"
  416. source "drivers/pcmcia/Kconfig"
  417. config SUN_OPENPROMFS
  418. tristate "Openprom tree appears in /proc/openprom"
  419. help
  420. If you say Y, the OpenPROM device tree will be available as a
  421. virtual file system, which you can mount to /proc/openprom by "mount
  422. -t openpromfs none /proc/openprom".
  423. To compile the /proc/openprom support as a module, choose M here: the
  424. module will be called openpromfs.
  425. Only choose N if you know in advance that you will not need to modify
  426. OpenPROM settings on the running system.
  427. # Makefile helper
  428. config SPARC64_PCI
  429. bool
  430. default y
  431. depends on SPARC64 && PCI
  432. endmenu
  433. menu "Executable file formats"
  434. source "fs/Kconfig.binfmt"
  435. config COMPAT
  436. bool
  437. depends on SPARC64
  438. default y
  439. select COMPAT_BINFMT_ELF
  440. select HAVE_UID16
  441. select ARCH_WANT_OLD_COMPAT_IPC
  442. config SYSVIPC_COMPAT
  443. bool
  444. depends on COMPAT && SYSVIPC
  445. default y
  446. config KEYS_COMPAT
  447. def_bool y if COMPAT && KEYS
  448. endmenu
  449. source "net/Kconfig"
  450. source "drivers/Kconfig"
  451. source "drivers/sbus/char/Kconfig"
  452. source "fs/Kconfig"
  453. source "arch/sparc/Kconfig.debug"
  454. source "security/Kconfig"
  455. source "crypto/Kconfig"
  456. source "lib/Kconfig"