Kconfig 23 KB

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