norflash: Add full status check
authorRoberto Vargas <roberto.vargas@arm.com>
Fri, 28 Jul 2017 09:43:28 +0000 (10:43 +0100)
committerRoberto Vargas <roberto.vargas@arm.com>
Wed, 23 Aug 2017 09:29:44 +0000 (10:29 +0100)
commit3bbe34e5efb927494e18b75d3c20e8e914d2a1ca
tree56fd4f4f1b28b7c8a20371fdb0f8ecec47604e7f
parent784502aeaed11aad205eb80ed05b1f78fc643d93
norflash: Add full status check

The nor_XXXXX functions may fail due to different reasons, and it
is convenient to do a full check to detect any failure. It is also
a good idea to have a specific function to do a full status check,
because new checks can be added to this function and they will be
incorporated automatically to any function calling it.

Change-Id: I54fed913e37ef574c1608e94139a519426348d12
Signed-off-by: Roberto Vargas <roberto.vargas@arm.com>
plat/arm/board/common/drivers/norflash/norflash.c