Kconfig 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. if MACH_LOONGSON64
  2. choice
  3. prompt "Machine Type"
  4. config LEMOTE_FULOONG2E
  5. bool "Lemote Fuloong(2e) mini-PC"
  6. select ARCH_SPARSEMEM_ENABLE
  7. select CEVT_R4K
  8. select CSRC_R4K
  9. select SYS_HAS_CPU_LOONGSON2E
  10. select DMA_NONCOHERENT
  11. select BOOT_ELF32
  12. select BOARD_SCACHE
  13. select HW_HAS_PCI
  14. select I8259
  15. select ISA
  16. select IRQ_MIPS_CPU
  17. select SYS_SUPPORTS_32BIT_KERNEL
  18. select SYS_SUPPORTS_64BIT_KERNEL
  19. select SYS_SUPPORTS_LITTLE_ENDIAN
  20. select SYS_SUPPORTS_HIGHMEM
  21. select SYS_HAS_EARLY_PRINTK
  22. select GENERIC_ISA_DMA_SUPPORT_BROKEN
  23. select CPU_HAS_WB
  24. select LOONGSON_MC146818
  25. help
  26. Lemote Fuloong(2e) mini-PC board based on the Chinese Loongson-2E CPU and
  27. an FPGA northbridge
  28. Lemote Fuloong(2e) mini PC have a VIA686B south bridge.
  29. config LEMOTE_MACH2F
  30. bool "Lemote Loongson 2F family machines"
  31. select ARCH_SPARSEMEM_ENABLE
  32. select BOARD_SCACHE
  33. select BOOT_ELF32
  34. select CEVT_R4K if ! MIPS_EXTERNAL_TIMER
  35. select CPU_HAS_WB
  36. select CS5536
  37. select CSRC_R4K if ! MIPS_EXTERNAL_TIMER
  38. select DMA_NONCOHERENT
  39. select GENERIC_ISA_DMA_SUPPORT_BROKEN
  40. select HAVE_CLK
  41. select HW_HAS_PCI
  42. select I8259
  43. select IRQ_MIPS_CPU
  44. select ISA
  45. select SYS_HAS_CPU_LOONGSON2F
  46. select SYS_HAS_EARLY_PRINTK
  47. select SYS_SUPPORTS_32BIT_KERNEL
  48. select SYS_SUPPORTS_64BIT_KERNEL
  49. select SYS_SUPPORTS_HIGHMEM
  50. select SYS_SUPPORTS_LITTLE_ENDIAN
  51. select LOONGSON_MC146818
  52. help
  53. Lemote Loongson 2F family machines utilize the 2F revision of
  54. Loongson processor and the AMD CS5536 south bridge.
  55. These family machines include fuloong2f mini PC, yeeloong2f notebook,
  56. LingLoong allinone PC and so forth.
  57. config LOONGSON_MACH3X
  58. bool "Generic Loongson 3 family machines"
  59. select ARCH_SPARSEMEM_ENABLE
  60. select GENERIC_ISA_DMA_SUPPORT_BROKEN
  61. select BOOT_ELF32
  62. select BOARD_SCACHE
  63. select CSRC_R4K
  64. select CEVT_R4K
  65. select CPU_HAS_WB
  66. select HW_HAS_PCI
  67. select ISA
  68. select HT_PCI
  69. select I8259
  70. select IRQ_MIPS_CPU
  71. select NR_CPUS_DEFAULT_4
  72. select SYS_HAS_CPU_LOONGSON3
  73. select SYS_HAS_EARLY_PRINTK
  74. select SYS_SUPPORTS_SMP
  75. select SYS_SUPPORTS_HOTPLUG_CPU
  76. select SYS_SUPPORTS_NUMA
  77. select SYS_SUPPORTS_64BIT_KERNEL
  78. select SYS_SUPPORTS_HIGHMEM
  79. select SYS_SUPPORTS_LITTLE_ENDIAN
  80. select LOONGSON_MC146818
  81. select ZONE_DMA32
  82. select LEFI_FIRMWARE_INTERFACE
  83. select PHYS48_TO_HT40
  84. help
  85. Generic Loongson 3 family machines utilize the 3A/3B revision
  86. of Loongson processor and RS780/SBX00 chipset.
  87. endchoice
  88. config CS5536
  89. bool
  90. config CS5536_MFGPT
  91. bool "CS5536 MFGPT Timer"
  92. depends on CS5536 && !HIGH_RES_TIMERS
  93. select MIPS_EXTERNAL_TIMER
  94. help
  95. This option enables the mfgpt0 timer of AMD CS5536. With this timer
  96. switched on you can not use high resolution timers.
  97. If you want to enable the Loongson2 CPUFreq Driver, Please enable
  98. this option at first, otherwise, You will get wrong system time.
  99. If unsure, say Yes.
  100. config RS780_HPET
  101. bool "RS780/SBX00 HPET Timer"
  102. depends on LOONGSON_MACH3X
  103. select MIPS_EXTERNAL_TIMER
  104. help
  105. This option enables the hpet timer of AMD RS780/SBX00.
  106. If you want to enable the Loongson3 CPUFreq Driver, Please enable
  107. this option at first, otherwise, You will get wrong system time.
  108. If unsure, say Yes.
  109. config LOONGSON_UART_BASE
  110. bool
  111. default y
  112. depends on EARLY_PRINTK || SERIAL_8250
  113. config IOMMU_HELPER
  114. bool
  115. config NEED_SG_DMA_LENGTH
  116. bool
  117. config SWIOTLB
  118. bool "Soft IOMMU Support for All-Memory DMA"
  119. default y
  120. depends on CPU_LOONGSON3
  121. select IOMMU_HELPER
  122. select NEED_SG_DMA_LENGTH
  123. select NEED_DMA_MAP_STATE
  124. config PHYS48_TO_HT40
  125. bool
  126. default y if CPU_LOONGSON3
  127. config LOONGSON_MC146818
  128. bool
  129. default n
  130. config LEFI_FIRMWARE_INTERFACE
  131. bool
  132. endif # MACH_LOONGSON64