Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) # SPDX-License-Identifier: GPL-2.0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) if MACH_LOONGSON32
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4) choice
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5) 	prompt "Machine Type"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) config LOONGSON1_LS1B
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) 	bool "Loongson LS1B board"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) 	select CEVT_R4K if !MIPS_EXTERNAL_TIMER
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) 	select CSRC_R4K if !MIPS_EXTERNAL_TIMER
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) 	select SYS_HAS_CPU_LOONGSON1B
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) 	select DMA_NONCOHERENT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) 	select BOOT_ELF32
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) 	select IRQ_MIPS_CPU
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) 	select SYS_SUPPORTS_32BIT_KERNEL
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) 	select SYS_SUPPORTS_LITTLE_ENDIAN
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) 	select SYS_SUPPORTS_HIGHMEM
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) 	select SYS_HAS_EARLY_PRINTK
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) 	select USE_GENERIC_EARLY_PRINTK_8250
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) 	select COMMON_CLK
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) config LOONGSON1_LS1C
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) 	bool "Loongson LS1C board"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) 	select CEVT_R4K if !MIPS_EXTERNAL_TIMER
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) 	select CSRC_R4K if !MIPS_EXTERNAL_TIMER
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) 	select SYS_HAS_CPU_LOONGSON1C
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) 	select DMA_NONCOHERENT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) 	select BOOT_ELF32
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) 	select IRQ_MIPS_CPU
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) 	select SYS_SUPPORTS_32BIT_KERNEL
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) 	select SYS_SUPPORTS_LITTLE_ENDIAN
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) 	select SYS_SUPPORTS_HIGHMEM
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) 	select SYS_HAS_EARLY_PRINTK
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) 	select USE_GENERIC_EARLY_PRINTK_8250
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) 	select COMMON_CLK
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) endchoice
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) menuconfig CEVT_CSRC_LS1X
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) 	bool "Use PWM Timer for clockevent/clocksource"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) 	select MIPS_EXTERNAL_TIMER
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) 	depends on CPU_LOONGSON32
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) 	help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) 	  This option changes the default clockevent/clocksource to PWM Timer,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) 	  and is required by Loongson1 CPUFreq support.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) 	  If unsure, say N.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) choice
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) 	prompt  "Select clockevent/clocksource"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) 	depends on CEVT_CSRC_LS1X
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) 	default TIMER_USE_PWM0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) config TIMER_USE_PWM0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) 	bool "Use PWM Timer 0"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) 	help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) 	  Use PWM Timer 0 as the default clockevent/clocksourcer.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) config TIMER_USE_PWM1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) 	bool "Use PWM Timer 1"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60) 	help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61) 	  Use PWM Timer 1 as the default clockevent/clocksourcer.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63) config TIMER_USE_PWM2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 64) 	bool "Use PWM Timer 2"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 65) 	help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 66) 	  Use PWM Timer 2 as the default clockevent/clocksourcer.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 67) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 68) config TIMER_USE_PWM3
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 69) 	bool "Use PWM Timer 3"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 70) 	help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 71) 	  Use PWM Timer 3 as the default clockevent/clocksourcer.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 72) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 73) endchoice
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 74) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 75) endif # MACH_LOONGSON32