blob: 33e1295df1495b94bafea8e01814c949f7c2823b [file] [log] [blame]
Mario Sixf62074e2019-01-21 09:18:13 +01001menu "SPCR - System priority and configuration register"
2
3choice
4 prompt "Optimize"
5
6config SPCR_OPT_UNSET
7 bool "Don't set value"
8
9config SPCR_OPT_NONE
10 bool "No performance enhancement"
11
12config SPCR_OPT_SPEC_READ
13 bool "Performance enhancement by speculative read"
14
15endchoice
16
17if ARCH_MPC8308 || ARCH_MPC831X || ARCH_MPC837X
18
19choice
20 prompt "TSEC emergency priority"
21
22config SPCR_TSECEP_UNSET
23 bool "Don't set value"
24
25config SPCR_TSECEP_0
26 bool "Level 0 (lowest priority)"
27
28config SPCR_TSECEP_1
29 bool "Level 1"
30
31config SPCR_TSECEP_2
32 bool "Level 2"
33
34config SPCR_TSECEP_3
35 bool "Level 3 (highest priority)"
36
37endchoice
38
39endif
40
Mario Sixf62074e2019-01-21 09:18:13 +010041config SPCR_OPT
42 hex
43 default 0x0 if SPCR_OPT_UNSET
44 default 0x0 if SPCR_OPT_NONE
45 default 0x800000 if SPCR_OPT_SPEC_READ
46
47config SPCR_TSECEP
48 hex
49 default 0x0 if SPCR_TSECEP_UNSET
50 default 0x0 if SPCR_TSECEP_0
51 default 0x100 if SPCR_TSECEP_1
52 default 0x200 if SPCR_TSECEP_2
53 default 0x300 if SPCR_TSECEP_3
54
55config SPCR_TSEC1EP
56 hex
57 default 0x0 if SPCR_TSEC1EP_UNSET
58 default 0x0 if SPCR_TSEC1EP_0
59 default 0x100 if SPCR_TSEC1EP_1
60 default 0x200 if SPCR_TSEC1EP_2
61 default 0x300 if SPCR_TSEC1EP_3
62
63config SPCR_TSEC2EP
64 hex
65 default 0x0 if SPCR_TSEC2EP_UNSET
66 default 0x0 if SPCR_TSEC2EP_0
67 default 0x1 if SPCR_TSEC2EP_1
68 default 0x2 if SPCR_TSEC2EP_2
69 default 0x3 if SPCR_TSEC2EP_3
70
71endmenu