1 /* SPDX-License-Identifier: BSD-2-Clause */
2 /*
3  * Copyright 2021 NXP
4  */
5 
6 #ifndef _IMX_OCOTP_H
7 #define _IMX_OCOTP_H
8 
9 #include <tee_api_types.h>
10 
11 /* The i.MX UID is 64 bits long */
12 #define IMX_UID_SIZE sizeof(uint64_t)
13 
14 /*
15  * Read OCOTP shadow register
16  *
17  * @bank     Fuse bank number
18  * @word     Fuse word number
19  * @[out]val Shadow register value
20  */
21 TEE_Result imx_ocotp_read(unsigned int bank, unsigned int word, uint32_t *val);
22 #endif /* _IMX_OCOTP_H */
23