Kelvin Cheung | ca585cf | 2012-07-25 16:17:24 +0200 | [diff] [blame] | 1 | if MACH_LOONGSON1 |
| 2 | |
| 3 | choice |
| 4 | prompt "Machine Type" |
| 5 | |
| 6 | config LOONGSON1_LS1B |
| 7 | bool "Loongson LS1B board" |
Kelvin Cheung | c5d58e9 | 2014-10-10 11:40:02 +0800 | [diff] [blame] | 8 | select CEVT_R4K if !MIPS_EXTERNAL_TIMER |
| 9 | select CSRC_R4K if !MIPS_EXTERNAL_TIMER |
Kelvin Cheung | ca585cf | 2012-07-25 16:17:24 +0200 | [diff] [blame] | 10 | select SYS_HAS_CPU_LOONGSON1B |
| 11 | select DMA_NONCOHERENT |
| 12 | select BOOT_ELF32 |
| 13 | select IRQ_CPU |
| 14 | select SYS_SUPPORTS_32BIT_KERNEL |
| 15 | select SYS_SUPPORTS_LITTLE_ENDIAN |
| 16 | select SYS_SUPPORTS_HIGHMEM |
Ralf Baechle | 377cb1b | 2014-04-29 01:49:24 +0200 | [diff] [blame] | 17 | select SYS_SUPPORTS_MIPS16 |
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 | |
| 22 | endchoice |
| 23 | |
Kelvin Cheung | c5d58e9 | 2014-10-10 11:40:02 +0800 | [diff] [blame] | 24 | menuconfig CEVT_CSRC_LS1X |
| 25 | bool "Use PWM Timer for clockevent/clocksource" |
| 26 | select MIPS_EXTERNAL_TIMER |
| 27 | depends on CPU_LOONGSON1 |
| 28 | help |
| 29 | This option changes the default clockevent/clocksource to PWM Timer, |
| 30 | and is required by Loongson1 CPUFreq support. |
| 31 | |
| 32 | If unsure, say N. |
| 33 | |
| 34 | choice |
| 35 | prompt "Select clockevent/clocksource" |
| 36 | depends on CEVT_CSRC_LS1X |
| 37 | default TIMER_USE_PWM0 |
| 38 | |
| 39 | config TIMER_USE_PWM0 |
| 40 | bool "Use PWM Timer 0" |
| 41 | help |
| 42 | Use PWM Timer 0 as the default clockevent/clocksourcer. |
| 43 | |
| 44 | config TIMER_USE_PWM1 |
| 45 | bool "Use PWM Timer 1" |
| 46 | help |
| 47 | Use PWM Timer 1 as the default clockevent/clocksourcer. |
| 48 | |
| 49 | config TIMER_USE_PWM2 |
| 50 | bool "Use PWM Timer 2" |
| 51 | help |
| 52 | Use PWM Timer 2 as the default clockevent/clocksourcer. |
| 53 | |
| 54 | config TIMER_USE_PWM3 |
| 55 | bool "Use PWM Timer 3" |
| 56 | help |
| 57 | Use PWM Timer 3 as the default clockevent/clocksourcer. |
| 58 | |
| 59 | endchoice |
| 60 | |
Kelvin Cheung | ca585cf | 2012-07-25 16:17:24 +0200 | [diff] [blame] | 61 | endif # MACH_LOONGSON1 |