FreeCalypso > hg > freecalypso-tools
annotate loadtools/fldevs.c @ 993:84c9869a3659
flash PPB erase: make internal API more consistent
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 03 Dec 2023 04:58:50 +0000 |
parents | c4c400c1b10c |
children | ad3041e19884 |
rev | line source |
---|---|
506
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 /* |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 * This module holds the tables of supported flash devices |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
3 */ |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
4 |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
5 #include <stdint.h> |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
6 #include "flash.h" |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
7 |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
8 extern struct flash_cmdset flash_cmdset_amd; |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
9 extern struct flash_cmdset flash_cmdset_intel; |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
10 extern struct flash_cmdset flash_cmdset_intel_w30; |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
11 |
979
c5133c3c11b1
fc-loadtool flash: implement PL-J PPB programming functions
Mychaela Falconia <falcon@freecalypso.org>
parents:
978
diff
changeset
|
12 extern int plj_ppb_program_one(); |
983
0407d14fb854
PL-J flash PPB ops: rework for full verification of lock state
Mychaela Falconia <falcon@freecalypso.org>
parents:
980
diff
changeset
|
13 extern int plj_ppb_program_all(); |
979
c5133c3c11b1
fc-loadtool flash: implement PL-J PPB programming functions
Mychaela Falconia <falcon@freecalypso.org>
parents:
978
diff
changeset
|
14 extern int plj_ppb_erase_all_single(); |
c5133c3c11b1
fc-loadtool flash: implement PL-J PPB programming functions
Mychaela Falconia <falcon@freecalypso.org>
parents:
978
diff
changeset
|
15 extern int plj_ppb_erase_all_dualbank(); |
c5133c3c11b1
fc-loadtool flash: implement PL-J PPB programming functions
Mychaela Falconia <falcon@freecalypso.org>
parents:
978
diff
changeset
|
16 |
506
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
17 /* flash bank geometries */ |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
18 |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
19 static struct flash_geom geom_2M_topboot = { |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
20 .total_size = 0x200000, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
21 .nregions = 2, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
22 .regions = {0x10000, 31, 0x2000, 8}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
23 .total_sectors = 39, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
24 }; |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
25 |
973
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
26 static struct flash_geom geom_2M_bottomboot = { |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
27 .total_size = 0x200000, |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
28 .nregions = 2, |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
29 .regions = {0x2000, 8, 0x10000, 31}, |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
30 .total_sectors = 39, |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
31 }; |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
32 |
506
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
33 static struct flash_geom geom_4M_topboot = { |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
34 .total_size = 0x400000, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
35 .nregions = 2, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
36 .regions = {0x10000, 63, 0x2000, 8}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
37 .total_sectors = 71, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
38 }; |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
39 |
973
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
40 static struct flash_geom geom_4M_bottomboot = { |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
41 .total_size = 0x400000, |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
42 .nregions = 2, |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
43 .regions = {0x2000, 8, 0x10000, 63}, |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
44 .total_sectors = 71, |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
45 }; |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
46 |
523
9a478d33b3ca
fc-loadtool: added Samsung K5L33xx_A flash support for GTM900
Mychaela Falconia <falcon@freecalypso.org>
parents:
506
diff
changeset
|
47 static struct flash_geom geom_4M_bothends = { |
9a478d33b3ca
fc-loadtool: added Samsung K5L33xx_A flash support for GTM900
Mychaela Falconia <falcon@freecalypso.org>
parents:
506
diff
changeset
|
48 .total_size = 0x400000, |
9a478d33b3ca
fc-loadtool: added Samsung K5L33xx_A flash support for GTM900
Mychaela Falconia <falcon@freecalypso.org>
parents:
506
diff
changeset
|
49 .nregions = 3, |
9a478d33b3ca
fc-loadtool: added Samsung K5L33xx_A flash support for GTM900
Mychaela Falconia <falcon@freecalypso.org>
parents:
506
diff
changeset
|
50 .regions = {0x2000, 8, 0x10000, 62, 0x2000, 8}, |
9a478d33b3ca
fc-loadtool: added Samsung K5L33xx_A flash support for GTM900
Mychaela Falconia <falcon@freecalypso.org>
parents:
506
diff
changeset
|
51 .total_sectors = 78, |
9a478d33b3ca
fc-loadtool: added Samsung K5L33xx_A flash support for GTM900
Mychaela Falconia <falcon@freecalypso.org>
parents:
506
diff
changeset
|
52 }; |
9a478d33b3ca
fc-loadtool: added Samsung K5L33xx_A flash support for GTM900
Mychaela Falconia <falcon@freecalypso.org>
parents:
506
diff
changeset
|
53 |
506
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
54 static struct flash_geom geom_8M_topboot = { |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
55 .total_size = 0x800000, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
56 .nregions = 2, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
57 .regions = {0x10000, 127, 0x2000, 8}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
58 .total_sectors = 135, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
59 }; |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
60 |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
61 static struct flash_geom geom_8M_bottomboot = { |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
62 .total_size = 0x800000, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
63 .nregions = 2, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
64 .regions = {0x2000, 8, 0x10000, 127}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
65 .total_sectors = 135, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
66 }; |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
67 |
553
3886a8a40809
fc-loadtool: added support for old Am29DL640G flash chip
Mychaela Falconia <falcon@freecalypso.org>
parents:
523
diff
changeset
|
68 static struct flash_geom geom_8M_bothends = { |
3886a8a40809
fc-loadtool: added support for old Am29DL640G flash chip
Mychaela Falconia <falcon@freecalypso.org>
parents:
523
diff
changeset
|
69 .total_size = 0x800000, |
3886a8a40809
fc-loadtool: added support for old Am29DL640G flash chip
Mychaela Falconia <falcon@freecalypso.org>
parents:
523
diff
changeset
|
70 .nregions = 3, |
3886a8a40809
fc-loadtool: added support for old Am29DL640G flash chip
Mychaela Falconia <falcon@freecalypso.org>
parents:
523
diff
changeset
|
71 .regions = {0x2000, 8, 0x10000, 126, 0x2000, 8}, |
3886a8a40809
fc-loadtool: added support for old Am29DL640G flash chip
Mychaela Falconia <falcon@freecalypso.org>
parents:
523
diff
changeset
|
72 .total_sectors = 142, |
3886a8a40809
fc-loadtool: added support for old Am29DL640G flash chip
Mychaela Falconia <falcon@freecalypso.org>
parents:
523
diff
changeset
|
73 }; |
3886a8a40809
fc-loadtool: added support for old Am29DL640G flash chip
Mychaela Falconia <falcon@freecalypso.org>
parents:
523
diff
changeset
|
74 |
506
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
75 static struct flash_geom geom_8M_topboot_big = { |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
76 .total_size = 0x800000, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
77 .nregions = 2, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
78 .regions = {0x40000, 31, 0x10000, 4}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
79 .total_sectors = 35, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
80 }; |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
81 |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
82 static struct flash_geom geom_8M_bottomboot_big = { |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
83 .total_size = 0x800000, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
84 .nregions = 2, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
85 .regions = {0x10000, 4, 0x40000, 31}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
86 .total_sectors = 35, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
87 }; |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
88 |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
89 /* Intel and compatible flash chips */ |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
90 |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
91 static struct cfi_check intel_2M_topboot_cfi[] = { |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
92 {0x10, 'Q'}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
93 {0x11, 'R'}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
94 {0x12, 'Y'}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
95 {0x13, 0x03}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
96 {0x14, 0x00}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
97 {0x27, 0x15}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
98 {0x2C, 0x02}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
99 {0x2D, 0x1E}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
100 {0x2E, 0x00}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
101 {0x2F, 0x00}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
102 {0x30, 0x01}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
103 {0x31, 0x07}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
104 {0x32, 0x00}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
105 {0x33, 0x20}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
106 {0x34, 0x00}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
107 {-1, 0} |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
108 }; |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
109 |
973
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
110 static struct cfi_check intel_2M_bottomboot_cfi[] = { |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
111 {0x10, 'Q'}, |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
112 {0x11, 'R'}, |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
113 {0x12, 'Y'}, |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
114 {0x13, 0x03}, |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
115 {0x14, 0x00}, |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
116 {0x27, 0x15}, |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
117 {0x2C, 0x02}, |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
118 {0x2D, 0x07}, |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
119 {0x2E, 0x00}, |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
120 {0x2F, 0x20}, |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
121 {0x30, 0x00}, |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
122 {0x31, 0x1E}, |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
123 {0x32, 0x00}, |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
124 {0x33, 0x00}, |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
125 {0x34, 0x01}, |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
126 {-1, 0} |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
127 }; |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
128 |
506
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
129 static struct cfi_check intel_4M_topboot_cfi[] = { |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
130 {0x10, 'Q'}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
131 {0x11, 'R'}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
132 {0x12, 'Y'}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
133 {0x13, 0x03}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
134 {0x14, 0x00}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
135 {0x27, 0x16}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
136 {0x2C, 0x02}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
137 {0x2D, 0x3E}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
138 {0x2E, 0x00}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
139 {0x2F, 0x00}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
140 {0x30, 0x01}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
141 {0x31, 0x07}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
142 {0x32, 0x00}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
143 {0x33, 0x20}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
144 {0x34, 0x00}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
145 {-1, 0} |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
146 }; |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
147 |
973
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
148 static struct cfi_check intel_4M_bottomboot_cfi[] = { |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
149 {0x10, 'Q'}, |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
150 {0x11, 'R'}, |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
151 {0x12, 'Y'}, |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
152 {0x13, 0x03}, |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
153 {0x14, 0x00}, |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
154 {0x27, 0x16}, |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
155 {0x2C, 0x02}, |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
156 {0x2D, 0x07}, |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
157 {0x2E, 0x00}, |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
158 {0x2F, 0x20}, |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
159 {0x30, 0x00}, |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
160 {0x31, 0x3E}, |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
161 {0x32, 0x00}, |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
162 {0x33, 0x00}, |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
163 {0x34, 0x01}, |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
164 {-1, 0} |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
165 }; |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
166 |
506
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
167 static struct cfi_check intel_8M_topboot_cfi[] = { |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
168 {0x10, 'Q'}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
169 {0x11, 'R'}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
170 {0x12, 'Y'}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
171 {0x13, 0x03}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
172 {0x14, 0x00}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
173 {0x27, 0x17}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
174 {0x2C, 0x02}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
175 {0x2D, 0x7E}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
176 {0x2E, 0x00}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
177 {0x2F, 0x00}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
178 {0x30, 0x01}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
179 {0x31, 0x07}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
180 {0x32, 0x00}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
181 {0x33, 0x20}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
182 {0x34, 0x00}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
183 {-1, 0} |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
184 }; |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
185 |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
186 static struct cfi_check intel_8M_bottomboot_cfi[] = { |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
187 {0x10, 'Q'}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
188 {0x11, 'R'}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
189 {0x12, 'Y'}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
190 {0x13, 0x03}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
191 {0x14, 0x00}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
192 {0x27, 0x17}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
193 {0x2C, 0x02}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
194 {0x2D, 0x07}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
195 {0x2E, 0x00}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
196 {0x2F, 0x20}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
197 {0x30, 0x00}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
198 {0x31, 0x7E}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
199 {0x32, 0x00}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
200 {0x33, 0x00}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
201 {0x34, 0x01}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
202 {-1, 0} |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
203 }; |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
204 |
973
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
205 /* classic Intel C3 family: found in low-end Mot C1xx models and BenQ M32 */ |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
206 |
506
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
207 struct flash_device flashdev_28F160C3T = { |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
208 .name = "Intel 28F160C3T", |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
209 .cfi_table = intel_2M_topboot_cfi, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
210 .required_global_config = FLASH_GLOBAL_CFG_SINGLE_4M, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
211 .bank_geom = {&geom_2M_topboot, 0}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
212 .cmdset = &flash_cmdset_intel, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
213 }; |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
214 |
973
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
215 struct flash_device flashdev_28F160C3B = { |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
216 .name = "Intel 28F160C3B", |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
217 .cfi_table = intel_2M_bottomboot_cfi, |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
218 .required_global_config = FLASH_GLOBAL_CFG_SINGLE_4M, |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
219 .bank_geom = {&geom_2M_bottomboot, 0}, |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
220 .cmdset = &flash_cmdset_intel, |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
221 }; |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
222 |
506
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
223 struct flash_device flashdev_28F320C3T = { |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
224 .name = "Intel 28F320C3T", |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
225 .cfi_table = intel_4M_topboot_cfi, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
226 .required_global_config = FLASH_GLOBAL_CFG_SINGLE_4M, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
227 .bank_geom = {&geom_4M_topboot, 0}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
228 .cmdset = &flash_cmdset_intel, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
229 }; |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
230 |
973
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
231 struct flash_device flashdev_28F320C3B = { |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
232 .name = "Intel 28F320C3B", |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
233 .cfi_table = intel_4M_bottomboot_cfi, |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
234 .required_global_config = FLASH_GLOBAL_CFG_SINGLE_4M, |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
235 .bank_geom = {&geom_4M_bottomboot, 0}, |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
236 .cmdset = &flash_cmdset_intel, |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
237 }; |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
238 |
506
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
239 struct flash_device flashdev_28F640C3T = { |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
240 .name = "Intel 28F640C3T", |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
241 .cfi_table = intel_8M_topboot_cfi, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
242 .required_global_config = FLASH_GLOBAL_CFG_SINGLE_8M, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
243 .bank_geom = {&geom_8M_topboot, 0}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
244 .cmdset = &flash_cmdset_intel, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
245 }; |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
246 |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
247 struct flash_device flashdev_28F640C3B = { |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
248 .name = "Intel 28F640C3B", |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
249 .cfi_table = intel_8M_bottomboot_cfi, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
250 .required_global_config = FLASH_GLOBAL_CFG_SINGLE_8M, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
251 .bank_geom = {&geom_8M_bottomboot, 0}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
252 .cmdset = &flash_cmdset_intel, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
253 }; |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
254 |
973
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
255 /* |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
256 * Intel W18 and W30 families are equivalent in terms of geometries and |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
257 * relevant quirks, and are distinguishable only by ID codes. We treat them |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
258 * all as W30, based on the latter family being the first one encountered: |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
259 * 28F640W30B is the flash chip used on TI's legendary D-Sample board, and |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
260 * the flash inside Motorola C155/156 is an MCP equivalent of the same. |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
261 */ |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
262 |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
263 struct flash_device flashdev_28F320W30T = { |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
264 .name = "Intel 28F320W30T", |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
265 .cfi_table = intel_4M_topboot_cfi, |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
266 .required_global_config = FLASH_GLOBAL_CFG_SINGLE_4M, |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
267 .bank_geom = {&geom_4M_topboot, 0}, |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
268 .cmdset = &flash_cmdset_intel_w30, |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
269 }; |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
270 |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
271 struct flash_device flashdev_28F320W30B = { |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
272 .name = "Intel 28F320W30B", |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
273 .cfi_table = intel_4M_bottomboot_cfi, |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
274 .required_global_config = FLASH_GLOBAL_CFG_SINGLE_4M, |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
275 .bank_geom = {&geom_4M_bottomboot, 0}, |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
276 .cmdset = &flash_cmdset_intel_w30, |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
277 }; |
7c18eac91457
loadtools: round out support for Intel flash families
Mychaela Falconia <falcon@freecalypso.org>
parents:
916
diff
changeset
|
278 |
506
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
279 struct flash_device flashdev_28F640W30T = { |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
280 .name = "Intel 28F640W30T", |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
281 .cfi_table = intel_8M_topboot_cfi, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
282 .required_global_config = FLASH_GLOBAL_CFG_SINGLE_8M, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
283 .bank_geom = {&geom_8M_topboot, 0}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
284 .cmdset = &flash_cmdset_intel_w30, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
285 }; |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
286 |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
287 struct flash_device flashdev_28F640W30B = { |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
288 .name = "Intel 28F640W30B", |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
289 .cfi_table = intel_8M_bottomboot_cfi, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
290 .required_global_config = FLASH_GLOBAL_CFG_SINGLE_8M, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
291 .bank_geom = {&geom_8M_bottomboot, 0}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
292 .cmdset = &flash_cmdset_intel_w30, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
293 }; |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
294 |
553
3886a8a40809
fc-loadtool: added support for old Am29DL640G flash chip
Mychaela Falconia <falcon@freecalypso.org>
parents:
523
diff
changeset
|
295 /* classic AMD flash chips */ |
3886a8a40809
fc-loadtool: added support for old Am29DL640G flash chip
Mychaela Falconia <falcon@freecalypso.org>
parents:
523
diff
changeset
|
296 |
3886a8a40809
fc-loadtool: added support for old Am29DL640G flash chip
Mychaela Falconia <falcon@freecalypso.org>
parents:
523
diff
changeset
|
297 static struct cfi_check Am29DL640G_cfi[] = { |
3886a8a40809
fc-loadtool: added support for old Am29DL640G flash chip
Mychaela Falconia <falcon@freecalypso.org>
parents:
523
diff
changeset
|
298 {0x10, 'Q'}, |
3886a8a40809
fc-loadtool: added support for old Am29DL640G flash chip
Mychaela Falconia <falcon@freecalypso.org>
parents:
523
diff
changeset
|
299 {0x11, 'R'}, |
3886a8a40809
fc-loadtool: added support for old Am29DL640G flash chip
Mychaela Falconia <falcon@freecalypso.org>
parents:
523
diff
changeset
|
300 {0x12, 'Y'}, |
3886a8a40809
fc-loadtool: added support for old Am29DL640G flash chip
Mychaela Falconia <falcon@freecalypso.org>
parents:
523
diff
changeset
|
301 {0x13, 0x02}, |
3886a8a40809
fc-loadtool: added support for old Am29DL640G flash chip
Mychaela Falconia <falcon@freecalypso.org>
parents:
523
diff
changeset
|
302 {0x14, 0x00}, |
3886a8a40809
fc-loadtool: added support for old Am29DL640G flash chip
Mychaela Falconia <falcon@freecalypso.org>
parents:
523
diff
changeset
|
303 {0x15, 0x40}, |
3886a8a40809
fc-loadtool: added support for old Am29DL640G flash chip
Mychaela Falconia <falcon@freecalypso.org>
parents:
523
diff
changeset
|
304 {0x16, 0x00}, |
3886a8a40809
fc-loadtool: added support for old Am29DL640G flash chip
Mychaela Falconia <falcon@freecalypso.org>
parents:
523
diff
changeset
|
305 {0x27, 0x17}, |
3886a8a40809
fc-loadtool: added support for old Am29DL640G flash chip
Mychaela Falconia <falcon@freecalypso.org>
parents:
523
diff
changeset
|
306 {0x2C, 0x03}, |
3886a8a40809
fc-loadtool: added support for old Am29DL640G flash chip
Mychaela Falconia <falcon@freecalypso.org>
parents:
523
diff
changeset
|
307 {0x2D, 0x07}, |
3886a8a40809
fc-loadtool: added support for old Am29DL640G flash chip
Mychaela Falconia <falcon@freecalypso.org>
parents:
523
diff
changeset
|
308 {0x2E, 0x00}, |
3886a8a40809
fc-loadtool: added support for old Am29DL640G flash chip
Mychaela Falconia <falcon@freecalypso.org>
parents:
523
diff
changeset
|
309 {0x2F, 0x20}, |
3886a8a40809
fc-loadtool: added support for old Am29DL640G flash chip
Mychaela Falconia <falcon@freecalypso.org>
parents:
523
diff
changeset
|
310 {0x30, 0x00}, |
3886a8a40809
fc-loadtool: added support for old Am29DL640G flash chip
Mychaela Falconia <falcon@freecalypso.org>
parents:
523
diff
changeset
|
311 {0x31, 0x7D}, |
3886a8a40809
fc-loadtool: added support for old Am29DL640G flash chip
Mychaela Falconia <falcon@freecalypso.org>
parents:
523
diff
changeset
|
312 {0x32, 0x00}, |
3886a8a40809
fc-loadtool: added support for old Am29DL640G flash chip
Mychaela Falconia <falcon@freecalypso.org>
parents:
523
diff
changeset
|
313 {0x33, 0x00}, |
3886a8a40809
fc-loadtool: added support for old Am29DL640G flash chip
Mychaela Falconia <falcon@freecalypso.org>
parents:
523
diff
changeset
|
314 {0x34, 0x01}, |
3886a8a40809
fc-loadtool: added support for old Am29DL640G flash chip
Mychaela Falconia <falcon@freecalypso.org>
parents:
523
diff
changeset
|
315 {0x35, 0x07}, |
3886a8a40809
fc-loadtool: added support for old Am29DL640G flash chip
Mychaela Falconia <falcon@freecalypso.org>
parents:
523
diff
changeset
|
316 {0x36, 0x00}, |
3886a8a40809
fc-loadtool: added support for old Am29DL640G flash chip
Mychaela Falconia <falcon@freecalypso.org>
parents:
523
diff
changeset
|
317 {0x37, 0x20}, |
3886a8a40809
fc-loadtool: added support for old Am29DL640G flash chip
Mychaela Falconia <falcon@freecalypso.org>
parents:
523
diff
changeset
|
318 {0x38, 0x00}, |
3886a8a40809
fc-loadtool: added support for old Am29DL640G flash chip
Mychaela Falconia <falcon@freecalypso.org>
parents:
523
diff
changeset
|
319 {0x40, 'P'}, |
3886a8a40809
fc-loadtool: added support for old Am29DL640G flash chip
Mychaela Falconia <falcon@freecalypso.org>
parents:
523
diff
changeset
|
320 {0x41, 'R'}, |
3886a8a40809
fc-loadtool: added support for old Am29DL640G flash chip
Mychaela Falconia <falcon@freecalypso.org>
parents:
523
diff
changeset
|
321 {0x42, 'I'}, |
3886a8a40809
fc-loadtool: added support for old Am29DL640G flash chip
Mychaela Falconia <falcon@freecalypso.org>
parents:
523
diff
changeset
|
322 {0x43, '1'}, |
3886a8a40809
fc-loadtool: added support for old Am29DL640G flash chip
Mychaela Falconia <falcon@freecalypso.org>
parents:
523
diff
changeset
|
323 {0x44, '3'}, |
976
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
324 {0x49, 0x04}, |
553
3886a8a40809
fc-loadtool: added support for old Am29DL640G flash chip
Mychaela Falconia <falcon@freecalypso.org>
parents:
523
diff
changeset
|
325 {-1, 0} |
3886a8a40809
fc-loadtool: added support for old Am29DL640G flash chip
Mychaela Falconia <falcon@freecalypso.org>
parents:
523
diff
changeset
|
326 }; |
3886a8a40809
fc-loadtool: added support for old Am29DL640G flash chip
Mychaela Falconia <falcon@freecalypso.org>
parents:
523
diff
changeset
|
327 |
976
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
328 static struct amd_lock_info Am29DL640G_lock_info = { |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
329 .ngroups = 8, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
330 .groups = { |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
331 {0x2000, 8, 0, 1, 0}, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
332 {0x10000, 3, 0, 0, 0}, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
333 {0x40000, 3, 1, 0, 1}, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
334 {0x40000, 12, 1, 1, 1}, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
335 {0x40000, 12, 1, 1, 1}, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
336 {0x40000, 3, 1, 1, 0}, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
337 {0x10000, 3, 0, 0, 0}, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
338 {0x2000, 8, 0, 0, 1}}, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
339 .have_status_word_3 = 1, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
340 }; |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
341 |
553
3886a8a40809
fc-loadtool: added support for old Am29DL640G flash chip
Mychaela Falconia <falcon@freecalypso.org>
parents:
523
diff
changeset
|
342 struct flash_device flashdev_Am29DL640G = { |
3886a8a40809
fc-loadtool: added support for old Am29DL640G flash chip
Mychaela Falconia <falcon@freecalypso.org>
parents:
523
diff
changeset
|
343 .name = "Am29DL640G", |
3886a8a40809
fc-loadtool: added support for old Am29DL640G flash chip
Mychaela Falconia <falcon@freecalypso.org>
parents:
523
diff
changeset
|
344 .cfi_table = Am29DL640G_cfi, |
3886a8a40809
fc-loadtool: added support for old Am29DL640G flash chip
Mychaela Falconia <falcon@freecalypso.org>
parents:
523
diff
changeset
|
345 .required_global_config = FLASH_GLOBAL_CFG_SINGLE_8M, |
3886a8a40809
fc-loadtool: added support for old Am29DL640G flash chip
Mychaela Falconia <falcon@freecalypso.org>
parents:
523
diff
changeset
|
346 .bank_geom = {&geom_8M_bothends, 0}, |
3886a8a40809
fc-loadtool: added support for old Am29DL640G flash chip
Mychaela Falconia <falcon@freecalypso.org>
parents:
523
diff
changeset
|
347 .cmdset = &flash_cmdset_amd, |
976
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
348 .lock_info = {&Am29DL640G_lock_info, 0}, |
553
3886a8a40809
fc-loadtool: added support for old Am29DL640G flash chip
Mychaela Falconia <falcon@freecalypso.org>
parents:
523
diff
changeset
|
349 }; |
3886a8a40809
fc-loadtool: added support for old Am29DL640G flash chip
Mychaela Falconia <falcon@freecalypso.org>
parents:
523
diff
changeset
|
350 |
506
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
351 /* Spansion S71PL-J and S71PL-N flash */ |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
352 |
559
f229efbfd581
fc-loadtool: added support for S29PL032J/S71PL032J flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
553
diff
changeset
|
353 static struct cfi_check spansion_PL032J_cfi[] = { |
f229efbfd581
fc-loadtool: added support for S29PL032J/S71PL032J flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
553
diff
changeset
|
354 {0x10, 'Q'}, |
f229efbfd581
fc-loadtool: added support for S29PL032J/S71PL032J flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
553
diff
changeset
|
355 {0x11, 'R'}, |
f229efbfd581
fc-loadtool: added support for S29PL032J/S71PL032J flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
553
diff
changeset
|
356 {0x12, 'Y'}, |
f229efbfd581
fc-loadtool: added support for S29PL032J/S71PL032J flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
553
diff
changeset
|
357 {0x13, 0x02}, |
f229efbfd581
fc-loadtool: added support for S29PL032J/S71PL032J flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
553
diff
changeset
|
358 {0x14, 0x00}, |
f229efbfd581
fc-loadtool: added support for S29PL032J/S71PL032J flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
553
diff
changeset
|
359 {0x15, 0x40}, |
f229efbfd581
fc-loadtool: added support for S29PL032J/S71PL032J flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
553
diff
changeset
|
360 {0x16, 0x00}, |
f229efbfd581
fc-loadtool: added support for S29PL032J/S71PL032J flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
553
diff
changeset
|
361 {0x27, 0x16}, |
f229efbfd581
fc-loadtool: added support for S29PL032J/S71PL032J flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
553
diff
changeset
|
362 {0x2C, 0x03}, |
f229efbfd581
fc-loadtool: added support for S29PL032J/S71PL032J flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
553
diff
changeset
|
363 {0x2D, 0x07}, |
f229efbfd581
fc-loadtool: added support for S29PL032J/S71PL032J flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
553
diff
changeset
|
364 {0x2E, 0x00}, |
f229efbfd581
fc-loadtool: added support for S29PL032J/S71PL032J flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
553
diff
changeset
|
365 {0x2F, 0x20}, |
f229efbfd581
fc-loadtool: added support for S29PL032J/S71PL032J flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
553
diff
changeset
|
366 {0x30, 0x00}, |
f229efbfd581
fc-loadtool: added support for S29PL032J/S71PL032J flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
553
diff
changeset
|
367 {0x31, 0x3D}, |
f229efbfd581
fc-loadtool: added support for S29PL032J/S71PL032J flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
553
diff
changeset
|
368 {0x32, 0x00}, |
f229efbfd581
fc-loadtool: added support for S29PL032J/S71PL032J flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
553
diff
changeset
|
369 {0x33, 0x00}, |
f229efbfd581
fc-loadtool: added support for S29PL032J/S71PL032J flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
553
diff
changeset
|
370 {0x34, 0x01}, |
f229efbfd581
fc-loadtool: added support for S29PL032J/S71PL032J flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
553
diff
changeset
|
371 {0x35, 0x07}, |
f229efbfd581
fc-loadtool: added support for S29PL032J/S71PL032J flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
553
diff
changeset
|
372 {0x36, 0x00}, |
f229efbfd581
fc-loadtool: added support for S29PL032J/S71PL032J flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
553
diff
changeset
|
373 {0x37, 0x20}, |
f229efbfd581
fc-loadtool: added support for S29PL032J/S71PL032J flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
553
diff
changeset
|
374 {0x38, 0x00}, |
f229efbfd581
fc-loadtool: added support for S29PL032J/S71PL032J flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
553
diff
changeset
|
375 {0x40, 'P'}, |
f229efbfd581
fc-loadtool: added support for S29PL032J/S71PL032J flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
553
diff
changeset
|
376 {0x41, 'R'}, |
f229efbfd581
fc-loadtool: added support for S29PL032J/S71PL032J flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
553
diff
changeset
|
377 {0x42, 'I'}, |
f229efbfd581
fc-loadtool: added support for S29PL032J/S71PL032J flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
553
diff
changeset
|
378 {0x43, '1'}, |
f229efbfd581
fc-loadtool: added support for S29PL032J/S71PL032J flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
553
diff
changeset
|
379 {0x44, '3'}, |
f229efbfd581
fc-loadtool: added support for S29PL032J/S71PL032J flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
553
diff
changeset
|
380 {-1, 0} |
f229efbfd581
fc-loadtool: added support for S29PL032J/S71PL032J flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
553
diff
changeset
|
381 }; |
f229efbfd581
fc-loadtool: added support for S29PL032J/S71PL032J flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
553
diff
changeset
|
382 |
f229efbfd581
fc-loadtool: added support for S29PL032J/S71PL032J flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
553
diff
changeset
|
383 struct flash_device flashdev_PL032J = { |
f229efbfd581
fc-loadtool: added support for S29PL032J/S71PL032J flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
553
diff
changeset
|
384 .name = "Spansion S29PL032J", |
f229efbfd581
fc-loadtool: added support for S29PL032J/S71PL032J flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
553
diff
changeset
|
385 .cfi_table = spansion_PL032J_cfi, |
f229efbfd581
fc-loadtool: added support for S29PL032J/S71PL032J flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
553
diff
changeset
|
386 .required_global_config = FLASH_GLOBAL_CFG_SINGLE_4M, |
f229efbfd581
fc-loadtool: added support for S29PL032J/S71PL032J flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
553
diff
changeset
|
387 .bank_geom = {&geom_4M_bothends, 0}, |
f229efbfd581
fc-loadtool: added support for S29PL032J/S71PL032J flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
553
diff
changeset
|
388 .cmdset = &flash_cmdset_amd, |
f229efbfd581
fc-loadtool: added support for S29PL032J/S71PL032J flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
553
diff
changeset
|
389 }; |
f229efbfd581
fc-loadtool: added support for S29PL032J/S71PL032J flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
553
diff
changeset
|
390 |
976
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
391 /* |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
392 * For our purposes, S29PL064J/S71PL064J differs from Am29DL640G only |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
393 * in terms of lock status retrieval and manipulation: the older chip |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
394 * lacks persistent/password mode lock bits and in-system lock/unlock |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
395 * operations. We distinguish them by one byte in CFI. |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
396 */ |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
397 |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
398 static struct cfi_check spansion_PL064J_cfi[] = { |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
399 {0x10, 'Q'}, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
400 {0x11, 'R'}, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
401 {0x12, 'Y'}, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
402 {0x13, 0x02}, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
403 {0x14, 0x00}, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
404 {0x15, 0x40}, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
405 {0x16, 0x00}, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
406 {0x27, 0x17}, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
407 {0x2C, 0x03}, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
408 {0x2D, 0x07}, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
409 {0x2E, 0x00}, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
410 {0x2F, 0x20}, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
411 {0x30, 0x00}, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
412 {0x31, 0x7D}, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
413 {0x32, 0x00}, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
414 {0x33, 0x00}, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
415 {0x34, 0x01}, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
416 {0x35, 0x07}, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
417 {0x36, 0x00}, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
418 {0x37, 0x20}, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
419 {0x38, 0x00}, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
420 {0x40, 'P'}, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
421 {0x41, 'R'}, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
422 {0x42, 'I'}, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
423 {0x43, '1'}, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
424 {0x44, '3'}, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
425 {0x49, 0x07}, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
426 {-1, 0} |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
427 }; |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
428 |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
429 static struct amd_lock_info PL064J_lock_info = { |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
430 .ngroups = 8, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
431 .groups = { |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
432 {0x2000, 8, 0, 1, 0}, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
433 {0x10000, 3, 0, 0, 0}, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
434 {0x40000, 3, 1, 0, 1}, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
435 {0x40000, 12, 1, 1, 1}, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
436 {0x40000, 12, 1, 1, 1}, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
437 {0x40000, 3, 1, 1, 0}, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
438 {0x10000, 3, 0, 0, 0}, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
439 {0x2000, 8, 0, 0, 1}}, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
440 .have_status_word_3 = 1, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
441 .have_mode_lock_bits = 1, |
979
c5133c3c11b1
fc-loadtool flash: implement PL-J PPB programming functions
Mychaela Falconia <falcon@freecalypso.org>
parents:
978
diff
changeset
|
442 .ppb_program_one = plj_ppb_program_one, |
983
0407d14fb854
PL-J flash PPB ops: rework for full verification of lock state
Mychaela Falconia <falcon@freecalypso.org>
parents:
980
diff
changeset
|
443 .ppb_program_all = plj_ppb_program_all, |
979
c5133c3c11b1
fc-loadtool flash: implement PL-J PPB programming functions
Mychaela Falconia <falcon@freecalypso.org>
parents:
978
diff
changeset
|
444 .ppb_erase_all = plj_ppb_erase_all_single, |
976
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
445 }; |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
446 |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
447 struct flash_device flashdev_PL064J = { |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
448 .name = "Spansion S29PL064J", |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
449 .cfi_table = spansion_PL064J_cfi, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
450 .required_global_config = FLASH_GLOBAL_CFG_SINGLE_8M, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
451 .bank_geom = {&geom_8M_bothends, 0}, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
452 .cmdset = &flash_cmdset_amd, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
453 .lock_info = {&PL064J_lock_info, 0}, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
454 }; |
559
f229efbfd581
fc-loadtool: added support for S29PL032J/S71PL032J flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
553
diff
changeset
|
455 |
506
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
456 static struct cfi_check spansion_PL129J_cfi[] = { |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
457 {0x10, 'Q'}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
458 {0x11, 'R'}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
459 {0x12, 'Y'}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
460 {0x13, 0x02}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
461 {0x14, 0x00}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
462 {0x15, 0x40}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
463 {0x16, 0x00}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
464 {0x27, 0x18}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
465 {0x2C, 0x03}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
466 {0x2D, 0x07}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
467 {0x2E, 0x00}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
468 {0x2F, 0x20}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
469 {0x30, 0x00}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
470 {0x31, 0xFD}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
471 {0x32, 0x00}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
472 {0x33, 0x00}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
473 {0x34, 0x01}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
474 {0x35, 0x07}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
475 {0x36, 0x00}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
476 {0x37, 0x20}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
477 {0x38, 0x00}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
478 {0x40, 'P'}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
479 {0x41, 'R'}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
480 {0x42, 'I'}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
481 {0x43, '1'}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
482 {0x44, '3'}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
483 {-1, 0} |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
484 }; |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
485 |
976
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
486 static struct amd_lock_info PL129J_lock_info_0 = { |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
487 .ngroups = 4, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
488 .groups = { |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
489 {0x2000, 8, 0, 1, 0}, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
490 {0x10000, 3, 0, 0, 0}, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
491 {0x40000, 7, 1, 0, 1}, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
492 {0x40000, 24, 1, 1, 1}}, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
493 .have_status_word_3 = 1, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
494 .have_mode_lock_bits = 1, |
979
c5133c3c11b1
fc-loadtool flash: implement PL-J PPB programming functions
Mychaela Falconia <falcon@freecalypso.org>
parents:
978
diff
changeset
|
495 .ppb_program_one = plj_ppb_program_one, |
983
0407d14fb854
PL-J flash PPB ops: rework for full verification of lock state
Mychaela Falconia <falcon@freecalypso.org>
parents:
980
diff
changeset
|
496 .ppb_program_all = plj_ppb_program_all, |
979
c5133c3c11b1
fc-loadtool flash: implement PL-J PPB programming functions
Mychaela Falconia <falcon@freecalypso.org>
parents:
978
diff
changeset
|
497 .ppb_erase_all = plj_ppb_erase_all_dualbank, |
976
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
498 }; |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
499 |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
500 static struct amd_lock_info PL129J_lock_info_1 = { |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
501 .ngroups = 4, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
502 .groups = { |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
503 {0x40000, 24, 1, 1, 1}, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
504 {0x40000, 7, 1, 1, 0}, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
505 {0x10000, 3, 0, 0, 0}, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
506 {0x2000, 8, 0, 0, 1}}, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
507 .have_status_word_3 = 1, |
979
c5133c3c11b1
fc-loadtool flash: implement PL-J PPB programming functions
Mychaela Falconia <falcon@freecalypso.org>
parents:
978
diff
changeset
|
508 .ppb_program_one = plj_ppb_program_one, |
983
0407d14fb854
PL-J flash PPB ops: rework for full verification of lock state
Mychaela Falconia <falcon@freecalypso.org>
parents:
980
diff
changeset
|
509 .ppb_program_all = plj_ppb_program_all, |
976
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
510 }; |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
511 |
506
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
512 struct flash_device flashdev_PL129J = { |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
513 .name = "Spansion S29PL129J", |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
514 .cfi_table = spansion_PL129J_cfi, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
515 .required_global_config = FLASH_GLOBAL_CFG_DUAL_8M, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
516 .bank_geom = {&geom_8M_bottomboot, &geom_8M_topboot}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
517 .cmdset = &flash_cmdset_amd, |
976
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
518 .lock_info = {&PL129J_lock_info_0, &PL129J_lock_info_1}, |
506
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
519 }; |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
520 |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
521 static struct cfi_check spansion_PL129N_cfi[] = { |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
522 {0x10, 'Q'}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
523 {0x11, 'R'}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
524 {0x12, 'Y'}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
525 {0x13, 0x02}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
526 {0x14, 0x00}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
527 {0x15, 0x40}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
528 {0x16, 0x00}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
529 {0x27, 0x18}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
530 {0x2C, 0x03}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
531 {0x2D, 0x03}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
532 {0x2E, 0x00}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
533 {0x2F, 0x00}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
534 {0x30, 0x01}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
535 {0x31, 0x3D}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
536 {0x32, 0x00}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
537 {0x33, 0x00}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
538 {0x34, 0x04}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
539 {0x35, 0x03}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
540 {0x36, 0x00}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
541 {0x37, 0x00}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
542 {0x38, 0x01}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
543 {0x40, 'P'}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
544 {0x41, 'R'}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
545 {0x42, 'I'}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
546 {0x43, '1'}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
547 {0x44, '4'}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
548 {-1, 0} |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
549 }; |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
550 |
976
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
551 static struct amd_lock_info PL129N_lock_info_0 = { |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
552 .ngroups = 3, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
553 .groups = { |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
554 {0x10000, 4, 0, 1, 0}, |
980
0a4d19aab608
PL129N lock-state cosmetic: 256 KiB blocks are single sectors
Mychaela Falconia <falcon@freecalypso.org>
parents:
979
diff
changeset
|
555 {0x40000, 7, 0, 0, 1}, |
0a4d19aab608
PL129N lock-state cosmetic: 256 KiB blocks are single sectors
Mychaela Falconia <falcon@freecalypso.org>
parents:
979
diff
changeset
|
556 {0x40000, 24, 0, 1, 1}}, |
976
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
557 .have_status_word_3 = 1, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
558 .have_pln_lock_reg = 1, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
559 }; |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
560 |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
561 static struct amd_lock_info PL129N_lock_info_1 = { |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
562 .ngroups = 3, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
563 .groups = { |
980
0a4d19aab608
PL129N lock-state cosmetic: 256 KiB blocks are single sectors
Mychaela Falconia <falcon@freecalypso.org>
parents:
979
diff
changeset
|
564 {0x40000, 24, 0, 1, 1}, |
0a4d19aab608
PL129N lock-state cosmetic: 256 KiB blocks are single sectors
Mychaela Falconia <falcon@freecalypso.org>
parents:
979
diff
changeset
|
565 {0x40000, 7, 0, 1, 0}, |
976
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
566 {0x10000, 4, 0, 0, 1}}, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
567 .have_status_word_3 = 1, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
568 }; |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
569 |
506
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
570 struct flash_device flashdev_PL129N = { |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
571 .name = "Spansion S29PL129N", |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
572 .cfi_table = spansion_PL129N_cfi, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
573 .required_global_config = FLASH_GLOBAL_CFG_DUAL_8M, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
574 .bank_geom = {&geom_8M_bottomboot_big, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
575 &geom_8M_topboot_big}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
576 .cmdset = &flash_cmdset_amd, |
976
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
577 .lock_info = {&PL129N_lock_info_0, &PL129N_lock_info_1}, |
506
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
578 }; |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
579 |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
580 /* Samsung K5A32xxCTM introduced onto the scene by Openmoko */ |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
581 |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
582 static struct cfi_check samsung_4M_topboot_cfi[] = { |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
583 {0x10, 'Q'}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
584 {0x11, 'R'}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
585 {0x12, 'Y'}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
586 {0x13, 0x02}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
587 {0x14, 0x00}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
588 {0x15, 0x40}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
589 {0x16, 0x00}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
590 {0x27, 0x16}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
591 {0x2C, 0x02}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
592 {0x2D, 0x07}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
593 {0x2E, 0x00}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
594 {0x2F, 0x20}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
595 {0x30, 0x00}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
596 {0x31, 0x3E}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
597 {0x32, 0x00}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
598 {0x33, 0x00}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
599 {0x34, 0x01}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
600 {0x40, 'P'}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
601 {0x41, 'R'}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
602 {0x42, 'I'}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
603 {0x43, '3'}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
604 {0x44, '3'}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
605 {0x4F, 0x03}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
606 {-1, 0} |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
607 }; |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
608 |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
609 struct flash_device flashdev_K5A32xx_T = { |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
610 .name = "Samsung K5A32xx_T", |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
611 .cfi_table = samsung_4M_topboot_cfi, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
612 .required_global_config = FLASH_GLOBAL_CFG_SINGLE_4M, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
613 .bank_geom = {&geom_4M_topboot, 0}, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
614 .cmdset = &flash_cmdset_amd, |
0dd2c87c1b63
fc-loadtool flash support overhaul
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
615 }; |
523
9a478d33b3ca
fc-loadtool: added Samsung K5L33xx_A flash support for GTM900
Mychaela Falconia <falcon@freecalypso.org>
parents:
506
diff
changeset
|
616 |
9a478d33b3ca
fc-loadtool: added Samsung K5L33xx_A flash support for GTM900
Mychaela Falconia <falcon@freecalypso.org>
parents:
506
diff
changeset
|
617 /* a different 4 MiB Samsung flash chip used in Huawei GTM900 */ |
9a478d33b3ca
fc-loadtool: added Samsung K5L33xx_A flash support for GTM900
Mychaela Falconia <falcon@freecalypso.org>
parents:
506
diff
changeset
|
618 |
9a478d33b3ca
fc-loadtool: added Samsung K5L33xx_A flash support for GTM900
Mychaela Falconia <falcon@freecalypso.org>
parents:
506
diff
changeset
|
619 static struct cfi_check samsung_4M_bothends_cfi[] = { |
9a478d33b3ca
fc-loadtool: added Samsung K5L33xx_A flash support for GTM900
Mychaela Falconia <falcon@freecalypso.org>
parents:
506
diff
changeset
|
620 {0x10, 'Q'}, |
9a478d33b3ca
fc-loadtool: added Samsung K5L33xx_A flash support for GTM900
Mychaela Falconia <falcon@freecalypso.org>
parents:
506
diff
changeset
|
621 {0x11, 'R'}, |
9a478d33b3ca
fc-loadtool: added Samsung K5L33xx_A flash support for GTM900
Mychaela Falconia <falcon@freecalypso.org>
parents:
506
diff
changeset
|
622 {0x12, 'Y'}, |
9a478d33b3ca
fc-loadtool: added Samsung K5L33xx_A flash support for GTM900
Mychaela Falconia <falcon@freecalypso.org>
parents:
506
diff
changeset
|
623 {0x13, 0x02}, |
9a478d33b3ca
fc-loadtool: added Samsung K5L33xx_A flash support for GTM900
Mychaela Falconia <falcon@freecalypso.org>
parents:
506
diff
changeset
|
624 {0x14, 0x00}, |
9a478d33b3ca
fc-loadtool: added Samsung K5L33xx_A flash support for GTM900
Mychaela Falconia <falcon@freecalypso.org>
parents:
506
diff
changeset
|
625 {0x15, 0x40}, |
9a478d33b3ca
fc-loadtool: added Samsung K5L33xx_A flash support for GTM900
Mychaela Falconia <falcon@freecalypso.org>
parents:
506
diff
changeset
|
626 {0x16, 0x00}, |
9a478d33b3ca
fc-loadtool: added Samsung K5L33xx_A flash support for GTM900
Mychaela Falconia <falcon@freecalypso.org>
parents:
506
diff
changeset
|
627 {0x27, 0x16}, |
9a478d33b3ca
fc-loadtool: added Samsung K5L33xx_A flash support for GTM900
Mychaela Falconia <falcon@freecalypso.org>
parents:
506
diff
changeset
|
628 {0x2C, 0x03}, |
9a478d33b3ca
fc-loadtool: added Samsung K5L33xx_A flash support for GTM900
Mychaela Falconia <falcon@freecalypso.org>
parents:
506
diff
changeset
|
629 {0x2D, 0x07}, |
9a478d33b3ca
fc-loadtool: added Samsung K5L33xx_A flash support for GTM900
Mychaela Falconia <falcon@freecalypso.org>
parents:
506
diff
changeset
|
630 {0x2E, 0x00}, |
9a478d33b3ca
fc-loadtool: added Samsung K5L33xx_A flash support for GTM900
Mychaela Falconia <falcon@freecalypso.org>
parents:
506
diff
changeset
|
631 {0x2F, 0x20}, |
9a478d33b3ca
fc-loadtool: added Samsung K5L33xx_A flash support for GTM900
Mychaela Falconia <falcon@freecalypso.org>
parents:
506
diff
changeset
|
632 {0x30, 0x00}, |
9a478d33b3ca
fc-loadtool: added Samsung K5L33xx_A flash support for GTM900
Mychaela Falconia <falcon@freecalypso.org>
parents:
506
diff
changeset
|
633 {0x31, 0x3D}, |
9a478d33b3ca
fc-loadtool: added Samsung K5L33xx_A flash support for GTM900
Mychaela Falconia <falcon@freecalypso.org>
parents:
506
diff
changeset
|
634 {0x32, 0x00}, |
9a478d33b3ca
fc-loadtool: added Samsung K5L33xx_A flash support for GTM900
Mychaela Falconia <falcon@freecalypso.org>
parents:
506
diff
changeset
|
635 {0x33, 0x00}, |
9a478d33b3ca
fc-loadtool: added Samsung K5L33xx_A flash support for GTM900
Mychaela Falconia <falcon@freecalypso.org>
parents:
506
diff
changeset
|
636 {0x34, 0x01}, |
9a478d33b3ca
fc-loadtool: added Samsung K5L33xx_A flash support for GTM900
Mychaela Falconia <falcon@freecalypso.org>
parents:
506
diff
changeset
|
637 {0x35, 0x07}, |
9a478d33b3ca
fc-loadtool: added Samsung K5L33xx_A flash support for GTM900
Mychaela Falconia <falcon@freecalypso.org>
parents:
506
diff
changeset
|
638 {0x36, 0x00}, |
9a478d33b3ca
fc-loadtool: added Samsung K5L33xx_A flash support for GTM900
Mychaela Falconia <falcon@freecalypso.org>
parents:
506
diff
changeset
|
639 {0x37, 0x20}, |
9a478d33b3ca
fc-loadtool: added Samsung K5L33xx_A flash support for GTM900
Mychaela Falconia <falcon@freecalypso.org>
parents:
506
diff
changeset
|
640 {0x38, 0x00}, |
9a478d33b3ca
fc-loadtool: added Samsung K5L33xx_A flash support for GTM900
Mychaela Falconia <falcon@freecalypso.org>
parents:
506
diff
changeset
|
641 {0x40, 'P'}, |
9a478d33b3ca
fc-loadtool: added Samsung K5L33xx_A flash support for GTM900
Mychaela Falconia <falcon@freecalypso.org>
parents:
506
diff
changeset
|
642 {0x41, 'R'}, |
9a478d33b3ca
fc-loadtool: added Samsung K5L33xx_A flash support for GTM900
Mychaela Falconia <falcon@freecalypso.org>
parents:
506
diff
changeset
|
643 {0x42, 'I'}, |
9a478d33b3ca
fc-loadtool: added Samsung K5L33xx_A flash support for GTM900
Mychaela Falconia <falcon@freecalypso.org>
parents:
506
diff
changeset
|
644 {0x43, '0'}, |
9a478d33b3ca
fc-loadtool: added Samsung K5L33xx_A flash support for GTM900
Mychaela Falconia <falcon@freecalypso.org>
parents:
506
diff
changeset
|
645 {0x44, '0'}, |
9a478d33b3ca
fc-loadtool: added Samsung K5L33xx_A flash support for GTM900
Mychaela Falconia <falcon@freecalypso.org>
parents:
506
diff
changeset
|
646 {0x4F, 0x04}, |
9a478d33b3ca
fc-loadtool: added Samsung K5L33xx_A flash support for GTM900
Mychaela Falconia <falcon@freecalypso.org>
parents:
506
diff
changeset
|
647 {-1, 0} |
9a478d33b3ca
fc-loadtool: added Samsung K5L33xx_A flash support for GTM900
Mychaela Falconia <falcon@freecalypso.org>
parents:
506
diff
changeset
|
648 }; |
9a478d33b3ca
fc-loadtool: added Samsung K5L33xx_A flash support for GTM900
Mychaela Falconia <falcon@freecalypso.org>
parents:
506
diff
changeset
|
649 |
9a478d33b3ca
fc-loadtool: added Samsung K5L33xx_A flash support for GTM900
Mychaela Falconia <falcon@freecalypso.org>
parents:
506
diff
changeset
|
650 struct flash_device flashdev_K5L33xx_A = { |
9a478d33b3ca
fc-loadtool: added Samsung K5L33xx_A flash support for GTM900
Mychaela Falconia <falcon@freecalypso.org>
parents:
506
diff
changeset
|
651 .name = "Samsung K5L33xx_A", |
9a478d33b3ca
fc-loadtool: added Samsung K5L33xx_A flash support for GTM900
Mychaela Falconia <falcon@freecalypso.org>
parents:
506
diff
changeset
|
652 .cfi_table = samsung_4M_bothends_cfi, |
9a478d33b3ca
fc-loadtool: added Samsung K5L33xx_A flash support for GTM900
Mychaela Falconia <falcon@freecalypso.org>
parents:
506
diff
changeset
|
653 .required_global_config = FLASH_GLOBAL_CFG_SINGLE_4M, |
9a478d33b3ca
fc-loadtool: added Samsung K5L33xx_A flash support for GTM900
Mychaela Falconia <falcon@freecalypso.org>
parents:
506
diff
changeset
|
654 .bank_geom = {&geom_4M_bothends, 0}, |
9a478d33b3ca
fc-loadtool: added Samsung K5L33xx_A flash support for GTM900
Mychaela Falconia <falcon@freecalypso.org>
parents:
506
diff
changeset
|
655 .cmdset = &flash_cmdset_amd, |
9a478d33b3ca
fc-loadtool: added Samsung K5L33xx_A flash support for GTM900
Mychaela Falconia <falcon@freecalypso.org>
parents:
506
diff
changeset
|
656 }; |
916
54a0bc149d9c
fc-loadtool: add support for Samsung K5L29xx_A flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
696
diff
changeset
|
657 |
54a0bc149d9c
fc-loadtool: add support for Samsung K5L29xx_A flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
696
diff
changeset
|
658 /* Samsung equivalent of S71PL129J, found in Sony Ericsson K200/220 phones */ |
54a0bc149d9c
fc-loadtool: add support for Samsung K5L29xx_A flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
696
diff
changeset
|
659 |
54a0bc149d9c
fc-loadtool: add support for Samsung K5L29xx_A flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
696
diff
changeset
|
660 static struct cfi_check samsung_PL129J_equiv_cfi[] = { |
54a0bc149d9c
fc-loadtool: add support for Samsung K5L29xx_A flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
696
diff
changeset
|
661 {0x10, 'Q'}, |
54a0bc149d9c
fc-loadtool: add support for Samsung K5L29xx_A flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
696
diff
changeset
|
662 {0x11, 'R'}, |
54a0bc149d9c
fc-loadtool: add support for Samsung K5L29xx_A flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
696
diff
changeset
|
663 {0x12, 'Y'}, |
54a0bc149d9c
fc-loadtool: add support for Samsung K5L29xx_A flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
696
diff
changeset
|
664 {0x13, 0x02}, |
54a0bc149d9c
fc-loadtool: add support for Samsung K5L29xx_A flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
696
diff
changeset
|
665 {0x14, 0x00}, |
54a0bc149d9c
fc-loadtool: add support for Samsung K5L29xx_A flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
696
diff
changeset
|
666 {0x15, 0x40}, |
54a0bc149d9c
fc-loadtool: add support for Samsung K5L29xx_A flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
696
diff
changeset
|
667 {0x16, 0x00}, |
54a0bc149d9c
fc-loadtool: add support for Samsung K5L29xx_A flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
696
diff
changeset
|
668 {0x27, 0x18}, |
54a0bc149d9c
fc-loadtool: add support for Samsung K5L29xx_A flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
696
diff
changeset
|
669 {0x2C, 0x03}, |
54a0bc149d9c
fc-loadtool: add support for Samsung K5L29xx_A flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
696
diff
changeset
|
670 {0x2D, 0x07}, |
54a0bc149d9c
fc-loadtool: add support for Samsung K5L29xx_A flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
696
diff
changeset
|
671 {0x2E, 0x00}, |
54a0bc149d9c
fc-loadtool: add support for Samsung K5L29xx_A flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
696
diff
changeset
|
672 {0x2F, 0x20}, |
54a0bc149d9c
fc-loadtool: add support for Samsung K5L29xx_A flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
696
diff
changeset
|
673 {0x30, 0x00}, |
54a0bc149d9c
fc-loadtool: add support for Samsung K5L29xx_A flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
696
diff
changeset
|
674 {0x31, 0xFD}, |
54a0bc149d9c
fc-loadtool: add support for Samsung K5L29xx_A flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
696
diff
changeset
|
675 {0x32, 0x00}, |
54a0bc149d9c
fc-loadtool: add support for Samsung K5L29xx_A flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
696
diff
changeset
|
676 {0x33, 0x00}, |
54a0bc149d9c
fc-loadtool: add support for Samsung K5L29xx_A flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
696
diff
changeset
|
677 {0x34, 0x01}, |
54a0bc149d9c
fc-loadtool: add support for Samsung K5L29xx_A flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
696
diff
changeset
|
678 {0x35, 0x07}, |
54a0bc149d9c
fc-loadtool: add support for Samsung K5L29xx_A flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
696
diff
changeset
|
679 {0x36, 0x00}, |
54a0bc149d9c
fc-loadtool: add support for Samsung K5L29xx_A flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
696
diff
changeset
|
680 {0x37, 0x20}, |
54a0bc149d9c
fc-loadtool: add support for Samsung K5L29xx_A flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
696
diff
changeset
|
681 {0x38, 0x00}, |
54a0bc149d9c
fc-loadtool: add support for Samsung K5L29xx_A flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
696
diff
changeset
|
682 {0x40, 'P'}, |
54a0bc149d9c
fc-loadtool: add support for Samsung K5L29xx_A flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
696
diff
changeset
|
683 {0x41, 'R'}, |
54a0bc149d9c
fc-loadtool: add support for Samsung K5L29xx_A flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
696
diff
changeset
|
684 {0x42, 'I'}, |
54a0bc149d9c
fc-loadtool: add support for Samsung K5L29xx_A flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
696
diff
changeset
|
685 {0x43, '0'}, |
54a0bc149d9c
fc-loadtool: add support for Samsung K5L29xx_A flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
696
diff
changeset
|
686 {0x44, '0'}, |
54a0bc149d9c
fc-loadtool: add support for Samsung K5L29xx_A flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
696
diff
changeset
|
687 {0x4F, 0x04}, |
54a0bc149d9c
fc-loadtool: add support for Samsung K5L29xx_A flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
696
diff
changeset
|
688 {-1, 0} |
54a0bc149d9c
fc-loadtool: add support for Samsung K5L29xx_A flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
696
diff
changeset
|
689 }; |
54a0bc149d9c
fc-loadtool: add support for Samsung K5L29xx_A flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
696
diff
changeset
|
690 |
976
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
691 static struct amd_lock_info K5L29_lock_info_0 = { |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
692 .ngroups = 4, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
693 .groups = { |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
694 {0x2000, 8, 0, 1, 0}, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
695 {0x10000, 3, 0, 0, 0}, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
696 {0x40000, 7, 1, 0, 1}, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
697 {0x40000, 24, 1, 1, 1}}, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
698 .have_status_word_3 = 1, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
699 .have_status_word_7 = 1, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
700 .have_mode_lock_bits = 1, |
979
c5133c3c11b1
fc-loadtool flash: implement PL-J PPB programming functions
Mychaela Falconia <falcon@freecalypso.org>
parents:
978
diff
changeset
|
701 .ppb_program_one = plj_ppb_program_one, |
983
0407d14fb854
PL-J flash PPB ops: rework for full verification of lock state
Mychaela Falconia <falcon@freecalypso.org>
parents:
980
diff
changeset
|
702 .ppb_program_all = plj_ppb_program_all, |
979
c5133c3c11b1
fc-loadtool flash: implement PL-J PPB programming functions
Mychaela Falconia <falcon@freecalypso.org>
parents:
978
diff
changeset
|
703 .ppb_erase_all = plj_ppb_erase_all_dualbank, |
976
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
704 }; |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
705 |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
706 static struct amd_lock_info K5L29_lock_info_1 = { |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
707 .ngroups = 4, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
708 .groups = { |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
709 {0x40000, 24, 1, 1, 1}, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
710 {0x40000, 7, 1, 1, 0}, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
711 {0x10000, 3, 0, 0, 0}, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
712 {0x2000, 8, 0, 0, 1}}, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
713 .have_status_word_3 = 1, |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
714 .have_status_word_7 = 1, |
979
c5133c3c11b1
fc-loadtool flash: implement PL-J PPB programming functions
Mychaela Falconia <falcon@freecalypso.org>
parents:
978
diff
changeset
|
715 .ppb_program_one = plj_ppb_program_one, |
983
0407d14fb854
PL-J flash PPB ops: rework for full verification of lock state
Mychaela Falconia <falcon@freecalypso.org>
parents:
980
diff
changeset
|
716 .ppb_program_all = plj_ppb_program_all, |
976
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
717 }; |
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
718 |
916
54a0bc149d9c
fc-loadtool: add support for Samsung K5L29xx_A flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
696
diff
changeset
|
719 struct flash_device flashdev_K5L29xx_A = { |
54a0bc149d9c
fc-loadtool: add support for Samsung K5L29xx_A flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
696
diff
changeset
|
720 .name = "Samsung K5L29xx_A", |
54a0bc149d9c
fc-loadtool: add support for Samsung K5L29xx_A flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
696
diff
changeset
|
721 .cfi_table = samsung_PL129J_equiv_cfi, |
54a0bc149d9c
fc-loadtool: add support for Samsung K5L29xx_A flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
696
diff
changeset
|
722 .required_global_config = FLASH_GLOBAL_CFG_DUAL_8M, |
54a0bc149d9c
fc-loadtool: add support for Samsung K5L29xx_A flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
696
diff
changeset
|
723 .bank_geom = {&geom_8M_bottomboot, &geom_8M_topboot}, |
54a0bc149d9c
fc-loadtool: add support for Samsung K5L29xx_A flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
696
diff
changeset
|
724 .cmdset = &flash_cmdset_amd, |
976
ff4ce8d5ece4
fc-loadtool flash: definitions for AMD sector lock architecture
Mychaela Falconia <falcon@freecalypso.org>
parents:
973
diff
changeset
|
725 .lock_info = {&K5L29_lock_info_0, &K5L29_lock_info_1}, |
916
54a0bc149d9c
fc-loadtool: add support for Samsung K5L29xx_A flash
Mychaela Falconia <falcon@freecalypso.org>
parents:
696
diff
changeset
|
726 }; |