Kconfig 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888
  1. # SPDX-License-Identifier: GPL-2.0
  2. config SUPERH
  3. def_bool y
  4. select ARCH_HAS_PTE_SPECIAL
  5. select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST
  6. select ARCH_MIGHT_HAVE_PC_PARPORT
  7. select ARCH_NO_COHERENT_DMA_MMAP if !MMU
  8. select HAVE_PATA_PLATFORM
  9. select CLKDEV_LOOKUP
  10. select HAVE_IDE if HAS_IOPORT_MAP
  11. select HAVE_MEMBLOCK
  12. select HAVE_MEMBLOCK_NODE_MAP
  13. select NO_BOOTMEM
  14. select ARCH_DISCARD_MEMBLOCK
  15. select HAVE_OPROFILE
  16. select HAVE_GENERIC_DMA_COHERENT
  17. select HAVE_ARCH_TRACEHOOK
  18. select HAVE_PERF_EVENTS
  19. select HAVE_DEBUG_BUGVERBOSE
  20. select ARCH_HAVE_CUSTOM_GPIO_H
  21. select ARCH_HAVE_NMI_SAFE_CMPXCHG if (GUSA_RB || CPU_SH4A)
  22. select ARCH_HAS_GCOV_PROFILE_ALL
  23. select PERF_USE_VMALLOC
  24. select HAVE_DEBUG_KMEMLEAK
  25. select HAVE_KERNEL_GZIP
  26. select CPU_NO_EFFICIENT_FFS
  27. select HAVE_KERNEL_BZIP2
  28. select HAVE_KERNEL_LZMA
  29. select HAVE_KERNEL_XZ
  30. select HAVE_KERNEL_LZO
  31. select HAVE_UID16
  32. select ARCH_WANT_IPC_PARSE_VERSION
  33. select HAVE_SYSCALL_TRACEPOINTS
  34. select HAVE_REGS_AND_STACK_ACCESS_API
  35. select MAY_HAVE_SPARSE_IRQ
  36. select IRQ_FORCED_THREADING
  37. select RTC_LIB
  38. select GENERIC_ATOMIC64
  39. select GENERIC_IRQ_SHOW
  40. select GENERIC_SMP_IDLE_THREAD
  41. select GENERIC_IDLE_POLL_SETUP
  42. select GENERIC_CLOCKEVENTS
  43. select GENERIC_CMOS_UPDATE if SH_SH03 || SH_DREAMCAST
  44. select GENERIC_SCHED_CLOCK
  45. select GENERIC_STRNCPY_FROM_USER
  46. select GENERIC_STRNLEN_USER
  47. select HAVE_MOD_ARCH_SPECIFIC if DWARF_UNWINDER
  48. select MODULES_USE_ELF_RELA
  49. select OLD_SIGSUSPEND
  50. select OLD_SIGACTION
  51. select HAVE_ARCH_AUDITSYSCALL
  52. select HAVE_FUTEX_CMPXCHG if FUTEX
  53. select HAVE_NMI
  54. select NEED_SG_DMA_LENGTH
  55. help
  56. The SuperH is a RISC processor targeted for use in embedded systems
  57. and consumer electronics; it was also used in the Sega Dreamcast
  58. gaming console. The SuperH port has a home page at
  59. <http://www.linux-sh.org/>.
  60. config SUPERH32
  61. def_bool "$(ARCH)" = "sh"
  62. select HAVE_KPROBES
  63. select HAVE_KRETPROBES
  64. select HAVE_IOREMAP_PROT if MMU && !X2TLB
  65. select HAVE_FUNCTION_TRACER
  66. select HAVE_FTRACE_MCOUNT_RECORD
  67. select HAVE_DYNAMIC_FTRACE
  68. select HAVE_FTRACE_NMI_ENTER if DYNAMIC_FTRACE
  69. select ARCH_WANT_IPC_PARSE_VERSION
  70. select HAVE_FUNCTION_GRAPH_TRACER
  71. select HAVE_ARCH_KGDB
  72. select HAVE_HW_BREAKPOINT
  73. select HAVE_MIXED_BREAKPOINTS_REGS
  74. select PERF_EVENTS
  75. select ARCH_HIBERNATION_POSSIBLE if MMU
  76. select SPARSE_IRQ
  77. select HAVE_STACKPROTECTOR
  78. config SUPERH64
  79. def_bool "$(ARCH)" = "sh64"
  80. select HAVE_EXIT_THREAD
  81. select KALLSYMS
  82. config ARCH_DEFCONFIG
  83. string
  84. default "arch/sh/configs/shx3_defconfig" if SUPERH32
  85. default "arch/sh/configs/cayman_defconfig" if SUPERH64
  86. config RWSEM_GENERIC_SPINLOCK
  87. def_bool y
  88. config RWSEM_XCHGADD_ALGORITHM
  89. bool
  90. config GENERIC_BUG
  91. def_bool y
  92. depends on BUG && SUPERH32
  93. config GENERIC_CSUM
  94. def_bool y
  95. depends on SUPERH64
  96. config GENERIC_HWEIGHT
  97. def_bool y
  98. config GENERIC_CALIBRATE_DELAY
  99. bool
  100. config GENERIC_LOCKBREAK
  101. def_bool y
  102. depends on SMP && PREEMPT
  103. config ARCH_SUSPEND_POSSIBLE
  104. def_bool n
  105. config ARCH_HIBERNATION_POSSIBLE
  106. def_bool n
  107. config SYS_SUPPORTS_APM_EMULATION
  108. bool
  109. select ARCH_SUSPEND_POSSIBLE
  110. config SYS_SUPPORTS_HUGETLBFS
  111. bool
  112. config SYS_SUPPORTS_SMP
  113. bool
  114. config SYS_SUPPORTS_NUMA
  115. bool
  116. config SYS_SUPPORTS_PCI
  117. bool
  118. config STACKTRACE_SUPPORT
  119. def_bool y
  120. config LOCKDEP_SUPPORT
  121. def_bool y
  122. config ARCH_HAS_ILOG2_U32
  123. def_bool n
  124. config ARCH_HAS_ILOG2_U64
  125. def_bool n
  126. config NO_IOPORT_MAP
  127. def_bool !PCI
  128. depends on !SH_CAYMAN && !SH_SH4202_MICRODEV && !SH_SHMIN && \
  129. !SH_HP6XX && !SH_SOLUTION_ENGINE
  130. config IO_TRAPPED
  131. bool
  132. config SWAP_IO_SPACE
  133. bool
  134. config DMA_COHERENT
  135. select DMA_DIRECT_OPS
  136. bool
  137. config DMA_NONCOHERENT
  138. def_bool !DMA_COHERENT
  139. select ARCH_HAS_SYNC_DMA_FOR_DEVICE
  140. select DMA_NONCOHERENT_OPS
  141. config PGTABLE_LEVELS
  142. default 3 if X2TLB
  143. default 2
  144. menu "System type"
  145. #
  146. # Processor families
  147. #
  148. config CPU_SH2
  149. bool
  150. select SH_INTC
  151. config CPU_SH2A
  152. bool
  153. select CPU_SH2
  154. select UNCACHED_MAPPING
  155. config CPU_J2
  156. bool
  157. select CPU_SH2
  158. select OF
  159. select OF_EARLY_FLATTREE
  160. config CPU_SH3
  161. bool
  162. select CPU_HAS_INTEVT
  163. select CPU_HAS_SR_RB
  164. select SH_INTC
  165. select SYS_SUPPORTS_SH_TMU
  166. config CPU_SH4
  167. bool
  168. select CPU_HAS_INTEVT
  169. select CPU_HAS_SR_RB
  170. select CPU_HAS_FPU if !CPU_SH4AL_DSP
  171. select SH_INTC
  172. select SYS_SUPPORTS_SH_TMU
  173. select SYS_SUPPORTS_HUGETLBFS if MMU
  174. config CPU_SH4A
  175. bool
  176. select CPU_SH4
  177. config CPU_SH4AL_DSP
  178. bool
  179. select CPU_SH4A
  180. select CPU_HAS_DSP
  181. config CPU_SH5
  182. bool
  183. select CPU_HAS_FPU
  184. select SYS_SUPPORTS_SH_TMU
  185. select SYS_SUPPORTS_HUGETLBFS if MMU
  186. config CPU_SHX2
  187. bool
  188. config CPU_SHX3
  189. bool
  190. select DMA_COHERENT
  191. select SYS_SUPPORTS_SMP
  192. select SYS_SUPPORTS_NUMA
  193. config ARCH_SHMOBILE
  194. bool
  195. select ARCH_SUSPEND_POSSIBLE
  196. select PM
  197. config CPU_HAS_PMU
  198. depends on CPU_SH4 || CPU_SH4A
  199. default y
  200. bool
  201. if SUPERH32
  202. choice
  203. prompt "Processor sub-type selection"
  204. #
  205. # Processor subtypes
  206. #
  207. # SH-2 Processor Support
  208. config CPU_SUBTYPE_SH7619
  209. bool "Support SH7619 processor"
  210. select CPU_SH2
  211. select SYS_SUPPORTS_SH_CMT
  212. config CPU_SUBTYPE_J2
  213. bool "Support J2 processor"
  214. select CPU_J2
  215. select SYS_SUPPORTS_SMP
  216. select GENERIC_CLOCKEVENTS_BROADCAST if SMP
  217. # SH-2A Processor Support
  218. config CPU_SUBTYPE_SH7201
  219. bool "Support SH7201 processor"
  220. select CPU_SH2A
  221. select CPU_HAS_FPU
  222. select SYS_SUPPORTS_SH_MTU2
  223. config CPU_SUBTYPE_SH7203
  224. bool "Support SH7203 processor"
  225. select CPU_SH2A
  226. select CPU_HAS_FPU
  227. select SYS_SUPPORTS_SH_CMT
  228. select SYS_SUPPORTS_SH_MTU2
  229. select PINCTRL
  230. config CPU_SUBTYPE_SH7206
  231. bool "Support SH7206 processor"
  232. select CPU_SH2A
  233. select SYS_SUPPORTS_SH_CMT
  234. select SYS_SUPPORTS_SH_MTU2
  235. config CPU_SUBTYPE_SH7263
  236. bool "Support SH7263 processor"
  237. select CPU_SH2A
  238. select CPU_HAS_FPU
  239. select SYS_SUPPORTS_SH_CMT
  240. select SYS_SUPPORTS_SH_MTU2
  241. config CPU_SUBTYPE_SH7264
  242. bool "Support SH7264 processor"
  243. select CPU_SH2A
  244. select CPU_HAS_FPU
  245. select SYS_SUPPORTS_SH_CMT
  246. select SYS_SUPPORTS_SH_MTU2
  247. select PINCTRL
  248. config CPU_SUBTYPE_SH7269
  249. bool "Support SH7269 processor"
  250. select CPU_SH2A
  251. select CPU_HAS_FPU
  252. select SYS_SUPPORTS_SH_CMT
  253. select SYS_SUPPORTS_SH_MTU2
  254. select PINCTRL
  255. config CPU_SUBTYPE_MXG
  256. bool "Support MX-G processor"
  257. select CPU_SH2A
  258. select SYS_SUPPORTS_SH_MTU2
  259. help
  260. Select MX-G if running on an R8A03022BG part.
  261. # SH-3 Processor Support
  262. config CPU_SUBTYPE_SH7705
  263. bool "Support SH7705 processor"
  264. select CPU_SH3
  265. config CPU_SUBTYPE_SH7706
  266. bool "Support SH7706 processor"
  267. select CPU_SH3
  268. help
  269. Select SH7706 if you have a 133 Mhz SH-3 HD6417706 CPU.
  270. config CPU_SUBTYPE_SH7707
  271. bool "Support SH7707 processor"
  272. select CPU_SH3
  273. help
  274. Select SH7707 if you have a 60 Mhz SH-3 HD6417707 CPU.
  275. config CPU_SUBTYPE_SH7708
  276. bool "Support SH7708 processor"
  277. select CPU_SH3
  278. help
  279. Select SH7708 if you have a 60 Mhz SH-3 HD6417708S or
  280. if you have a 100 Mhz SH-3 HD6417708R CPU.
  281. config CPU_SUBTYPE_SH7709
  282. bool "Support SH7709 processor"
  283. select CPU_SH3
  284. help
  285. Select SH7709 if you have a 80 Mhz SH-3 HD6417709 CPU.
  286. config CPU_SUBTYPE_SH7710
  287. bool "Support SH7710 processor"
  288. select CPU_SH3
  289. select CPU_HAS_DSP
  290. help
  291. Select SH7710 if you have a SH3-DSP SH7710 CPU.
  292. config CPU_SUBTYPE_SH7712
  293. bool "Support SH7712 processor"
  294. select CPU_SH3
  295. select CPU_HAS_DSP
  296. help
  297. Select SH7712 if you have a SH3-DSP SH7712 CPU.
  298. config CPU_SUBTYPE_SH7720
  299. bool "Support SH7720 processor"
  300. select CPU_SH3
  301. select CPU_HAS_DSP
  302. select SYS_SUPPORTS_SH_CMT
  303. select USB_OHCI_SH if USB_OHCI_HCD
  304. select PINCTRL
  305. help
  306. Select SH7720 if you have a SH3-DSP SH7720 CPU.
  307. config CPU_SUBTYPE_SH7721
  308. bool "Support SH7721 processor"
  309. select CPU_SH3
  310. select CPU_HAS_DSP
  311. select SYS_SUPPORTS_SH_CMT
  312. select USB_OHCI_SH if USB_OHCI_HCD
  313. help
  314. Select SH7721 if you have a SH3-DSP SH7721 CPU.
  315. # SH-4 Processor Support
  316. config CPU_SUBTYPE_SH7750
  317. bool "Support SH7750 processor"
  318. select CPU_SH4
  319. help
  320. Select SH7750 if you have a 200 Mhz SH-4 HD6417750 CPU.
  321. config CPU_SUBTYPE_SH7091
  322. bool "Support SH7091 processor"
  323. select CPU_SH4
  324. help
  325. Select SH7091 if you have an SH-4 based Sega device (such as
  326. the Dreamcast, Naomi, and Naomi 2).
  327. config CPU_SUBTYPE_SH7750R
  328. bool "Support SH7750R processor"
  329. select CPU_SH4
  330. config CPU_SUBTYPE_SH7750S
  331. bool "Support SH7750S processor"
  332. select CPU_SH4
  333. config CPU_SUBTYPE_SH7751
  334. bool "Support SH7751 processor"
  335. select CPU_SH4
  336. help
  337. Select SH7751 if you have a 166 Mhz SH-4 HD6417751 CPU,
  338. or if you have a HD6417751R CPU.
  339. config CPU_SUBTYPE_SH7751R
  340. bool "Support SH7751R processor"
  341. select CPU_SH4
  342. config CPU_SUBTYPE_SH7760
  343. bool "Support SH7760 processor"
  344. select CPU_SH4
  345. config CPU_SUBTYPE_SH4_202
  346. bool "Support SH4-202 processor"
  347. select CPU_SH4
  348. # SH-4A Processor Support
  349. config CPU_SUBTYPE_SH7723
  350. bool "Support SH7723 processor"
  351. select CPU_SH4A
  352. select CPU_SHX2
  353. select ARCH_SHMOBILE
  354. select ARCH_SPARSEMEM_ENABLE
  355. select SYS_SUPPORTS_SH_CMT
  356. select PINCTRL
  357. help
  358. Select SH7723 if you have an SH-MobileR2 CPU.
  359. config CPU_SUBTYPE_SH7724
  360. bool "Support SH7724 processor"
  361. select CPU_SH4A
  362. select CPU_SHX2
  363. select ARCH_SHMOBILE
  364. select ARCH_SPARSEMEM_ENABLE
  365. select SYS_SUPPORTS_SH_CMT
  366. select PINCTRL
  367. help
  368. Select SH7724 if you have an SH-MobileR2R CPU.
  369. config CPU_SUBTYPE_SH7734
  370. bool "Support SH7734 processor"
  371. select CPU_SH4A
  372. select CPU_SHX2
  373. select PINCTRL
  374. help
  375. Select SH7734 if you have a SH4A SH7734 CPU.
  376. config CPU_SUBTYPE_SH7757
  377. bool "Support SH7757 processor"
  378. select CPU_SH4A
  379. select CPU_SHX2
  380. select PINCTRL
  381. help
  382. Select SH7757 if you have a SH4A SH7757 CPU.
  383. config CPU_SUBTYPE_SH7763
  384. bool "Support SH7763 processor"
  385. select CPU_SH4A
  386. select USB_OHCI_SH if USB_OHCI_HCD
  387. help
  388. Select SH7763 if you have a SH4A SH7763(R5S77631) CPU.
  389. config CPU_SUBTYPE_SH7770
  390. bool "Support SH7770 processor"
  391. select CPU_SH4A
  392. config CPU_SUBTYPE_SH7780
  393. bool "Support SH7780 processor"
  394. select CPU_SH4A
  395. config CPU_SUBTYPE_SH7785
  396. bool "Support SH7785 processor"
  397. select CPU_SH4A
  398. select CPU_SHX2
  399. select ARCH_SPARSEMEM_ENABLE
  400. select SYS_SUPPORTS_NUMA
  401. select PINCTRL
  402. config CPU_SUBTYPE_SH7786
  403. bool "Support SH7786 processor"
  404. select CPU_SH4A
  405. select CPU_SHX3
  406. select CPU_HAS_PTEAEX
  407. select GENERIC_CLOCKEVENTS_BROADCAST if SMP
  408. select USB_OHCI_SH if USB_OHCI_HCD
  409. select USB_EHCI_SH if USB_EHCI_HCD
  410. select PINCTRL
  411. config CPU_SUBTYPE_SHX3
  412. bool "Support SH-X3 processor"
  413. select CPU_SH4A
  414. select CPU_SHX3
  415. select GENERIC_CLOCKEVENTS_BROADCAST if SMP
  416. select GPIOLIB
  417. select PINCTRL
  418. # SH4AL-DSP Processor Support
  419. config CPU_SUBTYPE_SH7343
  420. bool "Support SH7343 processor"
  421. select CPU_SH4AL_DSP
  422. select ARCH_SHMOBILE
  423. select SYS_SUPPORTS_SH_CMT
  424. config CPU_SUBTYPE_SH7722
  425. bool "Support SH7722 processor"
  426. select CPU_SH4AL_DSP
  427. select CPU_SHX2
  428. select ARCH_SHMOBILE
  429. select ARCH_SPARSEMEM_ENABLE
  430. select SYS_SUPPORTS_NUMA
  431. select SYS_SUPPORTS_SH_CMT
  432. select PINCTRL
  433. config CPU_SUBTYPE_SH7366
  434. bool "Support SH7366 processor"
  435. select CPU_SH4AL_DSP
  436. select CPU_SHX2
  437. select ARCH_SHMOBILE
  438. select ARCH_SPARSEMEM_ENABLE
  439. select SYS_SUPPORTS_NUMA
  440. select SYS_SUPPORTS_SH_CMT
  441. endchoice
  442. endif
  443. if SUPERH64
  444. choice
  445. prompt "Processor sub-type selection"
  446. # SH-5 Processor Support
  447. config CPU_SUBTYPE_SH5_101
  448. bool "Support SH5-101 processor"
  449. select CPU_SH5
  450. config CPU_SUBTYPE_SH5_103
  451. bool "Support SH5-103 processor"
  452. select CPU_SH5
  453. endchoice
  454. endif
  455. source "arch/sh/mm/Kconfig"
  456. source "arch/sh/Kconfig.cpu"
  457. source "arch/sh/boards/Kconfig"
  458. menu "Timer and clock configuration"
  459. config SH_PCLK_FREQ
  460. int "Peripheral clock frequency (in Hz)"
  461. depends on SH_CLK_CPG_LEGACY
  462. default "31250000" if CPU_SUBTYPE_SH7619
  463. default "33333333" if CPU_SUBTYPE_SH7770 || \
  464. CPU_SUBTYPE_SH7760 || \
  465. CPU_SUBTYPE_SH7705 || \
  466. CPU_SUBTYPE_SH7203 || \
  467. CPU_SUBTYPE_SH7206 || \
  468. CPU_SUBTYPE_SH7263 || \
  469. CPU_SUBTYPE_MXG
  470. default "60000000" if CPU_SUBTYPE_SH7751 || CPU_SUBTYPE_SH7751R
  471. default "66000000" if CPU_SUBTYPE_SH4_202
  472. default "50000000"
  473. help
  474. This option is used to specify the peripheral clock frequency.
  475. This is necessary for determining the reference clock value on
  476. platforms lacking an RTC.
  477. config SH_CLK_CPG
  478. def_bool y
  479. config SH_CLK_CPG_LEGACY
  480. depends on SH_CLK_CPG
  481. def_bool y if !CPU_SUBTYPE_SH7785 && !ARCH_SHMOBILE && \
  482. !CPU_SHX3 && !CPU_SUBTYPE_SH7757 && \
  483. !CPU_SUBTYPE_SH7734 && !CPU_SUBTYPE_SH7264 && \
  484. !CPU_SUBTYPE_SH7269
  485. endmenu
  486. menu "CPU Frequency scaling"
  487. source "drivers/cpufreq/Kconfig"
  488. endmenu
  489. source "arch/sh/drivers/Kconfig"
  490. endmenu
  491. menu "Kernel features"
  492. source kernel/Kconfig.hz
  493. config KEXEC
  494. bool "kexec system call (EXPERIMENTAL)"
  495. depends on SUPERH32 && MMU
  496. select KEXEC_CORE
  497. help
  498. kexec is a system call that implements the ability to shutdown your
  499. current kernel, and to start another kernel. It is like a reboot
  500. but it is independent of the system firmware. And like a reboot
  501. you can start any kernel with it, not just Linux.
  502. The name comes from the similarity to the exec system call.
  503. It is an ongoing process to be certain the hardware in a machine
  504. is properly shutdown, so do not be surprised if this code does not
  505. initially work for you. As of this writing the exact hardware
  506. interface is strongly in flux, so no good recommendation can be
  507. made.
  508. config CRASH_DUMP
  509. bool "kernel crash dumps (EXPERIMENTAL)"
  510. depends on SUPERH32 && BROKEN_ON_SMP
  511. help
  512. Generate crash dump after being started by kexec.
  513. This should be normally only set in special crash dump kernels
  514. which are loaded in the main kernel with kexec-tools into
  515. a specially reserved region and then later executed after
  516. a crash by kdump/kexec. The crash dump kernel must be compiled
  517. to a memory address not used by the main kernel using
  518. PHYSICAL_START.
  519. For more details see Documentation/kdump/kdump.txt
  520. config KEXEC_JUMP
  521. bool "kexec jump (EXPERIMENTAL)"
  522. depends on SUPERH32 && KEXEC && HIBERNATION
  523. help
  524. Jump between original kernel and kexeced kernel and invoke
  525. code via KEXEC
  526. config PHYSICAL_START
  527. hex "Physical address where the kernel is loaded" if (EXPERT || CRASH_DUMP)
  528. default MEMORY_START
  529. ---help---
  530. This gives the physical address where the kernel is loaded
  531. and is ordinarily the same as MEMORY_START.
  532. Different values are primarily used in the case of kexec on panic
  533. where the fail safe kernel needs to run at a different address
  534. than the panic-ed kernel.
  535. config SECCOMP
  536. bool "Enable seccomp to safely compute untrusted bytecode"
  537. depends on PROC_FS
  538. help
  539. This kernel feature is useful for number crunching applications
  540. that may need to compute untrusted bytecode during their
  541. execution. By using pipes or other transports made available to
  542. the process as file descriptors supporting the read/write
  543. syscalls, it's possible to isolate those applications in
  544. their own address space using seccomp. Once seccomp is
  545. enabled via prctl, it cannot be disabled and the task is only
  546. allowed to execute a few safe syscalls defined by each seccomp
  547. mode.
  548. If unsure, say N.
  549. config SMP
  550. bool "Symmetric multi-processing support"
  551. depends on SYS_SUPPORTS_SMP
  552. ---help---
  553. This enables support for systems with more than one CPU. If you have
  554. a system with only one CPU, say N. If you have a system with more
  555. than one CPU, say Y.
  556. If you say N here, the kernel will run on uni- and multiprocessor
  557. machines, but will use only one CPU of a multiprocessor machine. If
  558. you say Y here, the kernel will run on many, but not all,
  559. uniprocessor machines. On a uniprocessor machine, the kernel
  560. will run faster if you say N here.
  561. People using multiprocessor machines who say Y here should also say
  562. Y to "Enhanced Real Time Clock Support", below.
  563. See also <file:Documentation/lockup-watchdogs.txt> and the SMP-HOWTO
  564. available at <http://www.tldp.org/docs.html#howto>.
  565. If you don't know what to do here, say N.
  566. config NR_CPUS
  567. int "Maximum number of CPUs (2-32)"
  568. range 2 32
  569. depends on SMP
  570. default "4" if CPU_SUBTYPE_SHX3
  571. default "2"
  572. help
  573. This allows you to specify the maximum number of CPUs which this
  574. kernel will support. The maximum supported value is 32 and the
  575. minimum value which makes sense is 2.
  576. This is purely to save memory - each supported CPU adds
  577. approximately eight kilobytes to the kernel image.
  578. config HOTPLUG_CPU
  579. bool "Support for hot-pluggable CPUs (EXPERIMENTAL)"
  580. depends on SMP
  581. help
  582. Say Y here to experiment with turning CPUs off and on. CPUs
  583. can be controlled through /sys/devices/system/cpu.
  584. config GUSA
  585. def_bool y
  586. depends on !SMP && SUPERH32
  587. help
  588. This enables support for gUSA (general UserSpace Atomicity).
  589. This is the default implementation for both UP and non-ll/sc
  590. CPUs, and is used by the libc, amongst others.
  591. For additional information, design information can be found
  592. in <http://lc.linux.or.jp/lc2002/papers/niibe0919p.pdf>.
  593. This should only be disabled for special cases where alternate
  594. atomicity implementations exist.
  595. config GUSA_RB
  596. bool "Implement atomic operations by roll-back (gRB) (EXPERIMENTAL)"
  597. depends on GUSA && CPU_SH3 || (CPU_SH4 && !CPU_SH4A)
  598. help
  599. Enabling this option will allow the kernel to implement some
  600. atomic operations using a software implementation of load-locked/
  601. store-conditional (LLSC). On machines which do not have hardware
  602. LLSC, this should be more efficient than the other alternative of
  603. disabling interrupts around the atomic sequence.
  604. config HW_PERF_EVENTS
  605. bool "Enable hardware performance counter support for perf events"
  606. depends on PERF_EVENTS && CPU_HAS_PMU
  607. default y
  608. help
  609. Enable hardware performance counter support for perf events. If
  610. disabled, perf events will use software events only.
  611. source "drivers/sh/Kconfig"
  612. endmenu
  613. menu "Boot options"
  614. config USE_BUILTIN_DTB
  615. bool "Use builtin DTB"
  616. default n
  617. depends on SH_DEVICE_TREE
  618. help
  619. Link a device tree blob for particular hardware into the kernel,
  620. suppressing use of the DTB pointer provided by the bootloader.
  621. This option should only be used with legacy bootloaders that are
  622. not capable of providing a DTB to the kernel, or for experimental
  623. hardware without stable device tree bindings.
  624. config BUILTIN_DTB_SOURCE
  625. string "Source file for builtin DTB"
  626. default ""
  627. depends on USE_BUILTIN_DTB
  628. help
  629. Base name (without suffix, relative to arch/sh/boot/dts) for the
  630. a DTS file that will be used to produce the DTB linked into the
  631. kernel.
  632. config ZERO_PAGE_OFFSET
  633. hex
  634. default "0x00010000" if PAGE_SIZE_64KB || SH_RTS7751R2D || \
  635. SH_7751_SOLUTION_ENGINE
  636. default "0x00004000" if PAGE_SIZE_16KB || SH_SH03
  637. default "0x00002000" if PAGE_SIZE_8KB
  638. default "0x00001000"
  639. help
  640. This sets the default offset of zero page.
  641. config BOOT_LINK_OFFSET
  642. hex
  643. default "0x00210000" if SH_SHMIN
  644. default "0x00400000" if SH_CAYMAN
  645. default "0x00810000" if SH_7780_SOLUTION_ENGINE
  646. default "0x009e0000" if SH_TITAN
  647. default "0x01800000" if SH_SDK7780
  648. default "0x02000000" if SH_EDOSK7760
  649. default "0x00800000"
  650. help
  651. This option allows you to set the link address offset of the zImage.
  652. This can be useful if you are on a board which has a small amount of
  653. memory.
  654. config ENTRY_OFFSET
  655. hex
  656. default "0x00001000" if PAGE_SIZE_4KB
  657. default "0x00002000" if PAGE_SIZE_8KB
  658. default "0x00004000" if PAGE_SIZE_16KB
  659. default "0x00010000" if PAGE_SIZE_64KB
  660. default "0x00000000"
  661. config ROMIMAGE_MMCIF
  662. bool "Include MMCIF loader in romImage (EXPERIMENTAL)"
  663. depends on CPU_SUBTYPE_SH7724
  664. help
  665. Say Y here to include experimental MMCIF loading code in
  666. romImage. With this enabled it is possible to write the romImage
  667. kernel image to an MMC card and boot the kernel straight from
  668. the reset vector. At reset the processor Mask ROM will load the
  669. first part of the romImage which in turn loads the rest the kernel
  670. image to RAM using the MMCIF hardware block.
  671. choice
  672. prompt "Kernel command line"
  673. optional
  674. default CMDLINE_OVERWRITE
  675. help
  676. Setting this option allows the kernel command line arguments
  677. to be set.
  678. config CMDLINE_OVERWRITE
  679. bool "Overwrite bootloader kernel arguments"
  680. help
  681. Given string will overwrite any arguments passed in by
  682. a bootloader.
  683. config CMDLINE_EXTEND
  684. bool "Extend bootloader kernel arguments"
  685. help
  686. Given string will be concatenated with arguments passed in
  687. by a bootloader.
  688. endchoice
  689. config CMDLINE
  690. string "Kernel command line arguments string"
  691. depends on CMDLINE_OVERWRITE || CMDLINE_EXTEND
  692. default "console=ttySC1,115200"
  693. endmenu
  694. menu "Bus options"
  695. config SUPERHYWAY
  696. tristate "SuperHyway Bus support"
  697. depends on CPU_SUBTYPE_SH4_202
  698. config MAPLE
  699. bool "Maple Bus support"
  700. depends on SH_DREAMCAST
  701. help
  702. The Maple Bus is SEGA's serial communication bus for peripherals
  703. on the Dreamcast. Without this bus support you won't be able to
  704. get your Dreamcast keyboard etc to work, so most users
  705. probably want to say 'Y' here, unless you are only using the
  706. Dreamcast with a serial line terminal or a remote network
  707. connection.
  708. config PCI
  709. bool "PCI support"
  710. depends on SYS_SUPPORTS_PCI
  711. select PCI_DOMAINS
  712. select GENERIC_PCI_IOMAP
  713. select NO_GENERIC_PCI_IOPORT_MAP
  714. help
  715. Find out whether you have a PCI motherboard. PCI is the name of a
  716. bus system, i.e. the way the CPU talks to the other stuff inside
  717. your box. If you have PCI, say Y, otherwise N.
  718. config PCI_DOMAINS
  719. bool
  720. source "drivers/pci/Kconfig"
  721. source "drivers/pcmcia/Kconfig"
  722. endmenu
  723. menu "Power management options (EXPERIMENTAL)"
  724. source "kernel/power/Kconfig"
  725. source "drivers/cpuidle/Kconfig"
  726. endmenu