aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/adm5120/patches-2.6.30/102-jedec_pmc_39lvxxx_chips.patch
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2009-05-22 08:38:10 +0000
committerGabor Juhos <juhosg@openwrt.org>2009-05-22 08:38:10 +0000
commit7259dbee3775b9977f1ed4e7b590a51c201e50e9 (patch)
tree06c266c53ed143f421fa6d153bb57f664a6b0b95 /target/linux/adm5120/patches-2.6.30/102-jedec_pmc_39lvxxx_chips.patch
parenteb3098fdb6c515ae584f8b06c4308b745297b8a2 (diff)
downloadupstream-7259dbee3775b9977f1ed4e7b590a51c201e50e9.tar.gz
upstream-7259dbee3775b9977f1ed4e7b590a51c201e50e9.tar.bz2
upstream-7259dbee3775b9977f1ed4e7b590a51c201e50e9.zip
[adm5120] add experimental support for 2.6.30
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15979 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/adm5120/patches-2.6.30/102-jedec_pmc_39lvxxx_chips.patch')
-rw-r--r--target/linux/adm5120/patches-2.6.30/102-jedec_pmc_39lvxxx_chips.patch68
1 files changed, 68 insertions, 0 deletions
diff --git a/target/linux/adm5120/patches-2.6.30/102-jedec_pmc_39lvxxx_chips.patch b/target/linux/adm5120/patches-2.6.30/102-jedec_pmc_39lvxxx_chips.patch
new file mode 100644
index 0000000000..55a201d413
--- /dev/null
+++ b/target/linux/adm5120/patches-2.6.30/102-jedec_pmc_39lvxxx_chips.patch
@@ -0,0 +1,68 @@
+--- a/drivers/mtd/chips/jedec_probe.c
++++ b/drivers/mtd/chips/jedec_probe.c
+@@ -128,6 +128,10 @@
+ #define UPD29F064115 0x221C
+
+ /* PMC */
++#define PM39LV512 0x001B
++#define PM39LV010 0x001C
++#define PM39LV020 0x003D
++#define PM39LV040 0x003E
+ #define PM49FL002 0x006D
+ #define PM49FL004 0x006E
+ #define PM49FL008 0x006A
+@@ -1249,6 +1253,54 @@ static const struct amd_flash_info jedec
+ ERASEINFO(0x02000,2),
+ ERASEINFO(0x04000,1),
+ }
++ }, {
++ .mfr_id = MANUFACTURER_PMC,
++ .dev_id = PM39LV512,
++ .name = "PMC Pm39LV512",
++ .devtypes = CFI_DEVICETYPE_X8,
++ .uaddr = MTD_UADDR_0x0555_0x02AA,
++ .dev_size = SIZE_64KiB,
++ .cmd_set = P_ID_AMD_STD,
++ .nr_regions = 1,
++ .regions = {
++ ERASEINFO(0x01000,16),
++ }
++ }, {
++ .mfr_id = MANUFACTURER_PMC,
++ .dev_id = PM39LV010,
++ .name = "PMC Pm39LV010",
++ .devtypes = CFI_DEVICETYPE_X8,
++ .uaddr = MTD_UADDR_0x0555_0x02AA,
++ .dev_size = SIZE_128KiB,
++ .cmd_set = P_ID_AMD_STD,
++ .nr_regions = 1,
++ .regions = {
++ ERASEINFO(0x01000,32),
++ }
++ }, {
++ .mfr_id = MANUFACTURER_PMC,
++ .dev_id = PM39LV020,
++ .name = "PMC Pm39LV020",
++ .devtypes = CFI_DEVICETYPE_X8,
++ .uaddr = MTD_UADDR_0x0555_0x02AA,
++ .dev_size = SIZE_256KiB,
++ .cmd_set = P_ID_AMD_STD,
++ .nr_regions = 1,
++ .regions = {
++ ERASEINFO(0x01000,64),
++ }
++ }, {
++ .mfr_id = MANUFACTURER_PMC,
++ .dev_id = PM39LV040,
++ .name = "PMC Pm39LV040",
++ .devtypes = CFI_DEVICETYPE_X8,
++ .uaddr = MTD_UADDR_0x0555_0x02AA,
++ .dev_size = SIZE_512KiB,
++ .cmd_set = P_ID_AMD_STD,
++ .nr_regions = 1,
++ .regions = {
++ ERASEINFO(0x01000,128),
++ }
+ }, {
+ .mfr_id = MANUFACTURER_PMC,
+ .dev_id = PM49FL002,