flash: Add ECC to load_resource()
flash: Add ECC to load_resource()

Add decoding, checking and correction of ECC enabled partitions in
pnor_load_resource().

Signed-off-by: Michael Neuling <7b0ab45a730e48a69239010b5b8fe5fa4e8eaac6@neuling.org>
Reviewed-by: Joel Stanley <4816dabf8db1bc6cac35b3a24cab2ff844b5b0c7@jms.id.au>
Signed-off-by: Stewart Smith <ec31ab75ddf977353c8f660f92ea8b23f64aef25@linux.vnet.ibm.com>

qemu/skiboot,apopple/skiboot,cyrilbur-ibm/skiboot,mikey/skiboot,qemu/skiboot,open-power/skiboot,legoater/skiboot,csmart/skiboot,legoater/skiboot,ddstreet/skiboot,shenki/skiboot,ddstreet/skiboot,ddstreet/skiboot,shenki/skiboot,stewart-ibm/skiboot,open-power/skiboot,open-power/skiboot,csmart/skiboot,shenki/skiboot,jk-ozlabs/skiboot,legoater/skiboot,jk-ozlabs/skiboot,mikey/skiboot,stewart-ibm/skiboot,open-power/skiboot,qemu/skiboot,shenki/skiboot,shenki/skiboot,legoater/skiboot,cyrilbur-ibm/skiboot,jk-ozlabs/skiboot,csmart/skiboot,qemu/skiboot,legoater/skiboot,stewart-ibm/skiboot,qemu/skiboot,cyrilbur-ibm/skiboot,apopple/skiboot,open-power/skiboot,apopple/skiboot,mikey/skiboot