aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2015-02-19 06:34:53 +0800
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-02-19 10:48:13 +1100
commit73b262e768529f152ec64b4418b0c31691bc15c3 (patch)
tree1ff236173025725b84335ced477ec98e2fd619c8 /include
parente7d1f60eb49bfd81e1fe153cece899de2542f83e (diff)
downloadskiboot-73b262e768529f152ec64b4418b0c31691bc15c3.zip
skiboot-73b262e768529f152ec64b4418b0c31691bc15c3.tar.gz
skiboot-73b262e768529f152ec64b4418b0c31691bc15c3.tar.bz2
core/flash: port pnor_load_resource to flash code
Since we have a flash device registered as the system flash, use this as a generic load_resource backend. Signed-off-by: Jeremy Kerr <jk@ozlabs.org> Reviewed-by: Joel Stanley <joel@jms.id.au> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include')
-rw-r--r--include/skiboot.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/skiboot.h b/include/skiboot.h
index dbc2057..f6fcc63 100644
--- a/include/skiboot.h
+++ b/include/skiboot.h
@@ -199,7 +199,8 @@ extern void occ_fsp_init(void);
/* flash support */
struct flash_chip;
extern int flash_register(struct flash_chip *chip, bool is_system_flash);
-extern bool flash_load_resource(enum resource_id id, void *buf, size_t *len);
+extern bool flash_load_resource(enum resource_id id, uint32_t subid,
+ void *buf, size_t *len);
/* NVRAM support */
extern void nvram_init(void);