OCOTP driver supports fuse read.
| #define FSL_OCOTP_UID_LENGTH 16U |
| Enumerator |
|---|
| kStatus_OTP_InvalidAddress |
Invalid OTP address.
|
| kStatus_OTP_Timeout |
OTP operation time out.
|
This function enables OTP Controller clock.
- Returns
- kStatus_Success
This functin disables OTP Controller Clock.
- Returns
- kStatus_Success
| status_t OCOTP_OtpFuseRead |
( |
uint32_t |
addr, |
|
|
uint32_t * |
data |
|
) |
| |
This function read fuse data from OTP Fuse block to specified data buffer.
- Parameters
-
| addr | Fuse address |
| data | Buffer to hold the data read from OTP Fuse block |
- Returns
- kStatus_Success - Data read from OTP Fuse block successfully kStatus_OTP_Timeout - OTP read timeout kStatus_InvalidArgument - data pointer is invalid
| status_t OCOTP_ReadSocOtp |
( |
uint64_t * |
data, |
|
|
uint32_t |
tag |
|
) |
| |
This function read Fuse line with specific tag value from SoC OTP to specified data buffer.
- Parameters
-
| data | Buffer to hold the data read from SoC OTP |
| tag | Tag value to match |
- Returns
- kStatus_Success - Data read from SoC OTP successfully kStatus_Fail - Data read from SoC OTP failed, or cannot find the tag kStatus_InvalidArgument - data pointer is invalid
| status_t OCOTP_ReadUniqueID |
( |
uint8_t * |
uid, |
|
|
uint32_t * |
idLen |
|
) |
| |
This function read unique ID from OTP Fuse block to specified data buffer.
- Parameters
-
| uid | The buffer to store unique ID, buffer byte length is FSL_OCOTP_UID_LENGTH. |
| idLen[in/out] | The unique ID byte length. Set the length to read, return the length read out. |
- Returns
- kStatus_Success - Data read from OTP Fuse block successfully kStatus_OTP_Timeout - OTP read timeout kStatus_InvalidArgument - data pointer is invalid
| status_t OCOTP_ReadSVC |
( |
uint64_t * |
svc | ) |
|
This function read SVC from OTP Fuse block to specified data buffer.
- Parameters
-
| svc | The buffer to store SVC. |
- Returns
- kStatus_Success - Data read from SOC OTP successfully kStatus_Fail - SOC OTP read failure
| status_t OCOTP_ReadPackage |
( |
uint32_t * |
pack | ) |
|
- Parameters
-
| pack | The buffer to store package type. |
- Returns
- kStatus_Success - Data read from SOC OTP successfully kStatus_Fail - SOC OTP read failure