xref: /optee_os/core/arch/arm/plat-k3/drivers/ti_crypto.h (revision 03128136c76dbd3630d29b058c01bdcc4e7dd12c)
1 /* SPDX-License-Identifier: BSD-2-Clause */
2 /*
3  * Copyright (C) 2025 Texas Instruments Incorporated - https://www.ti.com/
4  *	Suhaas Joshi <s-joshi@ti.com>
5  */
6 
7 #ifndef DRIVERS_TI_CRYPTO_H
8 #define DRIVERS_TI_CRYPTO_H
9 
10 #include <stdint.h>
11 #include <tee_api_types.h>
12 
13 /**
14  * ti_crypto_init_rng_fwl() - Initialize RNG firewall in SA2UL/DTHEv2
15  *
16  * Sets the firewall for the RNG region in SA2UL/DTHEv2 to allow access by only
17  * the secure world.
18  *
19  * @fwl_id:		Firewall identifier
20  * @sec_accel_region:	Firewall region index
21  *
22  * Return: TEE_SUCCESS if all goes well, else appropriate error message.
23  */
24 TEE_Result ti_crypto_init_rng_fwl(uint16_t fwl_id, uint16_t sec_accel_region);
25 
26 #endif
27