All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marcin Krzeminski <mar.krzeminski@gmail.com>
To: qemu-devel@nongnu.org, edgar.iglesias@xilinx.com
Cc: peter.maydell@linaro.org, qemu-arm@nongnu.org, clg@kaod.org,
	mar.krzeminski@gmail.com
Subject: [Qemu-arm] [PATCH v3 1/3] block: m25p80: Add Quad Page Program 4byte
Date: Sun,  8 Jan 2017 09:38:52 +0100	[thread overview]
Message-ID: <20170108083854.5006-2-mar.krzeminski@gmail.com> (raw)
In-Reply-To: <20170108083854.5006-1-mar.krzeminski@gmail.com>

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

Signed-off-by: Marcin Krzeminski <mar.krzeminski@gmail.com>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
---
 hw/block/m25p80.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/hw/block/m25p80.c b/hw/block/m25p80.c
index e3c1166..6dff81b 100644
--- a/hw/block/m25p80.c
+++ b/hw/block/m25p80.c
@@ -326,6 +326,7 @@ typedef enum {
     PP4_4 = 0x3e,
     DPP = 0xa2,
     QPP = 0x32,
+    QPP_4 = 0x34,
 
     ERASE_4K = 0x20,
     ERASE4_4K = 0x21,
@@ -574,6 +575,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:
@@ -607,6 +609,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:
@@ -874,6 +877,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.9.3


WARNING: multiple messages have this Message-ID (diff)
From: Marcin Krzeminski <mar.krzeminski@gmail.com>
To: qemu-devel@nongnu.org, edgar.iglesias@xilinx.com
Cc: peter.maydell@linaro.org, qemu-arm@nongnu.org, clg@kaod.org,
	mar.krzeminski@gmail.com
Subject: [Qemu-devel] [PATCH v3 1/3] block: m25p80: Add Quad Page Program 4byte
Date: Sun,  8 Jan 2017 09:38:52 +0100	[thread overview]
Message-ID: <20170108083854.5006-2-mar.krzeminski@gmail.com> (raw)
In-Reply-To: <20170108083854.5006-1-mar.krzeminski@gmail.com>

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

Signed-off-by: Marcin Krzeminski <mar.krzeminski@gmail.com>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
---
 hw/block/m25p80.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/hw/block/m25p80.c b/hw/block/m25p80.c
index e3c1166..6dff81b 100644
--- a/hw/block/m25p80.c
+++ b/hw/block/m25p80.c
@@ -326,6 +326,7 @@ typedef enum {
     PP4_4 = 0x3e,
     DPP = 0xa2,
     QPP = 0x32,
+    QPP_4 = 0x34,
 
     ERASE_4K = 0x20,
     ERASE4_4K = 0x21,
@@ -574,6 +575,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:
@@ -607,6 +609,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:
@@ -874,6 +877,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.9.3

  reply	other threads:[~2017-01-08  8:39 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-08  8:38 [Qemu-arm] [PATCH v3 0/3] block: m25p80: Improve mt25qu01g chip model Marcin Krzeminski
2017-01-08  8:38 ` [Qemu-devel] " Marcin Krzeminski
2017-01-08  8:38 ` Marcin Krzeminski [this message]
2017-01-08  8:38   ` [Qemu-devel] [PATCH v3 1/3] block: m25p80: Add Quad Page Program 4byte Marcin Krzeminski
2017-01-08  8:38 ` [Qemu-arm] [PATCH v3 2/3] block: m25p80: Introduce die erase command Marcin Krzeminski
2017-01-08  8:38   ` [Qemu-devel] " Marcin Krzeminski
2017-01-09  8:14   ` [Qemu-arm] " Cédric Le Goater
2017-01-09  8:14     ` [Qemu-devel] " Cédric Le Goater
2017-01-09 11:10   ` [Qemu-arm] " Edgar E. Iglesias
2017-01-09 11:10     ` [Qemu-devel] " Edgar E. Iglesias
2017-01-09 11:44     ` [Qemu-arm] " Marcin Krzemiński
2017-01-09 11:44       ` [Qemu-devel] " Marcin Krzemiński
2017-01-09 15:05       ` Edgar E. Iglesias
2017-01-09 15:05         ` Edgar E. Iglesias
2017-01-08  8:38 ` [Qemu-devel] [PATCH v3 3/3] block: m25p80: Improve 1GiB Micron flash definition Marcin Krzeminski
2017-01-09  8:14   ` [Qemu-arm] " Cédric Le Goater
2017-01-09  8:14     ` [Qemu-devel] " Cédric Le Goater
2017-01-09 11:10   ` Edgar E. Iglesias
2017-01-09 11:10     ` Edgar E. Iglesias
2017-01-16 16:48 ` [Qemu-arm] [PATCH v3 0/3] block: m25p80: Improve mt25qu01g chip model Peter Maydell
2017-01-16 16:48   ` [Qemu-devel] " Peter Maydell

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=20170108083854.5006-2-mar.krzeminski@gmail.com \
    --to=mar.krzeminski@gmail.com \
    --cc=clg@kaod.org \
    --cc=edgar.iglesias@xilinx.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-arm@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.