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 
10 #include <drivers/io/io_driver.h>
11 
12 /* Can be overridden from platform_def.h file.
13  */
14 #ifndef PLAT_FUSE_FIP_OFFSET
15 #define PLAT_FUSE_FIP_OFFSET	0x880000
16 #endif
17 #ifndef PLAT_FUSE_FIP_MAX_SIZE
18 #define PLAT_FUSE_FIP_MAX_SIZE	0x80000
19 #endif
20 
21 int fip_fuse_provisioning(uintptr_t image_buf, uint32_t size);
22 int fuse_fip_setup(const io_dev_connector_t *fip_dev_con, unsigned int boot_dev);
23 int plat_get_fuse_image_source(unsigned int image_id,
24 			       uintptr_t *dev_handle,
25 			       uintptr_t *image_spec,
26 			       int (*check)(const uintptr_t spec));
27 #endif	/*	FUSE_IO_H	*/
28