Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: GPL-2.0
0002 if MACH_LOONGSON32
0003 
0004 choice
0005         prompt "Machine Type"
0006 
0007 config LOONGSON1_LS1B
0008         bool "Loongson LS1B board"
0009         select CEVT_R4K if !MIPS_EXTERNAL_TIMER
0010         select CSRC_R4K if !MIPS_EXTERNAL_TIMER
0011         select SYS_HAS_CPU_LOONGSON1B
0012         select DMA_NONCOHERENT
0013         select BOOT_ELF32
0014         select IRQ_MIPS_CPU
0015         select SYS_SUPPORTS_32BIT_KERNEL
0016         select SYS_SUPPORTS_LITTLE_ENDIAN
0017         select SYS_SUPPORTS_HIGHMEM
0018         select SYS_HAS_EARLY_PRINTK
0019         select USE_GENERIC_EARLY_PRINTK_8250
0020         select COMMON_CLK
0021 
0022 config LOONGSON1_LS1C
0023         bool "Loongson LS1C board"
0024         select CEVT_R4K if !MIPS_EXTERNAL_TIMER
0025         select CSRC_R4K if !MIPS_EXTERNAL_TIMER
0026         select SYS_HAS_CPU_LOONGSON1C
0027         select DMA_NONCOHERENT
0028         select BOOT_ELF32
0029         select IRQ_MIPS_CPU
0030         select SYS_SUPPORTS_32BIT_KERNEL
0031         select SYS_SUPPORTS_LITTLE_ENDIAN
0032         select SYS_SUPPORTS_HIGHMEM
0033         select SYS_HAS_EARLY_PRINTK
0034         select USE_GENERIC_EARLY_PRINTK_8250
0035         select COMMON_CLK
0036 endchoice
0037 
0038 menuconfig CEVT_CSRC_LS1X
0039         bool "Use PWM Timer for clockevent/clocksource"
0040         select MIPS_EXTERNAL_TIMER
0041         depends on CPU_LOONGSON32
0042         help
0043           This option changes the default clockevent/clocksource to PWM Timer,
0044           and is required by Loongson1 CPUFreq support.
0045 
0046           If unsure, say N.
0047 
0048 choice
0049         prompt "Select clockevent/clocksource"
0050         depends on CEVT_CSRC_LS1X
0051         default TIMER_USE_PWM0
0052 
0053 config TIMER_USE_PWM0
0054         bool "Use PWM Timer 0"
0055         help
0056           Use PWM Timer 0 as the default clockevent/clocksourcer.
0057 
0058 config TIMER_USE_PWM1
0059         bool "Use PWM Timer 1"
0060         help
0061           Use PWM Timer 1 as the default clockevent/clocksourcer.
0062 
0063 config TIMER_USE_PWM2
0064         bool "Use PWM Timer 2"
0065         help
0066           Use PWM Timer 2 as the default clockevent/clocksourcer.
0067 
0068 config TIMER_USE_PWM3
0069         bool "Use PWM Timer 3"
0070         help
0071           Use PWM Timer 3 as the default clockevent/clocksourcer.
0072 
0073 endchoice
0074 
0075 endif # MACH_LOONGSON32