]> Git Repo - u-boot.git/blob - include/fuse.h
tpm: Remove <common.h> and add needed includes
[u-boot.git] / include / fuse.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * (C) Copyright 2009-2013 ADVANSEE
4  * Benoît Thébaudeau <[email protected]>
5  *
6  * Based on the mpc512x iim code:
7  * Copyright 2008 Silicon Turnkey Express, Inc.
8  * Martha Marx <[email protected]>
9  */
10
11 #ifndef _FUSE_H_
12 #define _FUSE_H_
13
14 #include <linux/types.h>
15
16 /*
17  * Read/Sense/Program/Override interface:
18  *   bank:    Fuse bank
19  *   word:    Fuse word within the bank
20  *   val:     Value to read/write
21  *
22  *   Returns: 0 on success, not 0 on failure
23  */
24 int fuse_read(u32 bank, u32 word, u32 *val);
25 int fuse_sense(u32 bank, u32 word, u32 *val);
26 int fuse_prog(u32 bank, u32 word, u32 val);
27 int fuse_override(u32 bank, u32 word, u32 val);
28
29 #endif  /* _FUSE_H_ */
This page took 0.028817 seconds and 4 git commands to generate.