1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0 230ad29bbSHuacai Chenif MACH_LOONGSON32 330ad29bbSHuacai Chen 430ad29bbSHuacai Chenchoice 530ad29bbSHuacai Chen prompt "Machine Type" 630ad29bbSHuacai Chen 730ad29bbSHuacai Chenconfig LOONGSON1_LS1B 830ad29bbSHuacai Chen bool "Loongson LS1B board" 930ad29bbSHuacai Chen select CEVT_R4K if !MIPS_EXTERNAL_TIMER 1030ad29bbSHuacai Chen select CSRC_R4K if !MIPS_EXTERNAL_TIMER 1130ad29bbSHuacai Chen select SYS_HAS_CPU_LOONGSON1B 1230ad29bbSHuacai Chen select DMA_NONCOHERENT 1330ad29bbSHuacai Chen select BOOT_ELF32 1430ad29bbSHuacai Chen select IRQ_MIPS_CPU 1530ad29bbSHuacai Chen select SYS_SUPPORTS_32BIT_KERNEL 1630ad29bbSHuacai Chen select SYS_SUPPORTS_LITTLE_ENDIAN 1730ad29bbSHuacai Chen select SYS_SUPPORTS_HIGHMEM 1830ad29bbSHuacai Chen select SYS_SUPPORTS_MIPS16 1930ad29bbSHuacai Chen select SYS_HAS_EARLY_PRINTK 2030ad29bbSHuacai Chen select USE_GENERIC_EARLY_PRINTK_8250 2130ad29bbSHuacai Chen select COMMON_CLK 2230ad29bbSHuacai Chen 2312e3280bSYang Lingconfig LOONGSON1_LS1C 2412e3280bSYang Ling bool "Loongson LS1C board" 2512e3280bSYang Ling select CEVT_R4K if !MIPS_EXTERNAL_TIMER 2612e3280bSYang Ling select CSRC_R4K if !MIPS_EXTERNAL_TIMER 2712e3280bSYang Ling select SYS_HAS_CPU_LOONGSON1C 2812e3280bSYang Ling select DMA_NONCOHERENT 2912e3280bSYang Ling select BOOT_ELF32 3012e3280bSYang Ling select IRQ_MIPS_CPU 3112e3280bSYang Ling select SYS_SUPPORTS_32BIT_KERNEL 3212e3280bSYang Ling select SYS_SUPPORTS_LITTLE_ENDIAN 3312e3280bSYang Ling select SYS_SUPPORTS_HIGHMEM 3412e3280bSYang Ling select SYS_SUPPORTS_MIPS16 3512e3280bSYang Ling select SYS_HAS_EARLY_PRINTK 3612e3280bSYang Ling select USE_GENERIC_EARLY_PRINTK_8250 3712e3280bSYang Ling select COMMON_CLK 3830ad29bbSHuacai Chenendchoice 3930ad29bbSHuacai Chen 4030ad29bbSHuacai Chenmenuconfig CEVT_CSRC_LS1X 4130ad29bbSHuacai Chen bool "Use PWM Timer for clockevent/clocksource" 4230ad29bbSHuacai Chen select MIPS_EXTERNAL_TIMER 4330ad29bbSHuacai Chen depends on CPU_LOONGSON1 4430ad29bbSHuacai Chen help 4530ad29bbSHuacai Chen This option changes the default clockevent/clocksource to PWM Timer, 4630ad29bbSHuacai Chen and is required by Loongson1 CPUFreq support. 4730ad29bbSHuacai Chen 4830ad29bbSHuacai Chen If unsure, say N. 4930ad29bbSHuacai Chen 5030ad29bbSHuacai Chenchoice 5130ad29bbSHuacai Chen prompt "Select clockevent/clocksource" 5230ad29bbSHuacai Chen depends on CEVT_CSRC_LS1X 5330ad29bbSHuacai Chen default TIMER_USE_PWM0 5430ad29bbSHuacai Chen 5530ad29bbSHuacai Chenconfig TIMER_USE_PWM0 5630ad29bbSHuacai Chen bool "Use PWM Timer 0" 5730ad29bbSHuacai Chen help 5830ad29bbSHuacai Chen Use PWM Timer 0 as the default clockevent/clocksourcer. 5930ad29bbSHuacai Chen 6030ad29bbSHuacai Chenconfig TIMER_USE_PWM1 6130ad29bbSHuacai Chen bool "Use PWM Timer 1" 6230ad29bbSHuacai Chen help 6330ad29bbSHuacai Chen Use PWM Timer 1 as the default clockevent/clocksourcer. 6430ad29bbSHuacai Chen 6530ad29bbSHuacai Chenconfig TIMER_USE_PWM2 6630ad29bbSHuacai Chen bool "Use PWM Timer 2" 6730ad29bbSHuacai Chen help 6830ad29bbSHuacai Chen Use PWM Timer 2 as the default clockevent/clocksourcer. 6930ad29bbSHuacai Chen 7030ad29bbSHuacai Chenconfig TIMER_USE_PWM3 7130ad29bbSHuacai Chen bool "Use PWM Timer 3" 7230ad29bbSHuacai Chen help 7330ad29bbSHuacai Chen Use PWM Timer 3 as the default clockevent/clocksourcer. 7430ad29bbSHuacai Chen 7530ad29bbSHuacai Chenendchoice 7630ad29bbSHuacai Chen 7730ad29bbSHuacai Chenendif # MACH_LOONGSON32 78