Patchwork [v2] mtd: m25p80: Add support for ESMT F25L32PA

login
register
mail settings
Submitter Flávio Silveira
Date Sept. 3, 2013, 11:25 p.m.
Message ID <1378250755-2674-1-git-send-email-fggs@terra.com.br>
Download mbox | patch
Permalink /patch/272438/
State New
Headers show

Comments

Flávio Silveira - Sept. 3, 2013, 11:25 p.m.
This flashchip is used in D-Link DIR-610 A1 router board 
and maybe several others, yet is not kernel upstream.

So add support for it according to datasheet [0], making it easier
to support other boards using this flashchip in the future.

Changelog v2:
 - Better description
 - Datasheet link at the bottom, similar to other patches.

[0] http://www.esmt.com.tw/DB/manager/upload/F25L32PA.pdf 

Signed-off-by: Flavio Silveira <fggs@terra.com.br>
---
 drivers/mtd/devices/m25p80.c |    3 +++
 1 file changed, 3 insertions(+)
Brian Norris - Oct. 2, 2013, 6:46 p.m.
On Tue, Sep 03, 2013 at 08:25:54PM -0300, Flavio Silveira wrote:
> This flashchip is used in D-Link DIR-610 A1 router board 
> and maybe several others, yet is not kernel upstream.
> 
> So add support for it according to datasheet [0], making it easier
> to support other boards using this flashchip in the future.
> 
> Changelog v2:
>  - Better description
>  - Datasheet link at the bottom, similar to other patches.
> 
> [0] http://www.esmt.com.tw/DB/manager/upload/F25L32PA.pdf 
> 
> Signed-off-by: Flavio Silveira <fggs@terra.com.br>
> ---
>  drivers/mtd/devices/m25p80.c |    3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c
> index 2f3d2a5..3a3cf2d 100644
> --- a/drivers/mtd/devices/m25p80.c
> +++ b/drivers/mtd/devices/m25p80.c
> @@ -731,6 +731,9 @@ static const struct spi_device_id m25p_ids[] = {
>  	{ "en25q64", INFO(0x1c3017, 0, 64 * 1024, 128, SECT_4K) },
>  	{ "en25qh256", INFO(0x1c7019, 0, 64 * 1024, 512, 0) },
>  
> +	/* ESMT */
> +	{ "f25l32pa", INFO(0x8c2016, 0, 64 * 1024, 64, SECT_4K) },
> +
>  	/* Everspin */
>  	{ "mr25h256", CAT25_INFO(  32 * 1024, 1, 256, 2) },
>  

Removed the changelog and pushed to l2-mtd.git. Thanks!

Brian

Patch

diff --git a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c
index 2f3d2a5..3a3cf2d 100644
--- a/drivers/mtd/devices/m25p80.c
+++ b/drivers/mtd/devices/m25p80.c
@@ -731,6 +731,9 @@  static const struct spi_device_id m25p_ids[] = {
 	{ "en25q64", INFO(0x1c3017, 0, 64 * 1024, 128, SECT_4K) },
 	{ "en25qh256", INFO(0x1c7019, 0, 64 * 1024, 512, 0) },
 
+	/* ESMT */
+	{ "f25l32pa", INFO(0x8c2016, 0, 64 * 1024, 64, SECT_4K) },
+
 	/* Everspin */
 	{ "mr25h256", CAT25_INFO(  32 * 1024, 1, 256, 2) },