7f9de4e8d38505acae83f61a180e814fb5b8c08c
[openwrt.git] / target / linux / generic / patches-3.14 / 009-mtd_m25p80_add_support_for_esmt_f25l32pa.patch
1 From 7d75ef5f56dbc2bedb9a893eb9ecfd03c456338d Mon Sep 17 00:00:00 2001
2 From: Flavio Silveira <fggs@terra.com.br>
3 Date: Thu, 29 Aug 2013 08:51:48 -0300
4 Subject: [PATCH v2] mtd: m25p80: Add support for ESMT F25L32PA
5
6 This flashchip is used in D-Link DIR-610 A1 router board 
7 and maybe several others, yet is not kernel upstream.
8
9 So add support for it according to datasheet [0], making it easier
10 to support other boards using this flashchip in the future.
11
12 Changelog v2:
13  - Better description
14  - Datasheet link at the bottom, similar to other patches.
15
16 [0] http://www.esmt.com.tw/DB/manager/upload/F25L32PA.pdf 
17
18 Signed-off-by: Flavio Silveira <fggs@terra.com.br>
19 ---
20  drivers/mtd/devices/m25p80.c |    3 +++
21  1 file changed, 3 insertions(+)
22
23  http://patchwork.ozlabs.org/patch/272438/
24  http://lists.infradead.org/pipermail/linux-mtd/2013-September/048511.html
25
26 --- a/drivers/mtd/devices/m25p80.c
27 +++ b/drivers/mtd/devices/m25p80.c
28 @@ -908,6 +908,9 @@ static const struct spi_device_id m25p_i
29         /* ESMT */
30         { "f25l32pa", INFO(0x8c2016, 0, 64 * 1024, 64, SECT_4K) },
31  
32 +       /* ESMT */
33 +       { "f25l32pa", INFO(0x8c2016, 0, 64 * 1024, 64, SECT_4K) },
34 +
35         /* Everspin */
36         { "mr25h256", CAT25_INFO( 32 * 1024, 1, 256, 2, M25P_NO_ERASE | M25P_NO_FR) },
37         { "mr25h10",  CAT25_INFO(128 * 1024, 1, 256, 3, M25P_NO_ERASE | M25P_NO_FR) },