TT Zephyr Platforms
18.11.99
Tenstorrent Firmware
Loading...
Searching...
No Matches
efuse.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2024 Tenstorrent AI ULC
3
* SPDX-License-Identifier: Apache-2.0
4
*/
5
6
#ifndef EFUSE_H
7
#define EFUSE_H
8
9
#include <
stdint.h
>
10
11
#include <
arc_dma.h
>
12
13
/* Useful addresses */
14
#define FUSE_ASIC_ID_ADDR 50
15
16
typedef
enum
{
17
EfuseBoxDft0
= 0,
18
EfuseBoxDft1
= 1,
19
EfuseBoxFunc
= 2,
20
EfuseBoxIdNum
= 3,
21
}
EfuseBoxId
;
22
23
typedef
enum
{
24
EfuseIndirect
= 0,
/* indirect access by programming read control registers */
25
EfuseDirect
= 1,
/* direct access by reading efuse box */
26
}
EfuseAccessType
;
27
28
uint32_t
EfuseRead
(
EfuseAccessType
acc_type,
EfuseBoxId
efuse_box_id,
uint32_t
offset);
29
30
#endif
arc_dma.h
EfuseRead
uint32_t EfuseRead(EfuseAccessType acc_type, EfuseBoxId efuse_box_id, uint32_t offset)
Definition
efuse.c:65
EfuseBoxId
EfuseBoxId
Definition
efuse.h:16
EfuseBoxIdNum
@ EfuseBoxIdNum
Definition
efuse.h:20
EfuseBoxFunc
@ EfuseBoxFunc
Definition
efuse.h:19
EfuseBoxDft0
@ EfuseBoxDft0
Definition
efuse.h:17
EfuseBoxDft1
@ EfuseBoxDft1
Definition
efuse.h:18
EfuseAccessType
EfuseAccessType
Definition
efuse.h:23
EfuseIndirect
@ EfuseIndirect
Definition
efuse.h:24
EfuseDirect
@ EfuseDirect
Definition
efuse.h:25
stdint.h
uint32_t
__UINT32_TYPE__ uint32_t
lib
tenstorrent
bh_arc
efuse.h
Generated by
1.14.0