blob: 3c0c2f2096cd8d1862e5807460d5deb39e3ab3fb [file] [log] [blame]
Huacai Chen30ad29b2015-04-21 10:00:35 +08001if MACH_LOONGSON32
Kelvin Cheungca585cf2012-07-25 16:17:24 +02002
3choice
4 prompt "Machine Type"
5
6config LOONGSON1_LS1B
7 bool "Loongson LS1B board"
Kelvin Cheungc5d58e92014-10-10 11:40:02 +08008 select CEVT_R4K if !MIPS_EXTERNAL_TIMER
9 select CSRC_R4K if !MIPS_EXTERNAL_TIMER
Kelvin Cheungca585cf2012-07-25 16:17:24 +020010 select SYS_HAS_CPU_LOONGSON1B
11 select DMA_NONCOHERENT
12 select BOOT_ELF32
Ralf Baechle67e38cf2015-05-26 18:20:06 +020013 select IRQ_MIPS_CPU
Kelvin Cheungca585cf2012-07-25 16:17:24 +020014 select SYS_SUPPORTS_32BIT_KERNEL
15 select SYS_SUPPORTS_LITTLE_ENDIAN
16 select SYS_SUPPORTS_HIGHMEM
Ralf Baechle377cb1b2014-04-29 01:49:24 +020017 select SYS_SUPPORTS_MIPS16
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
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_SUPPORTS_MIPS16
34 select SYS_HAS_EARLY_PRINTK
35 select USE_GENERIC_EARLY_PRINTK_8250
36 select COMMON_CLK
Kelvin Cheungca585cf2012-07-25 16:17:24 +020037endchoice
38
Kelvin Cheungc5d58e92014-10-10 11:40:02 +080039menuconfig CEVT_CSRC_LS1X
40 bool "Use PWM Timer for clockevent/clocksource"
41 select MIPS_EXTERNAL_TIMER
42 depends on CPU_LOONGSON1
43 help
44 This option changes the default clockevent/clocksource to PWM Timer,
45 and is required by Loongson1 CPUFreq support.
46
47 If unsure, say N.
48
49choice
50 prompt "Select clockevent/clocksource"
51 depends on CEVT_CSRC_LS1X
52 default TIMER_USE_PWM0
53
54config TIMER_USE_PWM0
55 bool "Use PWM Timer 0"
56 help
57 Use PWM Timer 0 as the default clockevent/clocksourcer.
58
59config TIMER_USE_PWM1
60 bool "Use PWM Timer 1"
61 help
62 Use PWM Timer 1 as the default clockevent/clocksourcer.
63
64config TIMER_USE_PWM2
65 bool "Use PWM Timer 2"
66 help
67 Use PWM Timer 2 as the default clockevent/clocksourcer.
68
69config TIMER_USE_PWM3
70 bool "Use PWM Timer 3"
71 help
72 Use PWM Timer 3 as the default clockevent/clocksourcer.
73
74endchoice
75
Huacai Chen30ad29b2015-04-21 10:00:35 +080076endif # MACH_LOONGSON32