Kconfig 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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_32BIT_OFF_T
  7. select ARCH_HAS_SYNC_DMA_FOR_DEVICE
  8. select ARCH_NO_PREEMPT
  9. select ARCH_WANT_FRAME_POINTERS
  10. select DMA_GLOBAL_POOL
  11. select HAVE_PAGE_SIZE_4KB
  12. select HAVE_PAGE_SIZE_16KB
  13. select HAVE_PAGE_SIZE_64KB
  14. select HAVE_PAGE_SIZE_256KB
  15. select FRAME_POINTER
  16. # Other pending projects/to-do items.
  17. # select HAVE_REGS_AND_STACK_ACCESS_API
  18. # select HAVE_HW_BREAKPOINT if PERF_EVENTS
  19. # select ARCH_HAS_CPU_IDLE_WAIT
  20. # select GPIOLIB
  21. # select HAVE_CLK
  22. # select GENERIC_PENDING_IRQ if SMP
  23. select GENERIC_ATOMIC64
  24. select HAVE_PERF_EVENTS
  25. # GENERIC_ALLOCATOR is used by dma_alloc_coherent()
  26. select GENERIC_ALLOCATOR
  27. select GENERIC_IRQ_PROBE
  28. select GENERIC_IRQ_SHOW
  29. select HAVE_ARCH_KGDB
  30. select HAVE_ARCH_TRACEHOOK
  31. select NEED_SG_DMA_LENGTH
  32. select NO_IOPORT_MAP
  33. select GENERIC_IOMAP
  34. select GENERIC_IOREMAP
  35. select GENERIC_SMP_IDLE_THREAD
  36. select STACKTRACE_SUPPORT
  37. select GENERIC_CLOCKEVENTS_BROADCAST
  38. select LOCK_MM_AND_FIND_VMA
  39. select MODULES_USE_ELF_RELA
  40. select GENERIC_CPU_DEVICES
  41. select ARCH_WANT_LD_ORPHAN_WARN
  42. select TRACE_IRQFLAGS_SUPPORT
  43. help
  44. Qualcomm Hexagon is a processor architecture designed for high
  45. performance and low power across a wide variety of applications.
  46. config HEXAGON_PHYS_OFFSET
  47. def_bool y
  48. help
  49. Platforms that don't load the kernel at zero set this.
  50. config LOCKDEP_SUPPORT
  51. def_bool y
  52. config EARLY_PRINTK
  53. def_bool y
  54. config MMU
  55. def_bool y
  56. config GENERIC_CSUM
  57. def_bool y
  58. config GENERIC_HWEIGHT
  59. def_bool y
  60. config STACKTRACE_SUPPORT
  61. def_bool y
  62. select STACKTRACE
  63. config GENERIC_BUG
  64. def_bool y
  65. depends on BUG
  66. menu "Machine selection"
  67. choice
  68. prompt "System type"
  69. default HEXAGON_COMET
  70. config HEXAGON_COMET
  71. bool "Comet Board"
  72. help
  73. Support for the Comet platform.
  74. endchoice
  75. config HEXAGON_ARCH_VERSION
  76. int "Architecture version"
  77. default 2
  78. config CMDLINE
  79. string "Default kernel command string"
  80. default ""
  81. help
  82. On some platforms, there is currently no way for the boot loader
  83. to pass arguments to the kernel. For these, you should supply some
  84. command-line options at build time by entering them here. At a
  85. minimum, you should specify the memory size and the root device
  86. (e.g., mem=64M root=/dev/nfs).
  87. config SMP
  88. bool "Multi-Processing support"
  89. help
  90. Enables SMP support in the kernel. If unsure, say "Y"
  91. config NR_CPUS
  92. int "Maximum number of CPUs" if SMP
  93. range 2 6 if SMP
  94. default "1" if !SMP
  95. default "6" if SMP
  96. help
  97. This allows you to specify the maximum number of CPUs which this
  98. kernel will support. The maximum supported value is 6 and the
  99. minimum value which makes sense is 2.
  100. This is purely to save memory - each supported CPU adds
  101. approximately eight kilobytes to the kernel image.
  102. source "kernel/Kconfig.hz"
  103. endmenu