Kconfig 3.4 KB

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