~funderscore blog cgit wiki get in touch
aboutsummaryrefslogtreecommitdiff
blob: 33e1295df1495b94bafea8e01814c949f7c2823b (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
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

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