summaryrefslogtreecommitdiff
path: root/arch/powerpc/cpu/mpc83xx/initreg/Kconfig.spcr
blob: f32309e6c0f0dce383479f2a25c6d1663ef7c226 (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
105
106
107
108
109
110
111
112
113
114
115
menu "SPCR - System priority and configuration register"

choice
	prompt "Optimize"

config SPCR_OPT_UNSET
	bool "Don't set value"

config SPCR_OPT_NONE
	bool "No performance enhancement"

config SPCR_OPT_SPEC_READ
	bool "Performance enhancement by speculative read"

endchoice

if ARCH_MPC8308 || ARCH_MPC831X || ARCH_MPC837X

choice
	prompt "TSEC emergency priority"

config SPCR_TSECEP_UNSET
	bool "Don't set value"

config SPCR_TSECEP_0
	bool "Level 0 (lowest priority)"

config SPCR_TSECEP_1
	bool "Level 1"

config SPCR_TSECEP_2
	bool "Level 2"

config SPCR_TSECEP_3
	bool "Level 3 (highest priority)"

endchoice

endif

if ARCH_MPC8349

choice
	prompt "TSEC1 emergency priority"

config SPCR_TSEC1EP_UNSET
	bool "Don't set value"

config SPCR_TSEC1EP_0
	bool "Level 0 (lowest priority)"

config SPCR_TSEC1EP_1
	bool "Level 1"

config SPCR_TSEC1EP_2
	bool "Level 2"

config SPCR_TSEC1EP_3
	bool "Level 3 (highest priority)"

endchoice

choice
	prompt "TSEC2 emergency priority"

config SPCR_TSEC2EP_UNSET
	bool "Don't set value"

config SPCR_TSEC2EP_0
	bool "Level 0 (lowest priority)"

config SPCR_TSEC2EP_1
	bool "Level 1"

config SPCR_TSEC2EP_2
	bool "Level 2"

config SPCR_TSEC2EP_3
	bool "Level 3 (highest priority)"

endchoice

endif

config SPCR_OPT
	hex
	default 0x0 if SPCR_OPT_UNSET
	default 0x0 if SPCR_OPT_NONE
	default 0x800000 if SPCR_OPT_SPEC_READ

config SPCR_TSECEP
	hex
	default 0x0 if SPCR_TSECEP_UNSET
	default 0x0 if SPCR_TSECEP_0
	default 0x100 if SPCR_TSECEP_1
	default 0x200 if SPCR_TSECEP_2
	default 0x300 if SPCR_TSECEP_3

config SPCR_TSEC1EP
	hex
	default 0x0 if SPCR_TSEC1EP_UNSET
	default 0x0 if SPCR_TSEC1EP_0
	default 0x100 if SPCR_TSEC1EP_1
	default 0x200 if SPCR_TSEC1EP_2
	default 0x300 if SPCR_TSEC1EP_3

config SPCR_TSEC2EP
	hex
	default 0x0 if SPCR_TSEC2EP_UNSET
	default 0x0 if SPCR_TSEC2EP_0
	default 0x1 if SPCR_TSEC2EP_1
	default 0x2 if SPCR_TSEC2EP_2
	default 0x3 if SPCR_TSEC2EP_3

endmenu