Kconfig 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  1. # SPDX-License-Identifier: GPL-2.0
  2. config UNICORE32
  3. def_bool y
  4. select ARCH_HAS_DEVMEM_IS_ALLOWED
  5. select ARCH_MIGHT_HAVE_PC_PARPORT
  6. select ARCH_MIGHT_HAVE_PC_SERIO
  7. select HAVE_MEMBLOCK
  8. select HAVE_GENERIC_DMA_COHERENT
  9. select HAVE_KERNEL_GZIP
  10. select HAVE_KERNEL_BZIP2
  11. select GENERIC_ATOMIC64
  12. select HAVE_KERNEL_LZO
  13. select HAVE_KERNEL_LZMA
  14. select VIRT_TO_BUS
  15. select ARCH_HAVE_CUSTOM_GPIO_H
  16. select GENERIC_FIND_FIRST_BIT
  17. select GENERIC_IRQ_PROBE
  18. select GENERIC_IRQ_SHOW
  19. select ARCH_WANT_FRAME_POINTERS
  20. select GENERIC_IOMAP
  21. select MODULES_USE_ELF_REL
  22. help
  23. UniCore-32 is 32-bit Instruction Set Architecture,
  24. including a series of low-power-consumption RISC chip
  25. designs licensed by PKUnity Ltd.
  26. Please see web page at <http://www.pkunity.com/>.
  27. config GENERIC_CSUM
  28. def_bool y
  29. config NO_IOPORT_MAP
  30. bool
  31. config STACKTRACE_SUPPORT
  32. def_bool y
  33. config LOCKDEP_SUPPORT
  34. def_bool y
  35. config RWSEM_GENERIC_SPINLOCK
  36. def_bool y
  37. config RWSEM_XCHGADD_ALGORITHM
  38. bool
  39. config ARCH_HAS_ILOG2_U32
  40. bool
  41. config ARCH_HAS_ILOG2_U64
  42. bool
  43. config GENERIC_HWEIGHT
  44. def_bool y
  45. config GENERIC_CALIBRATE_DELAY
  46. def_bool y
  47. config ARCH_MAY_HAVE_PC_FDC
  48. bool
  49. config ZONE_DMA
  50. def_bool y
  51. config NEED_DMA_MAP_STATE
  52. def_bool y
  53. source "init/Kconfig"
  54. source "kernel/Kconfig.freezer"
  55. menu "System Type"
  56. config MMU
  57. def_bool y
  58. config ARCH_FPGA
  59. bool
  60. config ARCH_PUV3
  61. def_bool y
  62. select CPU_UCV2
  63. select GENERIC_CLOCKEVENTS
  64. select HAVE_CLK
  65. select GPIOLIB
  66. # CONFIGs for ARCH_PUV3
  67. if ARCH_PUV3
  68. choice
  69. prompt "Board Selection"
  70. default PUV3_DB0913
  71. config PUV3_FPGA_DLX200
  72. select ARCH_FPGA
  73. bool "FPGA board"
  74. config PUV3_DB0913
  75. bool "DEBUG board (0913)"
  76. config PUV3_NB0916
  77. bool "NetBook board (0916)"
  78. select PWM
  79. select PWM_PUV3
  80. config PUV3_SMW0919
  81. bool "Security Mini-Workstation board (0919)"
  82. endchoice
  83. config PUV3_PM
  84. def_bool y if !ARCH_FPGA
  85. endif
  86. source "arch/unicore32/mm/Kconfig"
  87. comment "Floating poing support"
  88. config UNICORE_FPU_F64
  89. def_bool y if !ARCH_FPGA
  90. endmenu
  91. menu "Bus support"
  92. config PCI
  93. bool "PCI Support"
  94. help
  95. Find out whether you have a PCI motherboard. PCI is the name of a
  96. bus system, i.e. the way the CPU talks to the other stuff inside
  97. your box. Other bus systems are ISA, EISA, MicroChannel (MCA) or
  98. VESA. If you have PCI, say Y, otherwise N.
  99. source "drivers/pci/Kconfig"
  100. source "drivers/pcmcia/Kconfig"
  101. endmenu
  102. menu "Kernel Features"
  103. source "kernel/Kconfig.preempt"
  104. source "kernel/Kconfig.hz"
  105. source "mm/Kconfig"
  106. config LEDS
  107. def_bool y
  108. depends on GPIOLIB
  109. config ALIGNMENT_TRAP
  110. def_bool y
  111. help
  112. Unicore processors can not fetch/store information which is not
  113. naturally aligned on the bus, i.e., a 4 byte fetch must start at an
  114. address divisible by 4. On 32-bit Unicore processors, these non-aligned
  115. fetch/store instructions will be emulated in software if you say
  116. here, which has a severe performance impact. This is necessary for
  117. correct operation of some network protocols. With an IP-only
  118. configuration it is safe to say N, otherwise say Y.
  119. endmenu
  120. menu "Boot options"
  121. config CMDLINE
  122. string "Default kernel command string"
  123. default ""
  124. config CMDLINE_FORCE
  125. bool "Always use the default kernel command string"
  126. depends on CMDLINE != ""
  127. help
  128. Always use the default kernel command string, even if the boot
  129. loader passes other arguments to the kernel.
  130. This is useful if you cannot or don't want to change the
  131. command-line options your boot loader passes to the kernel.
  132. If unsure, say N.
  133. endmenu
  134. menu "Userspace binary formats"
  135. source "fs/Kconfig.binfmt"
  136. endmenu
  137. menu "Power management options"
  138. source "kernel/power/Kconfig"
  139. source "drivers/cpufreq/Kconfig"
  140. config ARCH_SUSPEND_POSSIBLE
  141. def_bool y if !ARCH_FPGA
  142. config ARCH_HIBERNATION_POSSIBLE
  143. def_bool y if !ARCH_FPGA
  144. endmenu
  145. source "net/Kconfig"
  146. if ARCH_PUV3
  147. config PUV3_GPIO
  148. bool
  149. depends on !ARCH_FPGA
  150. select GPIO_SYSFS
  151. default y
  152. if PUV3_NB0916
  153. menu "PKUnity NetBook-0916 Features"
  154. config I2C_BATTERY_BQ27200
  155. tristate "I2C Battery BQ27200 Support"
  156. select I2C_PUV3
  157. select POWER_SUPPLY
  158. select BATTERY_BQ27XXX
  159. config I2C_EEPROM_AT24
  160. tristate "I2C EEPROMs AT24 support"
  161. select I2C_PUV3
  162. select EEPROM_AT24
  163. config LCD_BACKLIGHT
  164. tristate "LCD Backlight support"
  165. select BACKLIGHT_LCD_SUPPORT
  166. select BACKLIGHT_PWM
  167. endmenu
  168. endif
  169. endif
  170. source "drivers/Kconfig"
  171. source "fs/Kconfig"
  172. source "arch/unicore32/Kconfig.debug"
  173. source "security/Kconfig"
  174. source "crypto/Kconfig"
  175. source "lib/Kconfig"