fuse.h 699 B

123456789101112131415161718192021222324252627
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  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>
  9. */
  10. #ifndef _FUSE_H_
  11. #define _FUSE_H_
  12. /*
  13. * Read/Sense/Program/Override interface:
  14. * bank: Fuse bank
  15. * word: Fuse word within the bank
  16. * val: Value to read/write
  17. *
  18. * Returns: 0 on success, not 0 on failure
  19. */
  20. int fuse_read(u32 bank, u32 word, u32 *val);
  21. int fuse_sense(u32 bank, u32 word, u32 *val);
  22. int fuse_prog(u32 bank, u32 word, u32 val);
  23. int fuse_override(u32 bank, u32 word, u32 val);
  24. #endif /* _FUSE_H_ */