aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2012-06-07 13:02:29 +0930
committerPeter Maydell <peter.maydell@linaro.org>2012-07-25 13:35:04 +0100
commit86f03b67bbcef5472afaaf41017e8fe29a300bf4 (patch)
treef4c9b00cbe71536877a0c52aa303d961e4269115
parentc46dbd7040d9cfe58e7f9e1ecb961613a0e7a1d1 (diff)
downloadqemu-arm-86f03b67bbcef5472afaaf41017e8fe29a300bf4.tar.gz
onenand: Ignore zero writes to boot command space
Ignore zero writes to the boot command space; Linux will issue these in the powerdown/reset sequence. 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>
-rw-r--r--hw/onenand.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/hw/onenand.c b/hw/onenand.c
index db6af682c4..d96022e646 100644
--- a/hw/onenand.c
+++ b/hw/onenand.c
@@ -692,6 +692,13 @@ static void onenand_write(void *opaque, target_phys_addr_t addr,
s->boot[0][2 << s->shift] = s->wpstatus & 0xff;
break;
+ case 0x0000:
+ /* ignore zero writes without error messages,
+ * linux omap2/3 kernel will issue these upon
+ * powerdown/reset sequence.
+ */
+ break;
+
default:
fprintf(stderr, "%s: unknown OneNAND boot command %"PRIx64"\n",
__FUNCTION__, value);