summaryrefslogtreecommitdiff
path: root/target/linux/config/Config.in.cpu
blob: 5effd7bfd3ddc21935d647d47f3ec0f8f575a6aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

config ADK_LINUX_KERNEL_MTRR
	bool
	default y if ADK_TARGET_CPU_WITH_MTRR
	default n
	
# hyper threading
config ADK_LINUX_KERNEL_PM_SLEEP_SMP
	bool
	default y if ADK_TARGET_CPU_WITH_HT
	default n

config ADK_LINUX_KERNEL_X86_HT
	bool
	default y if ADK_TARGET_CPU_WITH_HT
	default n

config ADK_LINUX_KERNEL_USE_GENERIC_SMP_HELPERS
	bool
	default y if ADK_TARGET_CPU_WITH_HT
	default n

menu "CPU frequency support"
depends on ADK_TARGET_WITH_CPU_FREQ

config ADK_LINUX_KERNEL_CPU_FREQ
	bool

config ADK_LINUX_KERNEL_CPU_FREQ_GOV_PERFORMANCE
	bool

config ADK_LINUX_KERNEL_CPU_FREQ_GOV_POWERSAVE
	bool

config ADK_LINUX_KERNEL_CPU_FREQ_GOV_USERSPACE
	bool

config ADK_LINUX_KERNEL_CPU_FREQ_GOV_ONDEMAND
	bool

config ADK_LINUX_KERNEL_CPU_FREQ_GOV_CONSERVATIVE
	bool

config ADK_LINUX_KERNEL_CPUFREQ_DT_PLATDEV
	bool

config ADK_LINUX_KERNEL_CPUFREQ_DT
	bool "CPU frequency support DT"
	select ADK_LINUX_KERNEL_CPU_FREQ
	select ADK_LINUX_KERNEL_CPUFREQ_DT_PLATDEV
	depends on ADK_TARGET_SYSTEM_ORANGE_PI0 || \
		ADK_TARGET_SYSTEM_ROCKPI4_PLUS
	default y if ADK_TARGET_SYSTEM_ORANGE_PI0
	default y if ADK_TARGET_SYSTEM_ROCKPI4_PLUS
	default n

config ADK_LINUX_KERNEL_ARM_IMX6Q_CPUFREQ
	bool "CPU frequency support for IMX6 boards"
	select ADK_LINUX_KERNEL_CPU_FREQ
	select ADK_LINUX_KERNEL_REGULATOR
	select ADK_LINUX_KERNEL_REGULATOR_FIXED_VOLTAGE
	select ADK_LINUX_KERNEL_REGULATOR_ANATOP
	select ADK_LINUX_KERNEL_REGULATOR_PFUZE100
	depends on ADK_TARGET_SYSTEM_SOLIDRUN_IMX6  || \
		ADK_TARGET_SYSTEM_PHYTEC_IMX6
	default y if ADK_TARGET_SYSTEM_SOLIDRUN_IMX6  || \
		ADK_TARGET_SYSTEM_PHYTEC_IMX6
	default n

config ADK_LINUX_KERNEL_ARM_BCM2835_CPUFREQ
	bool "CPU frequency support for BCM28XX boards"
	select ADK_LINUX_KERNEL_CPU_FREQ
	depends on ADK_TARGET_BOARD_BCM28XX
	default y if ADK_TARGET_BOARD_BCM28XX
	default n

choice
prompt "Governor"
depends on ADK_LINUX_KERNEL_ARM_BCM2835_CPUFREQ || ADK_LINUX_KERNEL_ARM_IMX6_CPUFREQ

config ADK_LINUX_KERNEL_CPU_FREQ_DEFAULT_GOV_ONDEMAND
	bool "ondemand"
	select ADK_LINUX_KERNEL_CPU_FREQ_GOV_ONDEMAND

config ADK_LINUX_KERNEL_CPU_FREQ_DEFAULT_GOV_PERFORMANCE
	bool "performance"
	select ADK_LINUX_KERNEL_CPU_FREQ_GOV_PERFORMANCE

config ADK_LINUX_KERNEL_CPU_FREQ_DEFAULT_GOV_POWERSAVE
	bool "powersave"
	select ADK_LINUX_KERNEL_CPU_FREQ_GOV_POWERSAVE

config ADK_LINUX_KERNEL_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE
	bool "conservative"
	select ADK_LINUX_KERNEL_CPU_FREQ_GOV_CONSERVATIVE

config ADK_LINUX_KERNEL_CPU_FREQ_DEFAULT_GOV_USERSPACE
	bool "userspace"
	select ADK_LINUX_KERNEL_CPU_FREQ_GOV_USERSPACE
	
endchoice
endmenu