[PATCH] mtd: spi-nor: add Micron N25Q064A to list of known SPI flashes

Brian Norris computersforpeace at gmail.com
Fri Jan 9 14:39:59 PST 2015


This patch doesn't seem to have made it through to the mailing list.
Also, it does not apply to the latest l2-mtd.git tree. Can you resend?
Thanks.

http://git.infradead.org/l2-mtd.git

On Tue, Dec 09, 2014 at 03:07:15PM +0100, David Müller wrote:
> Signed-off-by: David Müller <d.mueller at elsoft.ch>
> ---
>  drivers/mtd/devices/m25p80.c  | 4 ++--
>  drivers/mtd/spi-nor/spi-nor.c | 1 +
>  2 files changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c
> index ed827cf..7a344b7 100644
> --- a/drivers/mtd/devices/m25p80.c
> +++ b/drivers/mtd/devices/m25p80.c
> @@ -280,8 +280,8 @@ static const struct spi_device_id m25p_ids[] = {
>  	{"mx25l3205d"},	{"mx25l3255e"},	{"mx25l6405d"},	{"mx25l12805d"},
>  	{"mx25l12855e"},{"mx25l25635e"},{"mx25l25655e"},{"mx66l51235l"},
>  	{"mx66l1g55g"},
> -	{"n25q064"},	{"n25q128a11"},	{"n25q128a13"},	{"n25q256a"},
> -	{"n25q512a"},	{"n25q512ax3"},	{"n25q00"},
> +	{"n25q064"},	{"n25q064a"},	{"n25q128a11"},	{"n25q128a13"},
> +	{"n25q256a"},	{"n25q512a"},	{"n25q512ax3"},	{"n25q00"},
>  	{"pm25lv512"},	{"pm25lv010"},	{"pm25lq032"},
>  	{"s25sl032p"},	{"s25sl064p"},	{"s25fl256s0"},	{"s25fl256s1"},
>  	{"s25fl512s"},	{"s70fl01gs"},	{"s25sl12800"},	{"s25sl12801"},
> diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c
> index c51ee52..299371b 100644
> --- a/drivers/mtd/spi-nor/spi-nor.c
> +++ b/drivers/mtd/spi-nor/spi-nor.c
> @@ -533,6 +533,7 @@ static const struct spi_device_id spi_nor_ids[] = {
>  
>  	/* Micron */
>  	{ "n25q064",     INFO(0x20ba17, 0, 64 * 1024,  128, 0) },
> +	{ "n25q064a",    INFO(0x20bb17, 0, 64 * 1024,  128, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
>  	{ "n25q128a11",  INFO(0x20bb18, 0, 64 * 1024,  256, 0) },
>  	{ "n25q128a13",  INFO(0x20ba18, 0, 64 * 1024,  256, 0) },
>  	{ "n25q256a",    INFO(0x20ba19, 0, 64 * 1024,  512, SECT_4K) },



More information about the linux-mtd mailing list