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