1 /* SPDX-License-Identifier: BSD-2-Clause */ 2 /* 3 * Copyright 2021 NXP 4 */ 5 #ifndef __PTA_IMX_OCOTP_H__ 6 #define __PTA_IMX_OCOTP_H__ 7 8 #define PTA_OCOTP_UUID { 0x9abdf255, 0xd8fa, 0x40de, \ 9 { 0x8f, 0x60, 0x4d, 0x0b, 0x27, 0x92, 0x7b, 0x7d } } 10 11 /** 12 * Read chip UID 13 * 14 * [out] memref[0].buffer Output buffer to store UID 15 * [out] memref[0].size Size of the UID (64 bits) 16 * 17 * Return codes: 18 * TEE_SUCCESS - Invoke command success 19 * TEE_ERROR_BAD_PARAMETERS - Incorrect input parameter 20 * TEE_ERROR_GENERIC - UID not available 21 */ 22 #define PTA_OCOTP_CMD_CHIP_UID 0 23 24 /* 25 * Read chip OTP fuse 26 * 27 * [in] params[0].value.a Fuse bank number 28 * [in] params[0].value.b Fuse word number 29 * [out] params[1].value.a Fuse value 30 * 31 * Return codes: 32 * TEE_SUCCESS - Invoke command success 33 * TEE_ERROR_BAD_PARAMETERS - Incorrect input parameter 34 * TEE_ERROR_BUSY - OCOTP not available 35 */ 36 #define PTA_OCOTP_CMD_READ_FUSE 1 37 #endif /* __PTA_IMX_OCOTP_H__ */ 38