xref: /rk3399_ARM-atf/include/drivers/qti/crypto/rng.h (revision 1c63cd61495542b0b52e1b6e484c59ce5c26e0d2)
1*1b9f8ec7SSumit Garg /*
2*1b9f8ec7SSumit Garg  * Copyright (c) 2020, The Linux Foundation. All rights reserved.
3*1b9f8ec7SSumit Garg  * Copyright (c) 2025, Qualcomm Technologies, Inc. and/or its subsidiaries.
4*1b9f8ec7SSumit Garg  *
5*1b9f8ec7SSumit Garg  * SPDX-License-Identifier: BSD-3-Clause
6*1b9f8ec7SSumit Garg  */
7*1b9f8ec7SSumit Garg 
8*1b9f8ec7SSumit Garg #ifndef QTI_RNG_H
9*1b9f8ec7SSumit Garg #define QTI_RNG_H
10*1b9f8ec7SSumit Garg 
11*1b9f8ec7SSumit Garg #include <stdint.h>
12*1b9f8ec7SSumit Garg 
13*1b9f8ec7SSumit Garg #include <platform_def.h>
14*1b9f8ec7SSumit Garg 
15*1b9f8ec7SSumit Garg #define SEC_PRNG_STATUS				(QTI_SEC_PRNG_BASE + 0x1004)
16*1b9f8ec7SSumit Garg #define SEC_PRNG_DATA_OUT			(QTI_SEC_PRNG_BASE + 0x1000)
17*1b9f8ec7SSumit Garg #define SEC_PRNG_STATUS_DATA_AVAIL_BMSK		0x1
18*1b9f8ec7SSumit Garg 
19*1b9f8ec7SSumit Garg int qti_rng_get_data(uint8_t *out, uint32_t out_len);
20*1b9f8ec7SSumit Garg 
21*1b9f8ec7SSumit Garg #endif /* QTI_RNG_H */
22