aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/patches-2.6.32/084-mtd_m25p80_add_pm25lv_flash_support.patch
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-05-05 11:43:34 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-05-05 11:43:34 +0000
commit3a416fef4f9b7603bd42ec641148295cce6f998d (patch)
tree64eadb3d1c8cc4f6fe4cb32dab5dd57935e70e09 /target/linux/generic/patches-2.6.32/084-mtd_m25p80_add_pm25lv_flash_support.patch
parentc52b8023cfb767d102e259222e564738e7ff1899 (diff)
downloadmaster-187ad058-3a416fef4f9b7603bd42ec641148295cce6f998d.tar.gz
master-187ad058-3a416fef4f9b7603bd42ec641148295cce6f998d.tar.bz2
master-187ad058-3a416fef4f9b7603bd42ec641148295cce6f998d.zip
linux/2.6.32: R.I.P.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31597 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic/patches-2.6.32/084-mtd_m25p80_add_pm25lv_flash_support.patch')
-rw-r--r--target/linux/generic/patches-2.6.32/084-mtd_m25p80_add_pm25lv_flash_support.patch39
1 files changed, 0 insertions, 39 deletions
diff --git a/target/linux/generic/patches-2.6.32/084-mtd_m25p80_add_pm25lv_flash_support.patch b/target/linux/generic/patches-2.6.32/084-mtd_m25p80_add_pm25lv_flash_support.patch
deleted file mode 100644
index 1e31e3bc85..0000000000
--- a/target/linux/generic/patches-2.6.32/084-mtd_m25p80_add_pm25lv_flash_support.patch
+++ /dev/null
@@ -1,39 +0,0 @@
---- a/drivers/mtd/devices/m25p80.c
-+++ b/drivers/mtd/devices/m25p80.c
-@@ -42,6 +42,7 @@
- #define OPCODE_BE_4K 0x20 /* Erase 4KiB block */
- #define OPCODE_BE_32K 0x52 /* Erase 32KiB block */
- #define OPCODE_CHIP_ERASE 0xc7 /* Erase whole flash chip */
-+#define OPCODE_BE_4K_ALT 0xd7 /* Erase 4KiB block */
- #define OPCODE_SE 0xd8 /* Sector erase (usually 64KiB) */
- #define OPCODE_RDID 0x9f /* Read JEDEC ID */
-
-@@ -599,6 +600,7 @@ struct flash_info {
-
- u16 flags;
- #define SECT_4K 0x01 /* OPCODE_BE_4K works uniformly */
-+#define SECT_4K_ALT 0x02 /* OPCODE_BE_4K_ALT works uniformly */
- };
-
-
-@@ -626,6 +628,10 @@ static struct flash_info __devinitdata m
- { "mx25l12805d", 0xc22018, 0, 64 * 1024, 256, },
- { "mx25l12855e", 0xc22618, 0, 64 * 1024, 256, },
-
-+ /* PMC -- pm25x "blocks" are 32K, sectors are 4K */
-+ { "pm25lv512", 0, 0, 32 * 1024, 2, SECT_4K_ALT },
-+ { "pm25lv010", 0, 0, 32 * 1024, 4, SECT_4K_ALT },
-+
- /* Spansion -- single (large) sector size only, at least
- * for the chips listed here (without boot sectors).
- */
-@@ -807,6 +813,9 @@ static int __devinit m25p_probe(struct s
- if (info->flags & SECT_4K) {
- flash->erase_opcode = OPCODE_BE_4K;
- flash->mtd.erasesize = 4096;
-+ } else if (info->flags & SECT_4K_ALT) {
-+ flash->erase_opcode = OPCODE_BE_4K_ALT;
-+ flash->mtd.erasesize = 4096;
- } else {
- flash->erase_opcode = OPCODE_SE;
- flash->mtd.erasesize = info->sector_size;