FreeCalypso > hg > freecalypso-tools
comparison loadtools/fldevs.c @ 553:3886a8a40809
fc-loadtool: added support for old Am29DL640G flash chip
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 21 Dec 2019 10:48:24 +0000 |
parents | 9a478d33b3ca |
children | f229efbfd581 |
comparison
equal
deleted
inserted
replaced
552:6e8edc321460 | 553:3886a8a40809 |
---|---|
50 .nregions = 2, | 50 .nregions = 2, |
51 .regions = {0x2000, 8, 0x10000, 127}, | 51 .regions = {0x2000, 8, 0x10000, 127}, |
52 .total_sectors = 135, | 52 .total_sectors = 135, |
53 }; | 53 }; |
54 | 54 |
55 static struct flash_geom geom_8M_bothends = { | |
56 .total_size = 0x800000, | |
57 .nregions = 3, | |
58 .regions = {0x2000, 8, 0x10000, 126, 0x2000, 8}, | |
59 .total_sectors = 142, | |
60 }; | |
61 | |
55 static struct flash_geom geom_8M_topboot_big = { | 62 static struct flash_geom geom_8M_topboot_big = { |
56 .total_size = 0x800000, | 63 .total_size = 0x800000, |
57 .nregions = 2, | 64 .nregions = 2, |
58 .regions = {0x40000, 31, 0x10000, 4}, | 65 .regions = {0x40000, 31, 0x10000, 4}, |
59 .total_sectors = 35, | 66 .total_sectors = 35, |
190 .required_global_config = FLASH_GLOBAL_CFG_SINGLE_8M, | 197 .required_global_config = FLASH_GLOBAL_CFG_SINGLE_8M, |
191 .bank_geom = {&geom_8M_bottomboot, 0}, | 198 .bank_geom = {&geom_8M_bottomboot, 0}, |
192 .cmdset = &flash_cmdset_intel_w30, | 199 .cmdset = &flash_cmdset_intel_w30, |
193 }; | 200 }; |
194 | 201 |
202 /* classic AMD flash chips */ | |
203 | |
204 static struct cfi_check Am29DL640G_cfi[] = { | |
205 {0x10, 'Q'}, | |
206 {0x11, 'R'}, | |
207 {0x12, 'Y'}, | |
208 {0x13, 0x02}, | |
209 {0x14, 0x00}, | |
210 {0x15, 0x40}, | |
211 {0x16, 0x00}, | |
212 {0x27, 0x17}, | |
213 {0x2C, 0x03}, | |
214 {0x2D, 0x07}, | |
215 {0x2E, 0x00}, | |
216 {0x2F, 0x20}, | |
217 {0x30, 0x00}, | |
218 {0x31, 0x7D}, | |
219 {0x32, 0x00}, | |
220 {0x33, 0x00}, | |
221 {0x34, 0x01}, | |
222 {0x35, 0x07}, | |
223 {0x36, 0x00}, | |
224 {0x37, 0x20}, | |
225 {0x38, 0x00}, | |
226 {0x40, 'P'}, | |
227 {0x41, 'R'}, | |
228 {0x42, 'I'}, | |
229 {0x43, '1'}, | |
230 {0x44, '3'}, | |
231 {-1, 0} | |
232 }; | |
233 | |
234 struct flash_device flashdev_Am29DL640G = { | |
235 .name = "Am29DL640G", | |
236 .cfi_table = Am29DL640G_cfi, | |
237 .required_global_config = FLASH_GLOBAL_CFG_SINGLE_8M, | |
238 .bank_geom = {&geom_8M_bothends, 0}, | |
239 .cmdset = &flash_cmdset_amd, | |
240 }; | |
241 | |
195 /* Spansion S71PL-J and S71PL-N flash */ | 242 /* Spansion S71PL-J and S71PL-N flash */ |
196 | 243 |
197 static struct cfi_check spansion_PL129J_cfi[] = { | 244 static struct cfi_check spansion_PL129J_cfi[] = { |
198 {0x10, 'Q'}, | 245 {0x10, 'Q'}, |
199 {0x11, 'R'}, | 246 {0x11, 'R'}, |