From 4797b3eee3a0fc41ff5d68408dc73ac5e6fd248e Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Fri, 12 Sep 2014 14:26:06 +0800 Subject: platform: add a platform hook for loading external resources Currently, in core/init.c we do a fsp-specific load procedure to grab the kernel image. We'd like to do two things: allow other types of resources, and have paths for non-FSP platforms to perform loads. This change adds a platform-specific load_resource hook, and moves the currently loading code to fsp_load_resource. To allow other resource types, we add an identifier to indicate the type of resouce to load. Signed-off-by: Jeremy Kerr Acked-by: Stewart Smith Acked-by: Stewart Smith --- include/fsp.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/fsp.h') diff --git a/include/fsp.h b/include/fsp.h index 0464da4..e41498e 100644 --- a/include/fsp.h +++ b/include/fsp.h @@ -709,6 +709,7 @@ extern int fsp_fetch_data(uint8_t flags, uint16_t id, uint32_t sub_id, extern int fsp_fetch_data_queue(uint8_t flags, uint16_t id, uint32_t sub_id, uint32_t offset, void *buffer, size_t *length, void (*comp)(struct fsp_msg *msg)); +extern bool fsp_load_resource(enum resource_id id, void *buf, size_t *size); /* FSP console stuff */ extern void fsp_console_preinit(void); -- cgit v1.1