xref: /openbmc/linux/arch/mips/loongson32/Kconfig (revision e3b9f1e8)
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_SUPPORTS_MIPS16
19	select SYS_HAS_EARLY_PRINTK
20	select USE_GENERIC_EARLY_PRINTK_8250
21	select COMMON_CLK
22
23config LOONGSON1_LS1C
24	bool "Loongson LS1C board"
25	select CEVT_R4K if !MIPS_EXTERNAL_TIMER
26	select CSRC_R4K if !MIPS_EXTERNAL_TIMER
27	select SYS_HAS_CPU_LOONGSON1C
28	select DMA_NONCOHERENT
29	select BOOT_ELF32
30	select IRQ_MIPS_CPU
31	select SYS_SUPPORTS_32BIT_KERNEL
32	select SYS_SUPPORTS_LITTLE_ENDIAN
33	select SYS_SUPPORTS_HIGHMEM
34	select SYS_SUPPORTS_MIPS16
35	select SYS_HAS_EARLY_PRINTK
36	select USE_GENERIC_EARLY_PRINTK_8250
37	select COMMON_CLK
38endchoice
39
40menuconfig 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
50choice
51	prompt  "Select clockevent/clocksource"
52	depends on CEVT_CSRC_LS1X
53	default TIMER_USE_PWM0
54
55config TIMER_USE_PWM0
56	bool "Use PWM Timer 0"
57	help
58	  Use PWM Timer 0 as the default clockevent/clocksourcer.
59
60config TIMER_USE_PWM1
61	bool "Use PWM Timer 1"
62	help
63	  Use PWM Timer 1 as the default clockevent/clocksourcer.
64
65config TIMER_USE_PWM2
66	bool "Use PWM Timer 2"
67	help
68	  Use PWM Timer 2 as the default clockevent/clocksourcer.
69
70config TIMER_USE_PWM3
71	bool "Use PWM Timer 3"
72	help
73	  Use PWM Timer 3 as the default clockevent/clocksourcer.
74
75endchoice
76
77endif # MACH_LOONGSON32
78