summaryrefslogtreecommitdiff
path: root/target/linux
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2013-04-09 16:16:16 +0000
committerFlorian Fainelli <florian@openwrt.org>2013-04-09 16:16:16 +0000
commitc3366cd164acfe68405c5fb92ddb8b2a8e8880c1 (patch)
treefe441d51979699df0590d48dc38a866000a42dbd /target/linux
parent518d6a92731da987ee5879a02fcef72f3096496a (diff)
downloadmtk-20170518-c3366cd164acfe68405c5fb92ddb8b2a8e8880c1.zip
mtk-20170518-c3366cd164acfe68405c5fb92ddb8b2a8e8880c1.tar.gz
mtk-20170518-c3366cd164acfe68405c5fb92ddb8b2a8e8880c1.tar.bz2
kernel: add support for PMC PM25LQ032 SPI Flash in m25p80.c
Add support for PMC PM25LQ032 (4MB) SPI Flash used in Hame MPR-A1 and clones. Signed-off-by: Michel Stempin <michel.stempin@wanadoo.fr> Signed-off-by: Florian Fainelli <florian@openwrt.org> SVN-Revision: 36296
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/generic/patches-3.6/474-mtd_mp25p80_add_pm25lq032.patch10
-rw-r--r--target/linux/generic/patches-3.7/474-mtd_mp25p80_add_pm25lq032.patch10
-rw-r--r--target/linux/generic/patches-3.8/474-mtd_mp25p80_add_pm25lq032.patch10
-rw-r--r--target/linux/generic/patches-3.9/474-mtd_mp25p80_add_pm25lq032.patch10
4 files changed, 40 insertions, 0 deletions
diff --git a/target/linux/generic/patches-3.6/474-mtd_mp25p80_add_pm25lq032.patch b/target/linux/generic/patches-3.6/474-mtd_mp25p80_add_pm25lq032.patch
new file mode 100644
index 0000000..e122cc9
--- /dev/null
+++ b/target/linux/generic/patches-3.6/474-mtd_mp25p80_add_pm25lq032.patch
@@ -0,0 +1,10 @@
+--- a/drivers/mtd/devices/m25p80.c
++++ b/drivers/mtd/devices/m25p80.c
+@@ -682,6 +682,7 @@
+ /* PMC -- pm25x "blocks" are 32K, sectors are 4K */
+ { "pm25lv512", INFO(0, 0, 32 * 1024, 2, SECT_4K_PMC) },
+ { "pm25lv010", INFO(0, 0, 32 * 1024, 4, SECT_4K_PMC) },
++ { "pm25lq032", INFO(0x7F9D46, 0, 64 * 1024, 64, SECT_4K) },
+
+ /* Spansion -- single (large) sector size only, at least
+ * for the chips listed here (without boot sectors).
diff --git a/target/linux/generic/patches-3.7/474-mtd_mp25p80_add_pm25lq032.patch b/target/linux/generic/patches-3.7/474-mtd_mp25p80_add_pm25lq032.patch
new file mode 100644
index 0000000..e122cc9
--- /dev/null
+++ b/target/linux/generic/patches-3.7/474-mtd_mp25p80_add_pm25lq032.patch
@@ -0,0 +1,10 @@
+--- a/drivers/mtd/devices/m25p80.c
++++ b/drivers/mtd/devices/m25p80.c
+@@ -682,6 +682,7 @@
+ /* PMC -- pm25x "blocks" are 32K, sectors are 4K */
+ { "pm25lv512", INFO(0, 0, 32 * 1024, 2, SECT_4K_PMC) },
+ { "pm25lv010", INFO(0, 0, 32 * 1024, 4, SECT_4K_PMC) },
++ { "pm25lq032", INFO(0x7F9D46, 0, 64 * 1024, 64, SECT_4K) },
+
+ /* Spansion -- single (large) sector size only, at least
+ * for the chips listed here (without boot sectors).
diff --git a/target/linux/generic/patches-3.8/474-mtd_mp25p80_add_pm25lq032.patch b/target/linux/generic/patches-3.8/474-mtd_mp25p80_add_pm25lq032.patch
new file mode 100644
index 0000000..e122cc9
--- /dev/null
+++ b/target/linux/generic/patches-3.8/474-mtd_mp25p80_add_pm25lq032.patch
@@ -0,0 +1,10 @@
+--- a/drivers/mtd/devices/m25p80.c
++++ b/drivers/mtd/devices/m25p80.c
+@@ -682,6 +682,7 @@
+ /* PMC -- pm25x "blocks" are 32K, sectors are 4K */
+ { "pm25lv512", INFO(0, 0, 32 * 1024, 2, SECT_4K_PMC) },
+ { "pm25lv010", INFO(0, 0, 32 * 1024, 4, SECT_4K_PMC) },
++ { "pm25lq032", INFO(0x7F9D46, 0, 64 * 1024, 64, SECT_4K) },
+
+ /* Spansion -- single (large) sector size only, at least
+ * for the chips listed here (without boot sectors).
diff --git a/target/linux/generic/patches-3.9/474-mtd_mp25p80_add_pm25lq032.patch b/target/linux/generic/patches-3.9/474-mtd_mp25p80_add_pm25lq032.patch
new file mode 100644
index 0000000..e122cc9
--- /dev/null
+++ b/target/linux/generic/patches-3.9/474-mtd_mp25p80_add_pm25lq032.patch
@@ -0,0 +1,10 @@
+--- a/drivers/mtd/devices/m25p80.c
++++ b/drivers/mtd/devices/m25p80.c
+@@ -682,6 +682,7 @@
+ /* PMC -- pm25x "blocks" are 32K, sectors are 4K */
+ { "pm25lv512", INFO(0, 0, 32 * 1024, 2, SECT_4K_PMC) },
+ { "pm25lv010", INFO(0, 0, 32 * 1024, 4, SECT_4K_PMC) },
++ { "pm25lq032", INFO(0x7F9D46, 0, 64 * 1024, 64, SECT_4K) },
+
+ /* Spansion -- single (large) sector size only, at least
+ * for the chips listed here (without boot sectors).