aboutsummaryrefslogtreecommitdiff
path: root/platforms
diff options
context:
space:
mode:
authorJeremy Kerr <jeremy.kerr@au1.ibm.com>2014-09-12 14:26:06 +0800
committerStewart Smith <stewart@linux.vnet.ibm.com>2014-10-30 16:50:39 +1100
commit4797b3eee3a0fc41ff5d68408dc73ac5e6fd248e (patch)
tree3e7660ee2ae9beaaf6205997041fac5509f64b43 /platforms
parentb2a374da98aa710b4c55556f9a9047d4d4a8665d (diff)
downloadskiboot-4797b3eee3a0fc41ff5d68408dc73ac5e6fd248e.zip
skiboot-4797b3eee3a0fc41ff5d68408dc73ac5e6fd248e.tar.gz
skiboot-4797b3eee3a0fc41ff5d68408dc73ac5e6fd248e.tar.bz2
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 <jeremy.kerr@au.ibm.com> Acked-by: Stewart Smith <stewart@linux.vnet.ibm.com> Acked-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'platforms')
-rw-r--r--platforms/ibm-fsp/apollo.c1
-rw-r--r--platforms/ibm-fsp/firenze.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/platforms/ibm-fsp/apollo.c b/platforms/ibm-fsp/apollo.c
index 37315ba..fc01e64 100644
--- a/platforms/ibm-fsp/apollo.c
+++ b/platforms/ibm-fsp/apollo.c
@@ -59,4 +59,5 @@ DECLARE_PLATFORM(apollo) = {
.nvram_start_read = fsp_nvram_start_read,
.nvram_write = fsp_nvram_write,
.elog_commit = elog_fsp_commit,
+ .load_resource = fsp_load_resource,
};
diff --git a/platforms/ibm-fsp/firenze.c b/platforms/ibm-fsp/firenze.c
index b68dd70..29cbde0 100644
--- a/platforms/ibm-fsp/firenze.c
+++ b/platforms/ibm-fsp/firenze.c
@@ -248,4 +248,5 @@ DECLARE_PLATFORM(firenze) = {
.nvram_write = fsp_nvram_write,
.occ_timeout = ibm_fsp_occ_timeout,
.elog_commit = elog_fsp_commit,
+ .load_resource = fsp_load_resource,
} ;