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