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