blob: fc7282f0119f1376db3574b0aa6e286a49d95bb0 [file] [log] [blame]
Angel Pons0612b272020-04-05 15:46:56 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Pratik Prajapatia04aa3d2017-06-12 23:02:36 -07002
3#ifndef SOC_INTEL_COMMON_BLOCK_SGX_H
4#define SOC_INTEL_COMMON_BLOCK_SGX_H
5
Pratik Prajapati0e5eb462017-10-11 11:48:04 -07006#include <soc/nvs.h>
7
Pratik Prajapatia04aa3d2017-06-12 23:02:36 -07008/*
Pratik Prajapati53d68b42017-08-14 11:46:47 -07009 * 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 */
13void prmrr_core_configure(void);
14
15/*
Pratik Prajapatia04aa3d2017-06-12 23:02:36 -070016 * Configure SGX.
17 */
Subrata Banik33374972018-04-24 13:45:30 +053018void sgx_configure(void *unused);
Pratik Prajapatia04aa3d2017-06-12 23:02:36 -070019
Michael Niewöhnerb48caad2021-10-17 15:36:45 +020020/* Fill SSDT for SGX status, EPC base and length */
21void sgx_fill_ssdt(void);
Pratik Prajapati0e5eb462017-10-11 11:48:04 -070022
Pratik Prajapatia04aa3d2017-06-12 23:02:36 -070023#endif /* SOC_INTEL_COMMON_BLOCK_SGX_H */