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