Angel Pons | 0612b27 | 2020-04-05 15:46:56 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Pratik Prajapati | a04aa3d | 2017-06-12 23:02:36 -0700 | [diff] [blame] | 2 | |
| 3 | #ifndef SOC_INTEL_COMMON_BLOCK_SGX_H |
| 4 | #define SOC_INTEL_COMMON_BLOCK_SGX_H |
| 5 | |
Pratik Prajapati | 0e5eb46 | 2017-10-11 11:48:04 -0700 | [diff] [blame] | 6 | #include <soc/nvs.h> |
| 7 | |
Pratik Prajapati | a04aa3d | 2017-06-12 23:02:36 -0700 | [diff] [blame] | 8 | /* |
Pratik Prajapati | 53d68b4 | 2017-08-14 11:46:47 -0700 | [diff] [blame] | 9 | * Configure core PRMRR. |
| 10 | * PRMRR needs to configured first on all cores and then |
| 11 | * call sgx_configure() for all cores to init SGX. |
| 12 | */ |
| 13 | void prmrr_core_configure(void); |
| 14 | |
| 15 | /* |
Pratik Prajapati | a04aa3d | 2017-06-12 23:02:36 -0700 | [diff] [blame] | 16 | * Configure SGX. |
| 17 | */ |
Subrata Banik | 3337497 | 2018-04-24 13:45:30 +0530 | [diff] [blame] | 18 | void sgx_configure(void *unused); |
Pratik Prajapati | a04aa3d | 2017-06-12 23:02:36 -0700 | [diff] [blame] | 19 | |
Michael Niewöhner | b48caad | 2021-10-17 15:36:45 +0200 | [diff] [blame^] | 20 | /* Fill SSDT for SGX status, EPC base and length */ |
| 21 | void sgx_fill_ssdt(void); |
Pratik Prajapati | 0e5eb46 | 2017-10-11 11:48:04 -0700 | [diff] [blame] | 22 | |
Pratik Prajapati | a04aa3d | 2017-06-12 23:02:36 -0700 | [diff] [blame] | 23 | #endif /* SOC_INTEL_COMMON_BLOCK_SGX_H */ |