1 /* SPDX-License-Identifier: BSD-2-Clause */
2 /*
3  * Copyright 2018-2020 NXP
4  *
5  * Brief   CAAM Cipher manager header.
6  */
7 #ifndef __CAAM_CIPHER_H__
8 #define __CAAM_CIPHER_H__
9 
10 #include <caam_common.h>
11 
12 #ifdef CFG_NXP_CAAM_CIPHER_DRV
13 /*
14  * Initialize the Cipher module
15  *
16  * @ctrl_addr   Controller base address
17  */
18 enum caam_status caam_cipher_init(vaddr_t ctrl_addr);
19 #else
caam_cipher_init(vaddr_t ctrl_addr __unused)20 static inline enum caam_status caam_cipher_init(vaddr_t ctrl_addr __unused)
21 {
22 	return CAAM_NO_ERROR;
23 }
24 #endif /* CFG_NXP_CAAM_CIPHER_DRV */
25 #ifdef CFG_NXP_CAAM_CMAC_DRV
26 /*
27  * Initialize the CMAC module
28  *
29  * @ctrl_addr   Controller base address
30  */
31 enum caam_status caam_cmac_init(vaddr_t ctrl_addr);
32 #else
caam_cmac_init(vaddr_t ctrl_addr __unused)33 static inline enum caam_status caam_cmac_init(vaddr_t ctrl_addr __unused)
34 {
35 	return CAAM_NO_ERROR;
36 }
37 #endif /* CFG_NXP_CAAM_CMAC_DRV */
38 #endif /* __CAAM_CIPHER_H__ */
39