Mario Six | f62074e | 2019-01-21 09:18:13 +0100 | [diff] [blame] | 1 | menu "SPCR - System priority and configuration register" |
| 2 | |
| 3 | choice |
| 4 | prompt "Optimize" |
| 5 | |
| 6 | config SPCR_OPT_UNSET |
| 7 | bool "Don't set value" |
| 8 | |
| 9 | config SPCR_OPT_NONE |
| 10 | bool "No performance enhancement" |
| 11 | |
| 12 | config SPCR_OPT_SPEC_READ |
| 13 | bool "Performance enhancement by speculative read" |
| 14 | |
| 15 | endchoice |
| 16 | |
| 17 | if ARCH_MPC8308 || ARCH_MPC831X || ARCH_MPC837X |
| 18 | |
| 19 | choice |
| 20 | prompt "TSEC emergency priority" |
| 21 | |
| 22 | config SPCR_TSECEP_UNSET |
| 23 | bool "Don't set value" |
| 24 | |
| 25 | config SPCR_TSECEP_0 |
| 26 | bool "Level 0 (lowest priority)" |
| 27 | |
| 28 | config SPCR_TSECEP_1 |
| 29 | bool "Level 1" |
| 30 | |
| 31 | config SPCR_TSECEP_2 |
| 32 | bool "Level 2" |
| 33 | |
| 34 | config SPCR_TSECEP_3 |
| 35 | bool "Level 3 (highest priority)" |
| 36 | |
| 37 | endchoice |
| 38 | |
| 39 | endif |
| 40 | |
Mario Six | f62074e | 2019-01-21 09:18:13 +0100 | [diff] [blame] | 41 | config 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 | |
| 47 | config 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 | |
| 55 | config 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 | |
| 63 | config 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 | |
| 71 | endmenu |