Kconfig 22 KB

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