[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 14/15] onenand: Ignore zero writes to boot command s
From: |
Peter Maydell |
Subject: |
[Qemu-devel] [PATCH 14/15] onenand: Ignore zero writes to boot command space |
Date: |
Fri, 29 Jul 2011 16:35:27 +0100 |
From: Juha Riihimäki <address@hidden>
Ignore zero writes to the boot command space; Linux will issue
these in the powerdown/reset sequence.
Signed-off-by: Juha Riihimäki <address@hidden>
[Riku Voipio: Fixes and restructuring patchset]
Signed-off-by: Riku Voipio <address@hidden>
[Peter Maydell: More fixes and cleanups for upstream submission]
Signed-off-by: Peter Maydell <address@hidden>
---
hw/onenand.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/hw/onenand.c b/hw/onenand.c
index 9f02736..0edcfe2 100644
--- a/hw/onenand.c
+++ b/hw/onenand.c
@@ -550,6 +550,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 %x\n",
__FUNCTION__, value);
--
1.7.1
- [Qemu-devel] [PULL 00/15] omap patches (gpio, nand, onenand, lm832x), Peter Maydell, 2011/07/29
- [Qemu-devel] [PATCH 10/15] hw/nand: Writing to NAND can only clear bits, Peter Maydell, 2011/07/29
- [Qemu-devel] [PATCH 06/15] hw/nand: Pass block device state to init function, Peter Maydell, 2011/07/29
- [Qemu-devel] [PATCH 14/15] onenand: Ignore zero writes to boot command space,
Peter Maydell <=
- [Qemu-devel] [PATCH 01/15] hw/omap_l4.c: Add helper function omap_l4_region_base, Peter Maydell, 2011/07/29
- [Qemu-devel] [PATCH 08/15] hw/nand: Support devices wider than 8 bits, Peter Maydell, 2011/07/29
- [Qemu-devel] [PATCH 02/15] hw/omap_gpio.c: Don't complain about some writes to r/o registers, Peter Maydell, 2011/07/29
- [Qemu-devel] [PATCH 11/15] hw/nand: qdevify, Peter Maydell, 2011/07/29
- [Qemu-devel] [PATCH 15/15] hw/onenand: program actions can only clear bits, Peter Maydell, 2011/07/29
- [Qemu-devel] [PATCH 09/15] hw/nand: Support multiple reads following READ STATUS, Peter Maydell, 2011/07/29
- [Qemu-devel] [PATCH 13/15] onenand: Handle various ID fields separately, Peter Maydell, 2011/07/29