18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0
28c2ecf20Sopenharmony_ciif MACH_LOONGSON32
38c2ecf20Sopenharmony_ci
48c2ecf20Sopenharmony_cichoice
58c2ecf20Sopenharmony_ci	prompt "Machine Type"
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_ciconfig LOONGSON1_LS1B
88c2ecf20Sopenharmony_ci	bool "Loongson LS1B board"
98c2ecf20Sopenharmony_ci	select CEVT_R4K if !MIPS_EXTERNAL_TIMER
108c2ecf20Sopenharmony_ci	select CSRC_R4K if !MIPS_EXTERNAL_TIMER
118c2ecf20Sopenharmony_ci	select SYS_HAS_CPU_LOONGSON1B
128c2ecf20Sopenharmony_ci	select DMA_NONCOHERENT
138c2ecf20Sopenharmony_ci	select BOOT_ELF32
148c2ecf20Sopenharmony_ci	select IRQ_MIPS_CPU
158c2ecf20Sopenharmony_ci	select SYS_SUPPORTS_32BIT_KERNEL
168c2ecf20Sopenharmony_ci	select SYS_SUPPORTS_LITTLE_ENDIAN
178c2ecf20Sopenharmony_ci	select SYS_SUPPORTS_HIGHMEM
188c2ecf20Sopenharmony_ci	select SYS_HAS_EARLY_PRINTK
198c2ecf20Sopenharmony_ci	select USE_GENERIC_EARLY_PRINTK_8250
208c2ecf20Sopenharmony_ci	select COMMON_CLK
218c2ecf20Sopenharmony_ci
228c2ecf20Sopenharmony_ciconfig LOONGSON1_LS1C
238c2ecf20Sopenharmony_ci	bool "Loongson LS1C board"
248c2ecf20Sopenharmony_ci	select CEVT_R4K if !MIPS_EXTERNAL_TIMER
258c2ecf20Sopenharmony_ci	select CSRC_R4K if !MIPS_EXTERNAL_TIMER
268c2ecf20Sopenharmony_ci	select SYS_HAS_CPU_LOONGSON1C
278c2ecf20Sopenharmony_ci	select DMA_NONCOHERENT
288c2ecf20Sopenharmony_ci	select BOOT_ELF32
298c2ecf20Sopenharmony_ci	select IRQ_MIPS_CPU
308c2ecf20Sopenharmony_ci	select SYS_SUPPORTS_32BIT_KERNEL
318c2ecf20Sopenharmony_ci	select SYS_SUPPORTS_LITTLE_ENDIAN
328c2ecf20Sopenharmony_ci	select SYS_SUPPORTS_HIGHMEM
338c2ecf20Sopenharmony_ci	select SYS_HAS_EARLY_PRINTK
348c2ecf20Sopenharmony_ci	select USE_GENERIC_EARLY_PRINTK_8250
358c2ecf20Sopenharmony_ci	select COMMON_CLK
368c2ecf20Sopenharmony_ciendchoice
378c2ecf20Sopenharmony_ci
388c2ecf20Sopenharmony_cimenuconfig CEVT_CSRC_LS1X
398c2ecf20Sopenharmony_ci	bool "Use PWM Timer for clockevent/clocksource"
408c2ecf20Sopenharmony_ci	select MIPS_EXTERNAL_TIMER
418c2ecf20Sopenharmony_ci	depends on CPU_LOONGSON32
428c2ecf20Sopenharmony_ci	help
438c2ecf20Sopenharmony_ci	  This option changes the default clockevent/clocksource to PWM Timer,
448c2ecf20Sopenharmony_ci	  and is required by Loongson1 CPUFreq support.
458c2ecf20Sopenharmony_ci
468c2ecf20Sopenharmony_ci	  If unsure, say N.
478c2ecf20Sopenharmony_ci
488c2ecf20Sopenharmony_cichoice
498c2ecf20Sopenharmony_ci	prompt  "Select clockevent/clocksource"
508c2ecf20Sopenharmony_ci	depends on CEVT_CSRC_LS1X
518c2ecf20Sopenharmony_ci	default TIMER_USE_PWM0
528c2ecf20Sopenharmony_ci
538c2ecf20Sopenharmony_ciconfig TIMER_USE_PWM0
548c2ecf20Sopenharmony_ci	bool "Use PWM Timer 0"
558c2ecf20Sopenharmony_ci	help
568c2ecf20Sopenharmony_ci	  Use PWM Timer 0 as the default clockevent/clocksourcer.
578c2ecf20Sopenharmony_ci
588c2ecf20Sopenharmony_ciconfig TIMER_USE_PWM1
598c2ecf20Sopenharmony_ci	bool "Use PWM Timer 1"
608c2ecf20Sopenharmony_ci	help
618c2ecf20Sopenharmony_ci	  Use PWM Timer 1 as the default clockevent/clocksourcer.
628c2ecf20Sopenharmony_ci
638c2ecf20Sopenharmony_ciconfig TIMER_USE_PWM2
648c2ecf20Sopenharmony_ci	bool "Use PWM Timer 2"
658c2ecf20Sopenharmony_ci	help
668c2ecf20Sopenharmony_ci	  Use PWM Timer 2 as the default clockevent/clocksourcer.
678c2ecf20Sopenharmony_ci
688c2ecf20Sopenharmony_ciconfig TIMER_USE_PWM3
698c2ecf20Sopenharmony_ci	bool "Use PWM Timer 3"
708c2ecf20Sopenharmony_ci	help
718c2ecf20Sopenharmony_ci	  Use PWM Timer 3 as the default clockevent/clocksourcer.
728c2ecf20Sopenharmony_ci
738c2ecf20Sopenharmony_ciendchoice
748c2ecf20Sopenharmony_ci
758c2ecf20Sopenharmony_ciendif # MACH_LOONGSON32
76