blob: e8775d059cfbe06e8a60b74a16605430be02ef7b [file] [log] [blame]
Pankaj Gupta9f299652020-12-09 14:02:40 +05301/*
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
21int fip_fuse_provisioning(uintptr_t image_buf, uint32_t size);
22int fuse_fip_setup(const io_dev_connector_t *fip_dev_con, unsigned int boot_dev);
23int 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 */