1 # SPDX-License-Identifier: GPL-2.0 << 2 if MACH_LOONGSON32 1 if MACH_LOONGSON32 3 2 4 choice 3 choice 5 prompt "Machine Type" 4 prompt "Machine Type" 6 5 7 config LOONGSON1_LS1B 6 config LOONGSON1_LS1B 8 bool "Loongson LS1B board" 7 bool "Loongson LS1B board" 9 select CEVT_R4K if !MIPS_EXTERNAL_TIME 8 select CEVT_R4K if !MIPS_EXTERNAL_TIMER 10 select CSRC_R4K if !MIPS_EXTERNAL_TIME 9 select CSRC_R4K if !MIPS_EXTERNAL_TIMER 11 select SYS_HAS_CPU_LOONGSON1B 10 select SYS_HAS_CPU_LOONGSON1B 12 select DMA_NONCOHERENT 11 select DMA_NONCOHERENT 13 select BOOT_ELF32 12 select BOOT_ELF32 14 select IRQ_MIPS_CPU 13 select IRQ_MIPS_CPU 15 select SYS_SUPPORTS_32BIT_KERNEL 14 select SYS_SUPPORTS_32BIT_KERNEL 16 select SYS_SUPPORTS_LITTLE_ENDIAN 15 select SYS_SUPPORTS_LITTLE_ENDIAN 17 select SYS_SUPPORTS_HIGHMEM 16 select SYS_SUPPORTS_HIGHMEM >> 17 select SYS_SUPPORTS_MIPS16 18 select SYS_HAS_EARLY_PRINTK 18 select SYS_HAS_EARLY_PRINTK 19 select USE_GENERIC_EARLY_PRINTK_8250 19 select USE_GENERIC_EARLY_PRINTK_8250 20 select COMMON_CLK 20 select COMMON_CLK 21 21 22 config LOONGSON1_LS1C 22 config LOONGSON1_LS1C 23 bool "Loongson LS1C board" 23 bool "Loongson LS1C board" 24 select CEVT_R4K if !MIPS_EXTERNAL_TIME 24 select CEVT_R4K if !MIPS_EXTERNAL_TIMER 25 select CSRC_R4K if !MIPS_EXTERNAL_TIME 25 select CSRC_R4K if !MIPS_EXTERNAL_TIMER 26 select SYS_HAS_CPU_LOONGSON1C 26 select SYS_HAS_CPU_LOONGSON1C 27 select DMA_NONCOHERENT 27 select DMA_NONCOHERENT 28 select BOOT_ELF32 28 select BOOT_ELF32 29 select IRQ_MIPS_CPU 29 select IRQ_MIPS_CPU 30 select SYS_SUPPORTS_32BIT_KERNEL 30 select SYS_SUPPORTS_32BIT_KERNEL 31 select SYS_SUPPORTS_LITTLE_ENDIAN 31 select SYS_SUPPORTS_LITTLE_ENDIAN 32 select SYS_SUPPORTS_HIGHMEM 32 select SYS_SUPPORTS_HIGHMEM >> 33 select SYS_SUPPORTS_MIPS16 33 select SYS_HAS_EARLY_PRINTK 34 select SYS_HAS_EARLY_PRINTK 34 select USE_GENERIC_EARLY_PRINTK_8250 35 select USE_GENERIC_EARLY_PRINTK_8250 35 select COMMON_CLK 36 select COMMON_CLK >> 37 endchoice >> 38 >> 39 menuconfig CEVT_CSRC_LS1X >> 40 bool "Use PWM Timer for clockevent/clocksource" >> 41 select MIPS_EXTERNAL_TIMER >> 42 depends on CPU_LOONGSON1 >> 43 help >> 44 This option changes the default clockevent/clocksource to PWM Timer, >> 45 and is required by Loongson1 CPUFreq support. >> 46 >> 47 If unsure, say N. >> 48 >> 49 choice >> 50 prompt "Select clockevent/clocksource" >> 51 depends on CEVT_CSRC_LS1X >> 52 default TIMER_USE_PWM0 >> 53 >> 54 config TIMER_USE_PWM0 >> 55 bool "Use PWM Timer 0" >> 56 help >> 57 Use PWM Timer 0 as the default clockevent/clocksourcer. >> 58 >> 59 config TIMER_USE_PWM1 >> 60 bool "Use PWM Timer 1" >> 61 help >> 62 Use PWM Timer 1 as the default clockevent/clocksourcer. >> 63 >> 64 config TIMER_USE_PWM2 >> 65 bool "Use PWM Timer 2" >> 66 help >> 67 Use PWM Timer 2 as the default clockevent/clocksourcer. >> 68 >> 69 config TIMER_USE_PWM3 >> 70 bool "Use PWM Timer 3" >> 71 help >> 72 Use PWM Timer 3 as the default clockevent/clocksourcer. >> 73 36 endchoice 74 endchoice 37 75 38 endif # MACH_LOONGSON32 76 endif # MACH_LOONGSON32
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.