![]() |
SyterKit 0.4.0.x
SyterKit is a bare-metal framework
|
#include <barrier.h>#include <io.h>#include <stdarg.h>#include <stdbool.h>#include <stddef.h>#include <stdint.h>#include <types.h>#include <log.h>#include <common.h>#include "sys-sid.h"
Classes | |
| struct | sid_section_t |
Enumerations | |
| enum | { SID_PRCTL = SUNXI_SID_BASE + 0x040 , SID_PRKEY = SUNXI_SID_BASE + 0x050 , SID_RDKEY = SUNXI_SID_BASE + 0x060 , EFUSE_HV_SWITCH = SUNXI_RTC_BASE + 0x204 } |
Functions | |
| uint32_t | syter_efuse_read (uint32_t offset) |
| Read a value from the eFuse memory. | |
| void | syter_efuse_write (uint32_t offset, uint32_t value) |
| Write a value to the eFuse memory. | |
| void | syter_efuse_dump (void) |
| Dump the contents of the eFuse memory. | |
Variables | |
| const struct sid_section_t | sids [] = {{"chipid", 0x00, 128}, {"brom-config", 0x10, 32}, {"aldo-fix", 0x14, 1}, {"thermal-sensor", 0x30, 64}, {"tf-zone", 0x28, 128}, {"oem-program", 0x3C, 160}, {"write-protect", 0x80, 32}, {"read-protect", 0x84, 32}, {"lcjs", 0x88, 32}, {"attr", 0x90, 32}, {"huk", 0x94, 192}, {"reserved1", 0xAC, 64}, {"rotpk", 0xB4, 256}, {"ssk", 0xD4, 128}, {"rssk", 0xF4, 256}, {"sn", 0xB0, 192}, {"nv1", 0x124, 32}, {"nv2", 0x128, 32}, {"hdcp-hash", 0x114, 128}, {"backup-key", 0x164, 192}, {"backup-key2", 0x1A4, 72}} |
| void syter_efuse_dump | ( | void | ) |
Dump the contents of the eFuse memory.
This function outputs the current contents of the eFuse memory for diagnostic purposes. The format of the output is implementation-dependent.
Read a value from the eFuse memory.
This function reads a 32-bit value from the specified eFuse offset.
| offset | The offset in the eFuse memory from which to read the value. |
Write a value to the eFuse memory.
This function writes a 32-bit value to the specified eFuse offset.
| offset | The offset in the eFuse memory to which the value will be written. |
| value | The 32-bit value to be written to the eFuse memory. |
| const struct sid_section_t sids[] = {{"chipid", 0x00, 128}, {"brom-config", 0x10, 32}, {"aldo-fix", 0x14, 1}, {"thermal-sensor", 0x30, 64}, {"tf-zone", 0x28, 128}, {"oem-program", 0x3C, 160}, {"write-protect", 0x80, 32}, {"read-protect", 0x84, 32}, {"lcjs", 0x88, 32}, {"attr", 0x90, 32}, {"huk", 0x94, 192}, {"reserved1", 0xAC, 64}, {"rotpk", 0xB4, 256}, {"ssk", 0xD4, 128}, {"rssk", 0xF4, 256}, {"sn", 0xB0, 192}, {"nv1", 0x124, 32}, {"nv2", 0x128, 32}, {"hdcp-hash", 0x114, 128}, {"backup-key", 0x164, 192}, {"backup-key2", 0x1A4, 72}} |