Kconfig 21 KB

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