FreeCalypso > hg > freecalypso-tools
comparison loadtools/fldevs.c @ 523:9a478d33b3ca
fc-loadtool: added Samsung K5L33xx_A flash support for GTM900
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 09 Jun 2019 21:51:27 +0000 |
parents | 0dd2c87c1b63 |
children | 3886a8a40809 |
comparison
equal
deleted
inserted
replaced
522:26bb2c069427 | 523:9a478d33b3ca |
---|---|
27 static struct flash_geom geom_4M_topboot = { | 27 static struct flash_geom geom_4M_topboot = { |
28 .total_size = 0x400000, | 28 .total_size = 0x400000, |
29 .nregions = 2, | 29 .nregions = 2, |
30 .regions = {0x10000, 63, 0x2000, 8}, | 30 .regions = {0x10000, 63, 0x2000, 8}, |
31 .total_sectors = 71, | 31 .total_sectors = 71, |
32 }; | |
33 | |
34 static struct flash_geom geom_4M_bothends = { | |
35 .total_size = 0x400000, | |
36 .nregions = 3, | |
37 .regions = {0x2000, 8, 0x10000, 62, 0x2000, 8}, | |
38 .total_sectors = 78, | |
32 }; | 39 }; |
33 | 40 |
34 static struct flash_geom geom_8M_topboot = { | 41 static struct flash_geom geom_8M_topboot = { |
35 .total_size = 0x800000, | 42 .total_size = 0x800000, |
36 .nregions = 2, | 43 .nregions = 2, |
298 .cfi_table = samsung_4M_topboot_cfi, | 305 .cfi_table = samsung_4M_topboot_cfi, |
299 .required_global_config = FLASH_GLOBAL_CFG_SINGLE_4M, | 306 .required_global_config = FLASH_GLOBAL_CFG_SINGLE_4M, |
300 .bank_geom = {&geom_4M_topboot, 0}, | 307 .bank_geom = {&geom_4M_topboot, 0}, |
301 .cmdset = &flash_cmdset_amd, | 308 .cmdset = &flash_cmdset_amd, |
302 }; | 309 }; |
310 | |
311 /* a different 4 MiB Samsung flash chip used in Huawei GTM900 */ | |
312 | |
313 static struct cfi_check samsung_4M_bothends_cfi[] = { | |
314 {0x10, 'Q'}, | |
315 {0x11, 'R'}, | |
316 {0x12, 'Y'}, | |
317 {0x13, 0x02}, | |
318 {0x14, 0x00}, | |
319 {0x15, 0x40}, | |
320 {0x16, 0x00}, | |
321 {0x27, 0x16}, | |
322 {0x2C, 0x03}, | |
323 {0x2D, 0x07}, | |
324 {0x2E, 0x00}, | |
325 {0x2F, 0x20}, | |
326 {0x30, 0x00}, | |
327 {0x31, 0x3D}, | |
328 {0x32, 0x00}, | |
329 {0x33, 0x00}, | |
330 {0x34, 0x01}, | |
331 {0x35, 0x07}, | |
332 {0x36, 0x00}, | |
333 {0x37, 0x20}, | |
334 {0x38, 0x00}, | |
335 {0x40, 'P'}, | |
336 {0x41, 'R'}, | |
337 {0x42, 'I'}, | |
338 {0x43, '0'}, | |
339 {0x44, '0'}, | |
340 {0x4F, 0x04}, | |
341 {-1, 0} | |
342 }; | |
343 | |
344 struct flash_device flashdev_K5L33xx_A = { | |
345 .name = "Samsung K5L33xx_A", | |
346 .cfi_table = samsung_4M_bothends_cfi, | |
347 .required_global_config = FLASH_GLOBAL_CFG_SINGLE_4M, | |
348 .bank_geom = {&geom_4M_bothends, 0}, | |
349 .cmdset = &flash_cmdset_amd, | |
350 }; |