xref: /rk3399_ARM-atf/plat/nxp/common/fip_handler/ddr_fip/ddr_io_storage.h (revision 9719e19a977df3e8bf7567b3c0e1d6b2ebc5b46f)
1 /*
2  * Copyright 2018-2020 NXP
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  *
6  */
7 
8 #ifndef DDR_IO_STORAGE_H
9 #define DDR_IO_STORAGE_H
10 
11 #include <drivers/io/io_driver.h>
12 
13 #ifndef PLAT_DDR_FIP_OFFSET
14 #define PLAT_DDR_FIP_OFFSET	0x800000
15 #endif
16 
17 #ifndef PLAT_DDR_FIP_MAX_SIZE
18 #define PLAT_DDR_FIP_MAX_SIZE	0x32000
19 #endif
20 
21 int ddr_fip_setup(const io_dev_connector_t *fip_dev_con, unsigned int boot_dev);
22 int plat_get_ddr_fip_image_source(unsigned int image_id, uintptr_t *dev_handle,
23 				  uintptr_t *image_spec,
24 				  int (*check)(const uintptr_t spec));
25 
26 #endif	/*	DDR_IO_STORAGE_H	*/
27