XilSKey_ZynqMp_EfusePs_ReadPpk0Hash - 2021.1 English

Xilinx Standalone Library Documentation OS and Libraries Document Collection (UG643)

Document ID
UG643
Release Date
2021-06-16
Version
2021.1 English

This function is used to read the PPK0 hash from an eFUSE or eFUSE cache.

Note: It is highly recommended to read from eFuse cache. Because reading from efuse may reduce the life of the efuse. And Cache reload is required for obtaining updated values for ReadOption 0.

Prototype

u32 XilSKey_ZynqMp_EfusePs_ReadPpk0Hash(u32 *Ppk0Hash, u8 ReadOption);

Parameters

The following table lists the XilSKey_ZynqMp_EfusePs_ReadPpk0Hash function arguments.

Table 1. XilSKey_ZynqMp_EfusePs_ReadPpk0Hash Arguments
Type Name Description
u32 * Ppk0Hash A pointer to an array which holds the readback PPK0 hash.
u8 ReadOption Indicates whether or not to read from the actual eFUSE array or from the eFUSE cache.
  • 0(XSK_EFUSEPS_READ_FROM_CACHE) Reads from eFUSE cache
  • 1(XSK_EFUSEPS_READ_FROM_EFUSE) Reads from eFUSE array

Returns

  • XST_SUCCESS on successful read
  • ErrorCode on failure