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