fuse_io.h 691 B

123456789101112131415161718192021222324252627
  1. /*
  2. * Copyright 2018-2020 NXP
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. *
  6. */
  7. #ifndef FUSE_IO_H
  8. #define FUSE_IO_H
  9. #include <drivers/io/io_driver.h>
  10. /* Can be overridden from platform_def.h file.
  11. */
  12. #ifndef PLAT_FUSE_FIP_OFFSET
  13. #define PLAT_FUSE_FIP_OFFSET 0x880000
  14. #endif
  15. #ifndef PLAT_FUSE_FIP_MAX_SIZE
  16. #define PLAT_FUSE_FIP_MAX_SIZE 0x80000
  17. #endif
  18. int fip_fuse_provisioning(uintptr_t image_buf, uint32_t size);
  19. int fuse_fip_setup(const io_dev_connector_t *fip_dev_con, unsigned int boot_dev);
  20. int plat_get_fuse_image_source(unsigned int image_id,
  21. uintptr_t *dev_handle,
  22. uintptr_t *image_spec,
  23. int (*check)(const uintptr_t spec));
  24. #endif /* FUSE_IO_H */