Kconfig 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. # SPDX-License-Identifier: GPL-2.0
  2. # Hexagon configuration
  3. comment "Linux Kernel Configuration for Hexagon"
  4. config HEXAGON
  5. def_bool y
  6. select ARCH_HAS_SYNC_DMA_FOR_DEVICE
  7. select ARCH_NO_PREEMPT
  8. select HAVE_OPROFILE
  9. # Other pending projects/to-do items.
  10. # select HAVE_REGS_AND_STACK_ACCESS_API
  11. # select HAVE_HW_BREAKPOINT if PERF_EVENTS
  12. # select ARCH_HAS_CPU_IDLE_WAIT
  13. # select GPIOLIB
  14. # select HAVE_CLK
  15. # select GENERIC_PENDING_IRQ if SMP
  16. select GENERIC_ATOMIC64
  17. select HAVE_PERF_EVENTS
  18. # GENERIC_ALLOCATOR is used by dma_alloc_coherent()
  19. select GENERIC_ALLOCATOR
  20. select GENERIC_IRQ_SHOW
  21. select HAVE_ARCH_KGDB
  22. select HAVE_ARCH_TRACEHOOK
  23. select ARCH_DISCARD_MEMBLOCK
  24. select NEED_SG_DMA_LENGTH
  25. select NO_IOPORT_MAP
  26. select GENERIC_IOMAP
  27. select GENERIC_SMP_IDLE_THREAD
  28. select STACKTRACE_SUPPORT
  29. select GENERIC_CLOCKEVENTS
  30. select GENERIC_CLOCKEVENTS_BROADCAST
  31. select MODULES_USE_ELF_RELA
  32. select GENERIC_CPU_DEVICES
  33. select DMA_DIRECT_OPS
  34. ---help---
  35. Qualcomm Hexagon is a processor architecture designed for high
  36. performance and low power across a wide variety of applications.
  37. config HEXAGON_PHYS_OFFSET
  38. def_bool y
  39. ---help---
  40. Platforms that don't load the kernel at zero set this.
  41. config FRAME_POINTER
  42. def_bool y
  43. config LOCKDEP_SUPPORT
  44. def_bool y
  45. config PCI
  46. def_bool n
  47. config EARLY_PRINTK
  48. def_bool y
  49. config MMU
  50. def_bool y
  51. config TRACE_IRQFLAGS_SUPPORT
  52. def_bool y
  53. config GENERIC_CSUM
  54. def_bool y
  55. #
  56. # Use the generic interrupt handling code in kernel/irq/:
  57. #
  58. config GENERIC_IRQ_PROBE
  59. def_bool y
  60. config RWSEM_GENERIC_SPINLOCK
  61. def_bool n
  62. config RWSEM_XCHGADD_ALGORITHM
  63. def_bool y
  64. config GENERIC_HWEIGHT
  65. def_bool y
  66. config STACKTRACE_SUPPORT
  67. def_bool y
  68. select STACKTRACE
  69. config GENERIC_BUG
  70. def_bool y
  71. depends on BUG
  72. menu "Machine selection"
  73. choice
  74. prompt "System type"
  75. default HEXAGON_COMET
  76. config HEXAGON_COMET
  77. bool "Comet Board"
  78. ---help---
  79. Support for the Comet platform.
  80. endchoice
  81. config HEXAGON_ARCH_VERSION
  82. int "Architecture version"
  83. default 2
  84. config CMDLINE
  85. string "Default kernel command string"
  86. default ""
  87. help
  88. On some platforms, there is currently no way for the boot loader
  89. to pass arguments to the kernel. For these, you should supply some
  90. command-line options at build time by entering them here. At a
  91. minimum, you should specify the memory size and the root device
  92. (e.g., mem=64M root=/dev/nfs).
  93. config SMP
  94. bool "Multi-Processing support"
  95. ---help---
  96. Enables SMP support in the kernel. If unsure, say "Y"
  97. config NR_CPUS
  98. int "Maximum number of CPUs" if SMP
  99. range 2 6 if SMP
  100. default "1" if !SMP
  101. default "6" if SMP
  102. ---help---
  103. This allows you to specify the maximum number of CPUs which this
  104. kernel will support. The maximum supported value is 6 and the
  105. minimum value which makes sense is 2.
  106. This is purely to save memory - each supported CPU adds
  107. approximately eight kilobytes to the kernel image.
  108. choice
  109. prompt "Kernel page size"
  110. default PAGE_SIZE_4KB
  111. ---help---
  112. Changes the default page size; use with caution.
  113. config PAGE_SIZE_4KB
  114. bool "4KB"
  115. config PAGE_SIZE_16KB
  116. bool "16KB"
  117. config PAGE_SIZE_64KB
  118. bool "64KB"
  119. config PAGE_SIZE_256KB
  120. bool "256KB"
  121. endchoice
  122. source "kernel/Kconfig.hz"
  123. endmenu