Kconfig 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. # SPDX-License-Identifier: GPL-2.0
  2. if MACH_LOONGSON32
  3. choice
  4. prompt "Machine Type"
  5. config LOONGSON1_LS1B
  6. bool "Loongson LS1B board"
  7. select CEVT_R4K if !MIPS_EXTERNAL_TIMER
  8. select CSRC_R4K if !MIPS_EXTERNAL_TIMER
  9. select SYS_HAS_CPU_LOONGSON1B
  10. select DMA_NONCOHERENT
  11. select BOOT_ELF32
  12. select IRQ_MIPS_CPU
  13. select SYS_SUPPORTS_32BIT_KERNEL
  14. select SYS_SUPPORTS_LITTLE_ENDIAN
  15. select SYS_SUPPORTS_HIGHMEM
  16. select SYS_HAS_EARLY_PRINTK
  17. select USE_GENERIC_EARLY_PRINTK_8250
  18. select COMMON_CLK
  19. config LOONGSON1_LS1C
  20. bool "Loongson LS1C board"
  21. select CEVT_R4K if !MIPS_EXTERNAL_TIMER
  22. select CSRC_R4K if !MIPS_EXTERNAL_TIMER
  23. select SYS_HAS_CPU_LOONGSON1C
  24. select DMA_NONCOHERENT
  25. select BOOT_ELF32
  26. select IRQ_MIPS_CPU
  27. select SYS_SUPPORTS_32BIT_KERNEL
  28. select SYS_SUPPORTS_LITTLE_ENDIAN
  29. select SYS_SUPPORTS_HIGHMEM
  30. select SYS_HAS_EARLY_PRINTK
  31. select USE_GENERIC_EARLY_PRINTK_8250
  32. select COMMON_CLK
  33. endchoice
  34. menuconfig CEVT_CSRC_LS1X
  35. bool "Use PWM Timer for clockevent/clocksource"
  36. select MIPS_EXTERNAL_TIMER
  37. depends on CPU_LOONGSON32
  38. help
  39. This option changes the default clockevent/clocksource to PWM Timer,
  40. and is required by Loongson1 CPUFreq support.
  41. If unsure, say N.
  42. choice
  43. prompt "Select clockevent/clocksource"
  44. depends on CEVT_CSRC_LS1X
  45. default TIMER_USE_PWM0
  46. config TIMER_USE_PWM0
  47. bool "Use PWM Timer 0"
  48. help
  49. Use PWM Timer 0 as the default clockevent/clocksourcer.
  50. config TIMER_USE_PWM1
  51. bool "Use PWM Timer 1"
  52. help
  53. Use PWM Timer 1 as the default clockevent/clocksourcer.
  54. config TIMER_USE_PWM2
  55. bool "Use PWM Timer 2"
  56. help
  57. Use PWM Timer 2 as the default clockevent/clocksourcer.
  58. config TIMER_USE_PWM3
  59. bool "Use PWM Timer 3"
  60. help
  61. Use PWM Timer 3 as the default clockevent/clocksourcer.
  62. endchoice
  63. endif # MACH_LOONGSON32