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