Kconfig 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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_SUPPORTS_MIPS16
  17. select SYS_HAS_EARLY_PRINTK
  18. select USE_GENERIC_EARLY_PRINTK_8250
  19. select COMMON_CLK
  20. config LOONGSON1_LS1C
  21. bool "Loongson LS1C board"
  22. select CEVT_R4K if !MIPS_EXTERNAL_TIMER
  23. select CSRC_R4K if !MIPS_EXTERNAL_TIMER
  24. select SYS_HAS_CPU_LOONGSON1C
  25. select DMA_NONCOHERENT
  26. select BOOT_ELF32
  27. select IRQ_MIPS_CPU
  28. select SYS_SUPPORTS_32BIT_KERNEL
  29. select SYS_SUPPORTS_LITTLE_ENDIAN
  30. select SYS_SUPPORTS_HIGHMEM
  31. select SYS_SUPPORTS_MIPS16
  32. select SYS_HAS_EARLY_PRINTK
  33. select USE_GENERIC_EARLY_PRINTK_8250
  34. select COMMON_CLK
  35. endchoice
  36. menuconfig CEVT_CSRC_LS1X
  37. bool "Use PWM Timer for clockevent/clocksource"
  38. select MIPS_EXTERNAL_TIMER
  39. depends on CPU_LOONGSON1
  40. help
  41. This option changes the default clockevent/clocksource to PWM Timer,
  42. and is required by Loongson1 CPUFreq support.
  43. If unsure, say N.
  44. choice
  45. prompt "Select clockevent/clocksource"
  46. depends on CEVT_CSRC_LS1X
  47. default TIMER_USE_PWM0
  48. config TIMER_USE_PWM0
  49. bool "Use PWM Timer 0"
  50. help
  51. Use PWM Timer 0 as the default clockevent/clocksourcer.
  52. config TIMER_USE_PWM1
  53. bool "Use PWM Timer 1"
  54. help
  55. Use PWM Timer 1 as the default clockevent/clocksourcer.
  56. config TIMER_USE_PWM2
  57. bool "Use PWM Timer 2"
  58. help
  59. Use PWM Timer 2 as the default clockevent/clocksourcer.
  60. config TIMER_USE_PWM3
  61. bool "Use PWM Timer 3"
  62. help
  63. Use PWM Timer 3 as the default clockevent/clocksourcer.
  64. endchoice
  65. endif # MACH_LOONGSON32