Kconfig 4.0 KB

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