Files
luban-lite/bsp/artinchip/include/hal/hal_efuse.h

36 lines
743 B
C
Raw Normal View History

2023-08-30 16:21:18 +08:00
/*
2025-03-14 16:31:58 +08:00
* Copyright (c) 2022-2025, ArtInChip Technology Co., Ltd
2023-08-30 16:21:18 +08:00
*
* SPDX-License-Identifier: Apache-2.0
*
* Authors: Xiong Hao <hao.xiong@artinchip.com>
*/
#ifndef _ARTINCHIP_HAL_EFUSE_H__
#define _ARTINCHIP_HAL_EFUSE_H__
#ifdef __cplusplus
extern "C" {
#endif
#include <aic_core.h>
int hal_efuse_init(void);
int hal_efuse_deinit(void);
2025-03-14 16:31:58 +08:00
int hal_efuse_clk_enable(void);
int hal_efuse_clk_disable(void);
void hal_efuse_write_enable(void);
void hal_efuse_write_disable(void);
2024-06-04 19:00:30 +08:00
int hal_efuse_get_version(void);
2023-08-30 16:21:18 +08:00
int hal_efuse_wait_ready(void);
int hal_efuse_read(u32 wid, u32 *wval);
int hal_efuse_write(u32 wid, u32 wval);
2025-01-08 19:12:06 +08:00
int hal_sjtag_auth(u32 *key, u32 kwlen);
int hal_szone_auth(u32 *key, u32 kwlen);
2023-08-30 16:21:18 +08:00
#ifdef __cplusplus
}
#endif
#endif