Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1545712

Re: [PATCH V2 1/3] mtd: spi-nor: add support for macronix mx25u25635f

From Cyrille Pitchen <cyrille.pitchen@atmel.com>
Newsgroups linux.kernel
Subject Re: [PATCH V2 1/3] mtd: spi-nor: add support for macronix mx25u25635f
Date 2016-12-21 11:50 +0100
Message-ID <sQMD7-2fN-17@gated-at.bofh.it> (permalink)
References <sQJvz-nE-3@gated-at.bofh.it> <sQJvz-nE-19@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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) },
> 

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH V2 0/3] mtd: spi-nor: add some new chip ids John Crispin <john@phrozen.org> - 2016-12-21 08:30 +0100
  [PATCH V2 1/3] mtd: spi-nor: add support for macronix mx25u25635f John Crispin <john@phrozen.org> - 2016-12-21 08:30 +0100
    Re: [PATCH V2 1/3] mtd: spi-nor: add support for macronix mx25u25635f Marek Vasut <marek.vasut@gmail.com> - 2016-12-21 08:40 +0100
    Re: [PATCH V2 1/3] mtd: spi-nor: add support for macronix mx25u25635f Cyrille Pitchen <cyrille.pitchen@atmel.com> - 2016-12-21 11:50 +0100

csiph-web