From: "Cédric Le Goater" <clg@kaod.org>
To: marcin.krzeminski@nokia.com, qemu-devel@nongnu.org
Cc: crosthwaitepeter@gmail.com, pawel.lenkow@itlen.com,
peter.maydell@linaro.org
Subject: Re: [Qemu-devel] [PATCH 5/9] m25p80: Add additional flash commands:
Date: Thu, 16 Jun 2016 09:14:54 +0200 [thread overview]
Message-ID: <576251EE.3040607@kaod.org> (raw)
In-Reply-To: <1465998071-7355-6-git-send-email-marcin.krzeminski@nokia.com>
On 06/15/2016 03:41 PM, marcin.krzeminski@nokia.com wrote:
> From: Marcin Krzeminski <marcin.krzeminski@nokia.com>
>
> Page program 4byte/quad and erase 32K sectors 4 bytes.
Reviewed-by: Cédric Le Goater <clg@kaod.org>
C.
>
> Signed-off-by: Marcin Krzeminski <marcin.krzeminski@nokia.com>
> ---
> hw/block/m25p80.c | 9 +++++++++
> 1 file changed, 9 insertions(+)
>
> diff --git a/hw/block/m25p80.c b/hw/block/m25p80.c
> index ca1f882..55b4377 100644
> --- a/hw/block/m25p80.c
> +++ b/hw/block/m25p80.c
> @@ -297,12 +297,14 @@ typedef enum {
>
> PP = 0x02,
> PP4 = 0x12,
> + PP4_4 = 0x3e,
> DPP = 0xa2,
> QPP = 0x32,
>
> ERASE_4K = 0x20,
> ERASE4_4K = 0x21,
> ERASE_32K = 0x52,
> + ERASE4_32K = 0x5c,
> ERASE_SECTOR = 0xd8,
> ERASE4_SECTOR = 0xdc,
>
> @@ -449,6 +451,7 @@ static void flash_erase(Flash *s, int offset, FlashCMD cmd)
> capa_to_assert = ER_4K;
> break;
> case ERASE_32K:
> + case ERASE4_32K:
> len = 32 << 10;
> capa_to_assert = ER_32K;
> break;
> @@ -519,9 +522,11 @@ static inline int get_addr_length(Flash *s)
>
> switch (s->cmd_in_progress) {
> case PP4:
> + case PP4_4:
> case READ4:
> case QIOR4:
> case ERASE4_4K:
> + case ERASE4_32K:
> case ERASE4_SECTOR:
> case FAST_READ4:
> case DOR4:
> @@ -555,6 +560,7 @@ static void complete_collecting_data(Flash *s)
> case QPP:
> case PP:
> case PP4:
> + case PP4_4:
> s->state = STATE_PAGE_PROGRAM;
> break;
> case READ:
> @@ -574,6 +580,7 @@ static void complete_collecting_data(Flash *s)
> case ERASE_4K:
> case ERASE4_4K:
> case ERASE_32K:
> + case ERASE4_32K:
> case ERASE_SECTOR:
> case ERASE4_SECTOR:
> flash_erase(s, s->cur_addr, s->cmd_in_progress);
> @@ -669,6 +676,7 @@ static void decode_new_cmd(Flash *s, uint32_t value)
> case ERASE_4K:
> case ERASE4_4K:
> case ERASE_32K:
> + case ERASE4_32K:
> case ERASE_SECTOR:
> case ERASE4_SECTOR:
> case READ:
> @@ -677,6 +685,7 @@ static void decode_new_cmd(Flash *s, uint32_t value)
> case QPP:
> case PP:
> case PP4:
> + case PP4_4:
> s->needed_bytes = get_addr_length(s);
> s->pos = 0;
> s->len = 0;
>
next prev parent reply other threads:[~2016-06-16 7:15 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-15 13:41 [Qemu-devel] [PATCH 0/9] m25p80: Add new 512Mbit and 1Gbit devices marcin.krzeminski
2016-06-15 13:41 ` [Qemu-devel] [PATCH 1/9] m25p80: Replace JEDEC ID masking with function marcin.krzeminski
2016-06-15 14:05 ` Cédric Le Goater
2016-06-15 17:09 ` [Qemu-devel] Odp.: " Krzeminski, Marcin (Nokia - PL/Wroclaw)
2016-06-15 13:41 ` [Qemu-devel] [PATCH 2/9] m25p80: Make a table for JEDEC ID marcin.krzeminski
2016-06-15 14:17 ` Cédric Le Goater
2016-06-15 13:41 ` [Qemu-devel] [PATCH 3/9] m25p80: Allow more than four banks marcin.krzeminski
2016-06-16 7:09 ` Cédric Le Goater
2016-06-15 13:41 ` [Qemu-devel] [PATCH 4/9] m25p80: Introduce COLLECTING_VAR_LEN_DATA state marcin.krzeminski
2016-06-16 7:13 ` Cédric Le Goater
2016-06-16 7:43 ` Krzeminski, Marcin (Nokia - PL/Wroclaw)
2016-06-16 8:13 ` Cédric Le Goater
2016-06-15 13:41 ` [Qemu-devel] [PATCH 5/9] m25p80: Add additional flash commands: marcin.krzeminski
2016-06-16 7:14 ` Cédric Le Goater [this message]
2016-06-15 13:41 ` [Qemu-devel] [PATCH 6/9] m25p80: Introduce quad and equad modes marcin.krzeminski
2016-06-15 14:25 ` Cédric Le Goater
2016-06-15 17:40 ` [Qemu-devel] Odp.: " Krzeminski, Marcin (Nokia - PL/Wroclaw)
2016-06-17 12:43 ` Cédric Le Goater
2016-06-15 13:41 ` [Qemu-devel] [PATCH 7/9] m25p80: Introduce configuration registers marcin.krzeminski
2016-06-16 7:24 ` Cédric Le Goater
2016-06-16 7:52 ` Krzeminski, Marcin (Nokia - PL/Wroclaw)
2016-06-16 8:05 ` Cédric Le Goater
2016-06-17 10:31 ` Krzeminski, Marcin (Nokia - PL/Wroclaw)
2016-06-15 13:41 ` [Qemu-devel] [PATCH 8/9] m25p80: Fast read commands family changes marcin.krzeminski
2016-06-16 7:19 ` Cédric Le Goater
2016-06-16 7:53 ` Krzeminski, Marcin (Nokia - PL/Wroclaw)
2016-06-15 13:41 ` [Qemu-devel] [PATCH 9/9] m25p80: New flash devices marcin.krzeminski
2016-06-16 7:20 ` Cédric Le Goater
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=576251EE.3040607@kaod.org \
--to=clg@kaod.org \
--cc=crosthwaitepeter@gmail.com \
--cc=marcin.krzeminski@nokia.com \
--cc=pawel.lenkow@itlen.com \
--cc=peter.maydell@linaro.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.