From: Matthieu CASTET <matthieu.castet@parrot.com>
To: Peter Korsgaard <jacmet@sunsite.dk>
Cc: Marek Vasut <marex@denx.de>, Kevin Cernekee <cernekee@gmail.com>,
Brian Norris <computersforpeace@gmail.com>,
"linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>,
Artem Bityutskiy <dedekind1@gmail.com>
Subject: Re: [PATCH 1/3] mtd: m25p80: utilize dedicated 4-byte addressing commands
Date: Mon, 18 Mar 2013 16:37:12 +0100 [thread overview]
Message-ID: <514734A8.7070905@parrot.com> (raw)
In-Reply-To: <87mwu114xn.fsf@dell.be.48ers.dk>
Peter Korsgaard a écrit :
>>>>>> "B" == Brian Norris <computersforpeace@gmail.com> writes:
>
> Hi,
>
> B> This patch provides support for the new stateless command set, so that
> B> we can avoid the problems that come with a stateful addressing mode
> B> change. The flash can be left in "3-byte mode" while still accessing the
> B> entire flash.
>
> Patch looks good (besides the build issue ;)
>
> B> diff --git a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c
> B> index e80db9e..5ff14ee 100644
> B> --- a/drivers/mtd/devices/m25p80.c
> B> +++ b/drivers/mtd/devices/m25p80.c
> B> @@ -48,6 +48,12 @@
> B> #define OPCODE_SE 0xd8 /* Sector erase (usually 64KiB) */
> B> #define OPCODE_RDID 0x9f /* Read JEDEC ID */
>
> B> +/* 4-byte address opcodes - used on Spansion and some Macronix flashes. */
> B> +#define OPCODE_NORM_READ_4B 0x13 /* Read data bytes (low frequency) */
> B> +#define OPCODE_FAST_READ_4B 0x0c /* Read data bytes (high frequency) */
> B> +#define OPCODE_PP_4B 0x12 /* Page program (up to 256 bytes) */
> B> +#define OPCODE_SE_4B 0xdc /* Sector erase (usually 64KiB) */
>
> FYI, looking at a Micron N25Q datasheet, they support the same 4B
> read/fast read commands, but NOT the 4B PP/SE ones - So for those you
> need the enter-4B / exit-4B dance :/
>
Same for windbond chip.
next prev parent reply other threads:[~2013-03-18 15:37 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-10 8:41 [PATCH 1/3] mtd: m25p80: utilize dedicated 4-byte addressing commands Brian Norris
2013-03-10 8:41 ` [PATCH 2/3] mtd: m25p80: correct EN4B/EX4B comment Brian Norris
2013-03-10 8:41 ` [PATCH 3/3] mtd: nand: reword nand_chip bad block interface comments Brian Norris
2013-03-10 11:18 ` [PATCH 1/3] mtd: m25p80: utilize dedicated 4-byte addressing commands Marek Vasut
2013-03-14 5:46 ` Brian Norris
2013-03-14 9:17 ` Marek Vasut
2013-03-18 7:21 ` Artem Bityutskiy
2013-03-18 7:55 ` Brian Norris
2013-03-18 8:35 ` Peter Korsgaard
2013-03-18 15:37 ` Matthieu CASTET [this message]
2013-03-18 15:31 ` Matthieu CASTET
2013-03-18 15:39 ` Marek Vasut
2013-03-18 16:13 ` Matthieu CASTET
2013-03-18 16:40 ` Brian Norris
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=514734A8.7070905@parrot.com \
--to=matthieu.castet@parrot.com \
--cc=cernekee@gmail.com \
--cc=computersforpeace@gmail.com \
--cc=dedekind1@gmail.com \
--cc=jacmet@sunsite.dk \
--cc=linux-mtd@lists.infradead.org \
--cc=marex@denx.de \
/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.