Add support for selecting the erased bit value with a flag

Most flash chips are erased to ones and programmed to zeros. However, some
other chips, such as the ENE KB9012 internal flash, work the opposite way.

Change-Id: Ia7b0de8568e31f9bf263ba0ad6b051e837477b6b
Signed-off-by: Mike Banon <>
Signed-off-by: Paul Kocialkowski <>
Reviewed-by: Nico Huber <>
Tested-by: build bot (Jenkins) <>
2 files changed