2025-09-30 11:56:06 +08:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2022-2025, ArtInChip Technology Co., Ltd
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
*
|
|
|
|
|
* Authors: Xiong Hao <hao.xiong@artinchip.com>
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef _AIC_EFUSE_H__
|
|
|
|
|
#define _AIC_EFUSE_H__
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#include <aic_core.h>
|
|
|
|
|
|
|
|
|
|
int efuse_init(void);
|
|
|
|
|
void efuse_write_enable(void);
|
|
|
|
|
void efuse_write_disable(void);
|
|
|
|
|
int efuse_read(u32 addr, void *data, u32 size);
|
|
|
|
|
int efuse_read_chip_id(void *data);
|
|
|
|
|
int efuse_program(u32 addr, const void *data, u32 size);
|
|
|
|
|
int sjtag_auth(u32 *key, u32 kwlen);
|
|
|
|
|
int szone_auth(u32 *key, u32 kwlen);
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#endif
|