This module contains efuse APIs.
Copyright (c) 2019 Microchip Technology Inc. and its subsidiaries.
#include "common/include/efuse.h"
Macros | |
#define | _EFUSE_ 1 |
#define | m2mmemset m2m_memset |
Functions | |
void | dump_efuse_struct (EFUSEProdStruct *efuse_struct) |
sint8 | is_efuse_bank_loaded (uint8 bankIdx) |
int | load_efuse_to_regs (uint8 bankIdx) |
sint8 | overwrite_efuse_struct (EFUSEProdStruct *efuse_struct, int bankIdx) |
sint8 | read_efuse_struct (EFUSEProdStruct *efuse_struct, uint8 skip_bank_check) |
static int | read_from_efuse (uint8 bankIdx, uint8 *buf) |
static int | write_to_efuse (uint8 bankIdx, uint8 *buf) |
Variables | |
EFUSEProdStruct | g_efuse_struct |
#define _EFUSE_ 1 |
#define m2mmemset m2m_memset |
Referenced by overwrite_efuse_struct(), and read_efuse_struct().
void dump_efuse_struct | ( | EFUSEProdStruct * | efuse_struct | ) |
References EFUSEProdStruct::bank_idx, EFUSEProdStruct::bank_invalid, EFUSEProdStruct::bank_used, EFUSEProdStruct::FreqOffset, EFUSEProdStruct::FreqOffset_used, M2M_INFO, EFUSEProdStruct::MAC_addr, EFUSEProdStruct::MAC_addr_used, EFUSEProdStruct::PATxGainCorr, EFUSEProdStruct::PATxGainCorr_used, and EFUSEProdStruct::ver.
Referenced by read_efuse_struct().
References nm_read_reg(), WIFI_EFUSE_0_CONTROL, and WIFI_EFUSE_2_CONTROL.
int load_efuse_to_regs | ( | uint8 | bankIdx | ) |
References EFUSE_ERR_CANT_LOAD_DATA, EFUSE_SUCCESS, nm_bsp_sleep(), nm_read_reg(), nm_write_reg(), WIFI_EFUSE_0_CONTROL, and WIFI_EFUSE_2_CONTROL.
Referenced by overwrite_efuse_struct(), and read_efuse_struct().
sint8 overwrite_efuse_struct | ( | EFUSEProdStruct * | efuse_struct, |
int | bankIdx | ||
) |
References EFUSEProdStruct::bank_invalid, EFUSEProdStruct::bank_used, EFUSEProdStruct::FreqOffset, EFUSEProdStruct::FreqOffset_used, load_efuse_to_regs(), m2mmemset, EFUSEProdStruct::MAC_addr, EFUSEProdStruct::MAC_addr_used, EFUSEProdStruct::PATxGainCorr, EFUSEProdStruct::PATxGainCorr_used, ret, EFUSEProdStruct::ver, and write_to_efuse().
sint8 read_efuse_struct | ( | EFUSEProdStruct * | efuse_struct, |
uint8 | skip_bank_check | ||
) |
References EFUSEProdStruct::bank_idx, EFUSEProdStruct::bank_invalid, EFUSEProdStruct::bank_used, dump_efuse_struct(), EFUSE_ERR_CANT_LOAD_DATA, EFUSE_ERR_INVALID_BANK_OR_DATA, EFUSE_SUCCESS, EFUSEProdStruct::FreqOffset, EFUSEProdStruct::FreqOffset_used, load_efuse_to_regs(), M2M_DBG, M2M_ERR, M2M_INFO, m2mmemset, EFUSEProdStruct::MAC_addr, EFUSEProdStruct::MAC_addr_used, NUM_EFUSE_BANKS, EFUSEProdStruct::PATxGainCorr, EFUSEProdStruct::PATxGainCorr_used, read_from_efuse(), and EFUSEProdStruct::ver.
References EFUSE_SUCCESS, i, and nm_read_reg().
Referenced by read_efuse_struct().
References i, nm_bsp_sleep(), nm_read_reg(), and nm_write_reg().
Referenced by overwrite_efuse_struct().
EFUSEProdStruct g_efuse_struct |