ar71xx: build firmware image for the WNDR3700 v4 board
[openwrt/svn-archive/archive.git] / package / boot / uboot-lantiq / patches / 0012-sf-spansion-add-support-for-S25FL512S.patch
1 From bff335ac524843bc90163c3b231091a5016f8670 Mon Sep 17 00:00:00 2001
2 From: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
3 Date: Wed, 7 Nov 2012 15:07:54 +0100
4 Subject: sf: spansion: add support for S25FL512S
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 @@ -114,6 +114,13 @@ static const struct spansion_spi_flash_p
11 .nr_sectors = 128,
12 .name = "S25FL256S_256K",
13 },
14 + {
15 + .idcode1 = 0x0220,
16 + .idcode2 = 0x4d00,
17 + .pages_per_sector = 1024,
18 + .nr_sectors = 256,
19 + .name = "S25FL512S_256K",
20 + },
21 };
22
23 static __maybe_unused int spansion_set_4byte_mode(struct spi_flash *flash)