diff options
author | Cyril Bur <cyril.bur@au1.ibm.com> | 2015-06-23 13:22:14 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-06-23 13:38:42 +1000 |
commit | df307e0eecf119a26be838428311199f23e43c69 (patch) | |
tree | 057fd186de920a8b0962c244d1e49ca6659b1c02 /external | |
parent | 29d1e6f7810982d2c8f057ae35a39c2ac0cf484b (diff) | |
download | skiboot-df307e0eecf119a26be838428311199f23e43c69.zip skiboot-df307e0eecf119a26be838428311199f23e43c69.tar.gz skiboot-df307e0eecf119a26be838428311199f23e43c69.tar.bz2 |
libffs: init with ecc protection at blocklevel level
Passing a flag on libffs init will register all regions of the flash with
ecc (as per the libffs partition information) as being ecc protected (or
not).
This saves the consumer needing to know or care about the presence of ecc.
Reviewed-By: Alistair Popple <alistair@popple.id.au>
Signed-off-by: Cyril Bur <cyril.bur@au1.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'external')
-rw-r--r-- | external/pflash/pflash.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/external/pflash/pflash.c b/external/pflash/pflash.c index ae1d873..0d2d669 100644 --- a/external/pflash/pflash.c +++ b/external/pflash/pflash.c @@ -80,7 +80,7 @@ static void print_ffs_info(uint32_t toc_offset) int rc; uint32_t i; - rc = ffs_init(toc_offset, fl_total_size, bl, &ffs_handle); + rc = ffs_init(toc_offset, fl_total_size, bl, &ffs_handle, 0); if (rc) { fprintf(stderr, "Error %d opening ffs !\n", rc); return; @@ -140,7 +140,7 @@ static int open_partition(const char *name) /* Open libffs if needed */ if (!ffsh) { - rc = ffs_init(ffs_toc, fl_total_size, bl, &ffsh); + rc = ffs_init(ffs_toc, fl_total_size, bl, &ffsh, 0); if (rc) { fprintf(stderr, "Error %d opening ffs !\n", rc); if (ffs_toc) |