FreeCalypso > hg > ffs-editor
comparison src/cs/drivers/drv_app/ffs/board/dev.c @ 26:680f6fdb5e62
add target for Sony Ericsson K200/K220
author | Vadim Yanitskiy <fixeria@osmocom.org> |
---|---|
date | Wed, 20 Dec 2023 01:59:09 +0700 |
parents | 3ca9a198c6ee |
children |
comparison
equal
deleted
inserted
replaced
25:b51027daadb9 | 26:680f6fdb5e62 |
---|---|
87 // 2. Base 2 logarithm of sector byte size, e.g. 64kB ~ 2^16. | 87 // 2. Base 2 logarithm of sector byte size, e.g. 64kB ~ 2^16. |
88 // | 88 // |
89 // Note that does NOT support a flash definition with different sized blocks | 89 // Note that does NOT support a flash definition with different sized blocks |
90 // so all blocks contained in the device definition MUST be the same size! | 90 // so all blocks contained in the device definition MUST be the same size! |
91 | 91 |
92 #if defined(CONFIG_TARGET_PIRELLI) || defined(CONFIG_TARGET_FCFAM) | 92 #if defined(CONFIG_TARGET_PIRELLI) || defined(CONFIG_TARGET_FCFAM) || \ |
93 defined(CONFIG_TARGET_SE_K2X0) | |
93 // 256 KiB sectors | 94 // 256 KiB sectors |
94 static const struct block_info_s flash_32x256[] = | 95 static const struct block_info_s flash_32x256[] = |
95 { | 96 { |
96 { 0x000000, 18 }, | 97 { 0x000000, 18 }, |
97 { 0x040000, 18 }, | 98 { 0x040000, 18 }, |
376 | 377 |
377 /* N flash */ | 378 /* N flash */ |
378 { &flash_32x256[0], (char *) 0x02480000, MANUFACT_AMD, 0x2101, | 379 { &flash_32x256[0], (char *) 0x02480000, MANUFACT_AMD, 0x2101, |
379 FFS_DRIVER_AMD, 6 }, | 380 FFS_DRIVER_AMD, 6 }, |
380 | 381 |
382 #elif defined(CONFIG_TARGET_SE_K2X0) | |
383 | |
384 /* Spansion S71PL129N */ | |
385 { &flash_32x256[0], (char *) 0x01800000, MANUFACT_AMD, 0x2101, | |
386 FFS_DRIVER_AMD, 13 }, | |
387 | |
388 /* Samsung K5L29xx */ | |
389 { &flash_128x64[0], (char *) 0x01800000, MANUFACT_SAMSUNG, 0x0801, | |
390 FFS_DRIVER_AMD, 52 }, | |
391 | |
381 #elif defined(CONFIG_TARGET_FCFAM) | 392 #elif defined(CONFIG_TARGET_FCFAM) |
382 | 393 |
383 /* | 394 /* |
384 * This table of flash devices covers those possibilities that may occur | 395 * This table of flash devices covers those possibilities that may occur |
385 * on FreeCalypso-branded hardware; we use a new table separate from the | 396 * on FreeCalypso-branded hardware; we use a new table separate from the |