Kconfig 22 KB

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