Kconfig 19 KB

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