From: jow Date: Mon, 25 Jul 2011 09:46:06 +0000 (+0000) Subject: [backfire] backport upstream commit f2df1ae3fe8d44d51bd7218a9da9134b83c7531e X-Git-Url: http://git.ozo.com/?p=openwrt-10.03%2F.git;a=commitdiff_plain;h=aaa8c161f6191e78b8803d827baf985f19ca6cae [backfire] backport upstream commit f2df1ae3fe8d44d51bd7218a9da9134b83c7531e Adds support for the Spansion S25FL016K and S25FL064K SPI flash chips. git-svn-id: svn://svn.openwrt.org/openwrt/branches/backfire@27767 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/target/linux/ar71xx/patches-2.6.32/109-mtd-wrt160nl-trx-parser.patch b/target/linux/ar71xx/patches-2.6.32/109-mtd-wrt160nl-trx-parser.patch index 339999b24..b4eab674a 100644 --- a/target/linux/ar71xx/patches-2.6.32/109-mtd-wrt160nl-trx-parser.patch +++ b/target/linux/ar71xx/patches-2.6.32/109-mtd-wrt160nl-trx-parser.patch @@ -1,6 +1,6 @@ --- a/drivers/mtd/devices/m25p80.c +++ b/drivers/mtd/devices/m25p80.c -@@ -888,6 +888,16 @@ static int __devinit m25p_probe(struct s +@@ -890,6 +890,16 @@ static int __devinit m25p_probe(struct s part_probes, &parts, 0); } #endif diff --git a/target/linux/generic-2.6/patches-2.6.32/092-mtd-m25p80-add-s25fl-chip-support.patch b/target/linux/generic-2.6/patches-2.6.32/092-mtd-m25p80-add-s25fl-chip-support.patch new file mode 100644 index 000000000..7ef929d38 --- /dev/null +++ b/target/linux/generic-2.6/patches-2.6.32/092-mtd-m25p80-add-s25fl-chip-support.patch @@ -0,0 +1,11 @@ +--- a/drivers/mtd/devices/m25p80.c ++++ b/drivers/mtd/devices/m25p80.c +@@ -652,6 +652,8 @@ static struct flash_info __devinitdata m + { "s25sl12801", 0x012018, 0x0301, 64 * 1024, 256, }, + { "s25fl129p0", 0x012018, 0x4d00, 256 * 1024, 64, }, + { "s25fl129p1", 0x012018, 0x4d01, 64 * 1024, 256, }, ++ { "s25fl016k", 0xef4015, 0, 64 * 1024, 32, SECT_4K }, ++ { "s25fl064k", 0xef4017, 0, 64 * 1024, 128, SECT_4K }, + + /* SST -- large erase sizes are "overlays", "sectors" are 4K */ + { "sst25vf040b", 0xbf258d, 0, 64 * 1024, 8, SECT_4K, },