platform: msm_shared: Introduce new functions & update bad block handling

This patch introduces 2 new functions:
qpic_nand_read - general function for reading more then one page of data
qpic_nand_write - general function for writing more then one page of data
flash_block_size and flash_spare_size used to retrieve NAND parameters

When erase/read/write block/page fails the block should be marked bad.

Change-Id: Iab74c33ba9d038e53b5c5728abdb561824dd1f78
3 files changed