From 5d89871c5f12b97c922747e6bc51c5b08efc1972 Mon Sep 17 00:00:00 2001 From: florian Date: Tue, 9 Apr 2013 16:16:16 +0000 Subject: 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 Signed-off-by: Florian Fainelli git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36296 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../generic/patches-3.6/474-mtd_mp25p80_add_pm25lq032.patch | 10 ++++++++++ .../generic/patches-3.7/474-mtd_mp25p80_add_pm25lq032.patch | 10 ++++++++++ .../generic/patches-3.8/474-mtd_mp25p80_add_pm25lq032.patch | 10 ++++++++++ .../generic/patches-3.9/474-mtd_mp25p80_add_pm25lq032.patch | 10 ++++++++++ 4 files changed, 40 insertions(+) create mode 100644 target/linux/generic/patches-3.6/474-mtd_mp25p80_add_pm25lq032.patch create mode 100644 target/linux/generic/patches-3.7/474-mtd_mp25p80_add_pm25lq032.patch create mode 100644 target/linux/generic/patches-3.8/474-mtd_mp25p80_add_pm25lq032.patch create mode 100644 target/linux/generic/patches-3.9/474-mtd_mp25p80_add_pm25lq032.patch (limited to 'target') 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 0000000000..e122cc9a92 --- /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 0000000000..e122cc9a92 --- /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 0000000000..e122cc9a92 --- /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 0000000000..e122cc9a92 --- /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). -- cgit v1.2.3