Kconfig 4.0 KB

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