ar71xx: build firmware image for the WNDR3700 v4 board
[openwrt/svn-archive/archive.git] / package / boot / uboot-lantiq / patches / 0010-sf-spansion-fix-device-IDs-and-sector-architecture-f.patch
1 From 81a8e9e192d53ce8b5cafd47190d6c6826519d09 Mon Sep 17 00:00:00 2001
2 From: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
3 Date: Wed, 7 Nov 2012 14:58:59 +0100
4 Subject: sf: spansion: fix device IDs and sector architecture for S25FL256S
5
6 Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
7
8 --- a/drivers/mtd/spi/spansion.c
9 +++ b/drivers/mtd/spi/spansion.c
10 @@ -97,11 +97,18 @@ static const struct spansion_spi_flash_p
11 .name = "S25FL129P_64K",
12 },
13 {
14 - .idcode1 = 0x2019,
15 + .idcode1 = 0x0219,
16 .idcode2 = 0x4d01,
17 .pages_per_sector = 256,
18 .nr_sectors = 512,
19 - .name = "S25FL256S",
20 + .name = "S25FL256S_64K",
21 + },
22 + {
23 + .idcode1 = 0x0219,
24 + .idcode2 = 0x4d00,
25 + .pages_per_sector = 1024,
26 + .nr_sectors = 128,
27 + .name = "S25FL256S_256K",
28 },
29 };
30