fuse.h 699 B

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