kernel/3.1[02]: move MTD root device setup code to mtdcore
[openwrt/svn-archive/archive.git] / target / linux / generic / patches-3.10 / 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 @@ -733,6 +733,9 @@ static const struct spi_device_id m25p_i
29 { "en25q64", INFO(0x1c3017, 0, 64 * 1024, 128, SECT_4K) },
30 { "en25qh256", INFO(0x1c7019, 0, 64 * 1024, 512, 0) },
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) },
37