From: "Edgar E. Iglesias" <edgar.iglesias@gmail.com>
To: marcin.krzeminski@nokia.com
Cc: qemu-devel@nongnu.org, peter.maydell@linaro.org,
rfsw-patches@mlist.nokia.com, qemu-arm@nongnu.org, clg@kaod.org
Subject: Re: [Qemu-devel] [PATCH 1/2] block: m25p80: Add Quad Page Program 4byte version op
Date: Fri, 16 Dec 2016 17:18:50 +0100 [thread overview]
Message-ID: <20161216161850.GP9606@toto> (raw)
In-Reply-To: <1481894862-14102-2-git-send-email-marcin.krzeminski@nokia.com>
On Fri, Dec 16, 2016 at 02:27:41PM +0100, marcin.krzeminski@nokia.com wrote:
> 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>
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 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
>
>
next prev parent reply other threads:[~2016-12-16 16:19 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 ` [Qemu-devel] [PATCH 1/2] block: m25p80: Add Quad Page Program 4byte version op marcin.krzeminski
2016-12-16 16:18 ` Edgar E. Iglesias [this message]
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=20161216161850.GP9606@toto \
--to=edgar.iglesias@gmail.com \
--cc=clg@kaod.org \
--cc=marcin.krzeminski@nokia.com \
--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).