Kconfig 23 KB

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