From: Cyrille Pitchen <cyrille.pitchen@atmel.com>
To: John Crispin <john@phrozen.org>, Marek Vasut <marek.vasut@gmail.com>
Cc: <linux-mtd@lists.infradead.org>, <linux-kernel@vger.kernel.org>,
Ash Benz <ash.benz@bk.ru>
Subject: Re: [PATCH V2 1/3] mtd: spi-nor: add support for macronix mx25u25635f
Date: Wed, 21 Dec 2016 11:41:43 +0100 [thread overview]
Message-ID: <106376a8-bf2a-612c-cc4e-e41a2a245cea@atmel.com> (raw)
In-Reply-To: <1482304990-23942-2-git-send-email-john@phrozen.org>
Hi all,
Le 21/12/2016 à 08:23, John Crispin a écrit :
> From: Ash Benz <ash.benz@bk.ru>
>
> This patch adds support for a new macronix spi flash chip. We have had this
> patch inside our tree for a while and people are actively using routers
> with this chip.
>
> Signed-off-by: John Crispin <john@phrozen.org>
> Signed-off-by: Ash Benz <ash.benz@bk.ru>
> ---
> Changes in V2
> * add description
>
> drivers/mtd/spi-nor/spi-nor.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c
> index d0fc165..171adb3 100644
> --- a/drivers/mtd/spi-nor/spi-nor.c
> +++ b/drivers/mtd/spi-nor/spi-nor.c
> @@ -872,6 +872,7 @@ static int spi_nor_is_locked(struct mtd_info *mtd, loff_t ofs, uint64_t len)
> { "mx25l12805d", INFO(0xc22018, 0, 64 * 1024, 256, 0) },
> { "mx25l12855e", INFO(0xc22618, 0, 64 * 1024, 256, 0) },
> { "mx25l25635e", INFO(0xc22019, 0, 64 * 1024, 512, 0) },
> + { "mx25u25635f", INFO(0xc22539, 0, 64 * 1024, 512, 0) },
According to its datasheet, the Macronix MX25U25635F, like the MX25U3235F,
supports Fast Read 1-1-2 (3Bh) and Fast Read 1-1-4 (6Bh) hence both
SPI_NOR_DUAL_READ and SPI_NOR_QUAD_READ flags should be set too.
Also extracted from the datasheet:
"Equal Sectors with 4K byte each, or Equal Blocks with 32K byte each or
Equal Blocks with 64K byte each"
Sector Erase 4K (20h) is supported hence the SECT_4K flag.
Best regards,
Cyrille
> { "mx25l25655e", INFO(0xc22619, 0, 64 * 1024, 512, 0) },
> { "mx66l51235l", INFO(0xc2201a, 0, 64 * 1024, 1024, SPI_NOR_QUAD_READ) },
> { "mx66l1g55g", INFO(0xc2261b, 0, 64 * 1024, 2048, SPI_NOR_QUAD_READ) },
>
next prev parent reply other threads:[~2016-12-21 10:42 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-21 7:23 [PATCH V2 0/3] mtd: spi-nor: add some new chip ids John Crispin
2016-12-21 7:23 ` [PATCH V2 1/3] mtd: spi-nor: add support for macronix mx25u25635f John Crispin
2016-12-21 7:32 ` Marek Vasut
2016-12-21 10:41 ` Cyrille Pitchen [this message]
2016-12-21 7:23 ` [PATCH V2 2/3] mtd: spi-nor: add support for macronix mx25u3235f John Crispin
2016-12-21 7:33 ` Marek Vasut
2016-12-21 7:36 ` John Crispin
2016-12-21 8:11 ` André Valentin
2016-12-21 8:18 ` John Crispin
2016-12-21 10:07 ` Marek Vasut
2016-12-21 10:13 ` John Crispin
2016-12-21 10:27 ` Cyrille Pitchen
2016-12-21 13:16 ` John Crispin
2016-12-21 13:38 ` Cyrille Pitchen
2016-12-21 7:23 ` [PATCH V2 3/3] mtd: spi-nor: add support for ESMT_f25l32qa and ESMT_f25l64qa John Crispin
2017-01-30 13:04 ` Cyrille Pitchen
2017-02-14 11:49 ` Rafał Miłecki
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=106376a8-bf2a-612c-cc4e-e41a2a245cea@atmel.com \
--to=cyrille.pitchen@atmel.com \
--cc=ash.benz@bk.ru \
--cc=john@phrozen.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
--cc=marek.vasut@gmail.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 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.