Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 |
Huacai Chen | 30ad29b | 2015-04-21 10:00:35 +0800 | [diff] [blame] | 2 | if MACH_LOONGSON32 |
Kelvin Cheung | ca585cf | 2012-07-25 16:17:24 +0200 | [diff] [blame] | 3 | |
| 4 | choice |
| 5 | prompt "Machine Type" |
| 6 | |
| 7 | config LOONGSON1_LS1B |
| 8 | bool "Loongson LS1B board" |
Kelvin Cheung | c5d58e9 | 2014-10-10 11:40:02 +0800 | [diff] [blame] | 9 | select CEVT_R4K if !MIPS_EXTERNAL_TIMER |
| 10 | select CSRC_R4K if !MIPS_EXTERNAL_TIMER |
Kelvin Cheung | ca585cf | 2012-07-25 16:17:24 +0200 | [diff] [blame] | 11 | select SYS_HAS_CPU_LOONGSON1B |
Paul Burton | d6c2fba | 2019-02-04 14:33:06 -0800 | [diff] [blame] | 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 |
Kelvin Cheung | ca585cf | 2012-07-25 16:17:24 +0200 | [diff] [blame] | 18 | select SYS_HAS_EARLY_PRINTK |
Kelvin Cheung | 813c141 | 2014-10-10 11:40:00 +0800 | [diff] [blame] | 19 | select USE_GENERIC_EARLY_PRINTK_8250 |
Kelvin Cheung | 17ded0a | 2012-10-23 05:17:00 +0000 | [diff] [blame] | 20 | select COMMON_CLK |
Kelvin Cheung | ca585cf | 2012-07-25 16:17:24 +0200 | [diff] [blame] | 21 | |
Yang Ling | 12e3280 | 2016-05-19 12:29:30 +0800 | [diff] [blame] | 22 | config LOONGSON1_LS1C |
| 23 | bool "Loongson LS1C board" |
| 24 | select CEVT_R4K if !MIPS_EXTERNAL_TIMER |
| 25 | select CSRC_R4K if !MIPS_EXTERNAL_TIMER |
Paul Burton | d6c2fba | 2019-02-04 14:33:06 -0800 | [diff] [blame] | 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 |
Yang Ling | 12e3280 | 2016-05-19 12:29:30 +0800 | [diff] [blame] | 33 | select SYS_HAS_EARLY_PRINTK |
| 34 | select USE_GENERIC_EARLY_PRINTK_8250 |
| 35 | select COMMON_CLK |
Kelvin Cheung | ca585cf | 2012-07-25 16:17:24 +0200 | [diff] [blame] | 36 | endchoice |
| 37 | |
Kelvin Cheung | c5d58e9 | 2014-10-10 11:40:02 +0800 | [diff] [blame] | 38 | menuconfig 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 | |
| 48 | choice |
| 49 | prompt "Select clockevent/clocksource" |
| 50 | depends on CEVT_CSRC_LS1X |
| 51 | default TIMER_USE_PWM0 |
| 52 | |
| 53 | config TIMER_USE_PWM0 |
| 54 | bool "Use PWM Timer 0" |
| 55 | help |
| 56 | Use PWM Timer 0 as the default clockevent/clocksourcer. |
| 57 | |
| 58 | config TIMER_USE_PWM1 |
| 59 | bool "Use PWM Timer 1" |
| 60 | help |
| 61 | Use PWM Timer 1 as the default clockevent/clocksourcer. |
| 62 | |
| 63 | config TIMER_USE_PWM2 |
| 64 | bool "Use PWM Timer 2" |
| 65 | help |
| 66 | Use PWM Timer 2 as the default clockevent/clocksourcer. |
| 67 | |
| 68 | config TIMER_USE_PWM3 |
| 69 | bool "Use PWM Timer 3" |
| 70 | help |
| 71 | Use PWM Timer 3 as the default clockevent/clocksourcer. |
| 72 | |
| 73 | endchoice |
| 74 | |
Huacai Chen | 30ad29b | 2015-04-21 10:00:35 +0800 | [diff] [blame] | 75 | endif # MACH_LOONGSON32 |