blob: 4519821af7ea7437f6cddfe3b02c8ced418f1c7f [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Benoît Thébaudeaua8e88552013-04-23 10:17:40 +00002/*
3 * (C) Copyright 2009-2013 ADVANSEE
4 * Benoît Thébaudeau <benoit.thebaudeau@advansee.com>
5 *
6 * Based on the mpc512x iim code:
7 * Copyright 2008 Silicon Turnkey Express, Inc.
8 * Martha Marx <mmarx@silicontkx.com>
Benoît Thébaudeaua8e88552013-04-23 10:17:40 +00009 */
10
11#ifndef _FUSE_H_
12#define _FUSE_H_
13
Tom Rinidec7ea02024-05-20 13:35:03 -060014#include <linux/types.h>
15
Benoît Thébaudeaua8e88552013-04-23 10:17:40 +000016/*
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 */
24int fuse_read(u32 bank, u32 word, u32 *val);
25int fuse_sense(u32 bank, u32 word, u32 *val);
26int fuse_prog(u32 bank, u32 word, u32 val);
27int fuse_override(u32 bank, u32 word, u32 val);
28
29#endif /* _FUSE_H_ */