Benoît Thébaudeau | a8e8855 | 2013-04-23 10:17:40 +0000 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2009-2013 ADVANSEE |
| 3 | * Benoît Thébaudeau <benoit.thebaudeau@advansee.com> |
| 4 | * |
| 5 | * Based on the mpc512x iim code: |
| 6 | * Copyright 2008 Silicon Turnkey Express, Inc. |
| 7 | * Martha Marx <mmarx@silicontkx.com> |
| 8 | * |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 9 | * SPDX-License-Identifier: GPL-2.0+ |
Benoît Thébaudeau | a8e8855 | 2013-04-23 10:17:40 +0000 | [diff] [blame] | 10 | */ |
| 11 | |
| 12 | #ifndef _FUSE_H_ |
| 13 | #define _FUSE_H_ |
| 14 | |
| 15 | /* |
| 16 | * Read/Sense/Program/Override interface: |
| 17 | * bank: Fuse bank |
| 18 | * word: Fuse word within the bank |
| 19 | * val: Value to read/write |
| 20 | * |
| 21 | * Returns: 0 on success, not 0 on failure |
| 22 | */ |
| 23 | int fuse_read(u32 bank, u32 word, u32 *val); |
| 24 | int fuse_sense(u32 bank, u32 word, u32 *val); |
| 25 | int fuse_prog(u32 bank, u32 word, u32 val); |
| 26 | int fuse_override(u32 bank, u32 word, u32 val); |
| 27 | |
| 28 | #endif /* _FUSE_H_ */ |