Kconfig 22 KB

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