qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: <marcin.krzeminski@nokia.com>
To: qemu-devel@nongnu.org
Cc: qemu-arm@nongnu.org, peter.maydell@linaro.org,
	rfsw-patches@mlist.nokia.com, clg@kaod.org
Subject: [Qemu-devel] [PATCH 1/2] block: m25p80: Add Quad Page Program 4byte version op
Date: Fri, 16 Dec 2016 14:27:41 +0100	[thread overview]
Message-ID: <1481894862-14102-2-git-send-email-marcin.krzeminski@nokia.com> (raw)
In-Reply-To: <1481894862-14102-1-git-send-email-marcin.krzeminski@nokia.com>

From: Marcin Krzeminski <marcin.krzeminski@nokia.com>

Some flash chips has additional page program opcode that
takes only 4 byte address. This commit adds support
for such command in Qemu.

Signed-off-by: Marcin Krzeminski <marcin.krzeminski@nokia.com>
---
 hw/block/m25p80.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/hw/block/m25p80.c b/hw/block/m25p80.c
index d29ff4c..2bc7028 100644
--- a/hw/block/m25p80.c
+++ b/hw/block/m25p80.c
@@ -325,6 +325,7 @@ typedef enum {
     PP4_4 = 0x3e,
     DPP = 0xa2,
     QPP = 0x32,
+    QPP_4 = 0x34,
 
     ERASE_4K = 0x20,
     ERASE4_4K = 0x21,
@@ -573,6 +574,7 @@ static inline int get_addr_length(Flash *s)
    switch (s->cmd_in_progress) {
    case PP4:
    case PP4_4:
+   case QPP_4:
    case READ4:
    case QIOR4:
    case ERASE4_4K:
@@ -606,6 +608,7 @@ static void complete_collecting_data(Flash *s)
     switch (s->cmd_in_progress) {
     case DPP:
     case QPP:
+    case QPP_4:
     case PP:
     case PP4:
     case PP4_4:
@@ -873,6 +876,7 @@ static void decode_new_cmd(Flash *s, uint32_t value)
     case READ4:
     case DPP:
     case QPP:
+    case QPP_4:
     case PP:
     case PP4:
     case PP4_4:
-- 
2.7.4

  reply	other threads:[~2016-12-16 15:02 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-16 13:27 [Qemu-devel] [PATCH 0/2]block: m25p80: Improve mt25qu01g chip model marcin.krzeminski
2016-12-16 13:27 ` marcin.krzeminski [this message]
2016-12-16 16:18   ` [Qemu-devel] [PATCH 1/2] block: m25p80: Add Quad Page Program 4byte version op Edgar E. Iglesias
2016-12-16 13:27 ` [Qemu-devel] [PATCH 2/2] block: m25p80: Introduce Die Erase command marcin.krzeminski
2016-12-16 16:35   ` [Qemu-devel] [Qemu-arm] " Edgar E. Iglesias
2016-12-19  6:21     ` Krzeminski, Marcin (Nokia - PL/Wroclaw)
2016-12-19  7:28       ` Edgar E. Iglesias
2016-12-19  7:31         ` Krzeminski, Marcin (Nokia - PL/Wroclaw)
2016-12-16 16:09 ` [Qemu-devel] [PATCH 0/2]block: m25p80: Improve mt25qu01g chip model no-reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1481894862-14102-2-git-send-email-marcin.krzeminski@nokia.com \
    --to=marcin.krzeminski@nokia.com \
    --cc=clg@kaod.org \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-arm@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=rfsw-patches@mlist.nokia.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).