hw/onenand: program actions can only clear bits
authorJuha Riihimäki <juha.riihimaki@nokia.com>
Fri, 29 Jul 2011 15:35:28 +0000 (16:35 +0100)
committerAndrzej Zaborowski <andrew.zaborowski@intel.com>
Sat, 30 Jul 2011 04:42:31 +0000 (06:42 +0200)
commit1bcd7add5c2757ab8a5693c1c7ff0451106869f9
tree3c3d98399c9a9c6e5c7048cbb7a7e0ad2c69e992
parentcb9e8538c047c62157f313e4d4489a905c445452
hw/onenand: program actions can only clear bits

The program actions onenand_prog_main() and onenand_prog_spare()
can only set bits.

This implies a rewrite of onenand_erase() to not use the program
functions, since erase does need to set bits.

Signed-off-by: Juha Riihimäki <juha.riihimaki@nokia.com>
[Riku Voipio: Fixes and restructuring patchset]
Signed-off-by: Riku Voipio <riku.voipio@iki.fi>
[Peter Maydell: More fixes and cleanups for upstream submission]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Andrzej Zaborowski <andrew.zaborowski@intel.com>
hw/onenand.c