summaryrefslogtreecommitdiff
path: root/target/linux/adm5120/patches/102-jedec_pmc_39lvxxx_chips.patch
blob: edab0e7469e31074a6b70d32783cf950e740e01f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
Index: linux-2.6.24.2/drivers/mtd/chips/jedec_probe.c
===================================================================
--- linux-2.6.24.2.orig/drivers/mtd/chips/jedec_probe.c
+++ linux-2.6.24.2/drivers/mtd/chips/jedec_probe.c
@@ -121,6 +121,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
@@ -1264,6 +1268,58 @@ static const struct amd_flash_info jedec
 			ERASEINFO(0x02000,2),
 			ERASEINFO(0x04000,1),
 		}
+        }, {
+		.mfr_id		= MANUFACTURER_PMC,
+		.dev_id		= PM39LV512,
+		.name		= "PMC Pm39LV512",
+ 		.uaddr		= {
+			[0] = MTD_UADDR_0x0555_0x02AA /* x8 */
+		},
+		.DevSize	= SIZE_64KiB,
+		.CmdSet		= P_ID_AMD_STD,
+		.NumEraseRegions= 1,
+		.regions	= {
+			ERASEINFO(0x01000,16),
+		}
+        }, {
+		.mfr_id		= MANUFACTURER_PMC,
+		.dev_id		= PM39LV010,
+		.name		= "PMC Pm39LV010",
+ 		.uaddr		= {
+			[0] = MTD_UADDR_0x0555_0x02AA /* x8 */
+		},
+		.DevSize	= SIZE_128KiB,
+		.CmdSet		= P_ID_AMD_STD,
+		.NumEraseRegions= 1,
+		.regions	= {
+			ERASEINFO(0x01000,32),
+		}
+        }, {
+		.mfr_id		= MANUFACTURER_PMC,
+		.dev_id		= PM39LV020,
+		.name		= "PMC Pm39LV020",
+ 		.uaddr		= {
+			[0] = MTD_UADDR_0x0555_0x02AA /* x8 */
+		},
+		.DevSize	= SIZE_256KiB,
+		.CmdSet		= P_ID_AMD_STD,
+		.NumEraseRegions= 1,
+		.regions	= {
+			ERASEINFO(0x01000,64),
+		}
+        }, {
+		.mfr_id		= MANUFACTURER_PMC,
+		.dev_id		= PM39LV040,
+		.name		= "PMC Pm39LV040",
+ 		.uaddr		= {
+			[0] = MTD_UADDR_0x0555_0x02AA /* x8 */
+		},
+		.DevSize	= SIZE_512KiB,
+		.CmdSet		= P_ID_AMD_STD,
+		.NumEraseRegions= 1,
+		.regions	= {
+			ERASEINFO(0x01000,128),
+		}
 	}, {
 		.mfr_id		= MANUFACTURER_PMC,
 		.dev_id		= PM49FL002,