Kconfig 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. # SPDX-License-Identifier: GPL-2.0
  2. if MACH_LOONGSON2EF
  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_HAS_PHYS_TO_DMA
  9. select ARCH_MIGHT_HAVE_PC_PARPORT
  10. select ARCH_MIGHT_HAVE_PC_SERIO
  11. select CEVT_R4K
  12. select CSRC_R4K
  13. select SYS_HAS_CPU_LOONGSON2E
  14. select DMA_NONCOHERENT
  15. select BOOT_ELF32
  16. select BOARD_SCACHE
  17. select FORCE_PCI
  18. select I8259
  19. select ISA
  20. select IRQ_MIPS_CPU
  21. select SYS_SUPPORTS_64BIT_KERNEL
  22. select SYS_SUPPORTS_LITTLE_ENDIAN
  23. select SYS_SUPPORTS_HIGHMEM
  24. select SYS_HAS_EARLY_PRINTK
  25. select USE_GENERIC_EARLY_PRINTK_8250
  26. select GENERIC_ISA_DMA_SUPPORT_BROKEN
  27. select CPU_HAS_WB
  28. select LOONGSON_MC146818
  29. help
  30. Lemote Fuloong(2e) mini-PC board based on the Chinese Loongson-2E CPU and
  31. an FPGA northbridge
  32. Lemote Fuloong(2e) mini PC have a VIA686B south bridge.
  33. config LEMOTE_MACH2F
  34. bool "Lemote Loongson 2F family machines"
  35. select ARCH_SPARSEMEM_ENABLE
  36. select ARCH_HAS_PHYS_TO_DMA
  37. select ARCH_MIGHT_HAVE_PC_PARPORT
  38. select ARCH_MIGHT_HAVE_PC_SERIO
  39. select BOARD_SCACHE
  40. select BOOT_ELF32
  41. select CEVT_R4K if ! MIPS_EXTERNAL_TIMER
  42. select CPU_HAS_WB
  43. select CS5536
  44. select CSRC_R4K if ! MIPS_EXTERNAL_TIMER
  45. select DMA_NONCOHERENT
  46. select GENERIC_ISA_DMA_SUPPORT_BROKEN
  47. select GPIOLIB
  48. select FORCE_PCI
  49. select I8259
  50. select IRQ_MIPS_CPU
  51. select ISA
  52. select SYS_HAS_CPU_LOONGSON2F
  53. select SYS_HAS_EARLY_PRINTK
  54. select USE_GENERIC_EARLY_PRINTK_8250
  55. select SYS_SUPPORTS_64BIT_KERNEL
  56. select SYS_SUPPORTS_HIGHMEM
  57. select SYS_SUPPORTS_LITTLE_ENDIAN
  58. select LOONGSON_MC146818
  59. help
  60. Lemote Loongson 2F family machines utilize the 2F revision of
  61. Loongson processor and the AMD CS5536 south bridge.
  62. These family machines include fuloong2f mini PC, yeeloong2f notebook,
  63. LingLoong allinone PC and so forth.
  64. endchoice
  65. config CS5536
  66. bool
  67. config CS5536_MFGPT
  68. bool "CS5536 MFGPT Timer"
  69. depends on CS5536 && !HIGH_RES_TIMERS
  70. select MIPS_EXTERNAL_TIMER
  71. help
  72. This option enables the mfgpt0 timer of AMD CS5536. With this timer
  73. switched on you can not use high resolution timers.
  74. If you want to enable the Loongson2 CPUFreq Driver, Please enable
  75. this option at first, otherwise, You will get wrong system time.
  76. If unsure, say Yes.
  77. config LOONGSON_UART_BASE
  78. bool
  79. default y
  80. depends on EARLY_PRINTK || SERIAL_8250
  81. config LOONGSON_MC146818
  82. bool
  83. default n
  84. endif # MACH_LOONGSON2EF