Kconfig 18 KB

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