blob: 6dacc14389062315104b84b3b7d123eccf823514 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001# SPDX-License-Identifier: GPL-2.0
Huacai Chen30ad29b2015-04-21 10:00:35 +08002if MACH_LOONGSON32
Kelvin Cheungca585cf2012-07-25 16:17:24 +02003
4choice
5 prompt "Machine Type"
6
7config LOONGSON1_LS1B
8 bool "Loongson LS1B board"
Kelvin Cheungc5d58e92014-10-10 11:40:02 +08009 select CEVT_R4K if !MIPS_EXTERNAL_TIMER
10 select CSRC_R4K if !MIPS_EXTERNAL_TIMER
Kelvin Cheungca585cf2012-07-25 16:17:24 +020011 select SYS_HAS_CPU_LOONGSON1B
Paul Burtond6c2fba2019-02-04 14:33:06 -080012 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
Kelvin Cheungca585cf2012-07-25 16:17:24 +020018 select SYS_HAS_EARLY_PRINTK
Kelvin Cheung813c1412014-10-10 11:40:00 +080019 select USE_GENERIC_EARLY_PRINTK_8250
Kelvin Cheung17ded0a2012-10-23 05:17:00 +000020 select COMMON_CLK
Kelvin Cheungca585cf2012-07-25 16:17:24 +020021
Yang Ling12e32802016-05-19 12:29:30 +080022config LOONGSON1_LS1C
23 bool "Loongson LS1C board"
24 select CEVT_R4K if !MIPS_EXTERNAL_TIMER
25 select CSRC_R4K if !MIPS_EXTERNAL_TIMER
Paul Burtond6c2fba2019-02-04 14:33:06 -080026 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
Yang Ling12e32802016-05-19 12:29:30 +080033 select SYS_HAS_EARLY_PRINTK
34 select USE_GENERIC_EARLY_PRINTK_8250
35 select COMMON_CLK
Kelvin Cheungca585cf2012-07-25 16:17:24 +020036endchoice
37
Kelvin Cheungc5d58e92014-10-10 11:40:02 +080038menuconfig 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
Huacai Chen30ad29b2015-04-21 10:00:35 +080075endif # MACH_LOONGSON32